I’ve been working on integrating my Eco water softener into my Home Assistant setup and ran into an interesting challenge. While the device shows up correctly in the template editor with the right status, the binary_sensor setup wasn’t reflecting the same state in Lovelace. This was a bit confusing since all other stats like water flow and recharging were updating as expected.
After some digging, I realized the issue might be with how the state was being pulled from the sensor. I adjusted the template syntax to ensure it was correctly referencing the device’s status attribute and also checked the Lovelace card configuration to make sure it was set to display the binary_sensor instead of the raw sensor data.
Here’s the corrected template setup that worked for me:
yaml
binary_sensor:
- name: water_softener_status
device_class: connectivity
state: >
{{ state_attr(‘sensor.ecowater_softener’, ‘status’) }}
This change ensured that the Lovelace UI now accurately reflects whether the water softener is online or offline. It was a bit of a puzzle, but breaking it down step by step helped me pinpoint where things were going wrong. If anyone else is having similar issues, I’d recommend double-checking both the template syntax and the Lovelace configuration to ensure everything is aligned correctly. Happy troubleshooting everyone! ![]()