Hi,
I am seeing discrepancy in the value of a binary sensor using template editor and Lovelace UI. In the template editor when I check following, I see the water softener as online:
This is the correct status as I am also able to see other stats such as water flow, consumed, recharging etc. But when I create a template sensor using the above syntax:
template:
- binary_sensor:
- name: water_softener_status
device_class: connectivity
state: >
{{ state_attr('sensor.ecowater_<redacted>, 'status') }}
The Lovelace UI shows this sensor as Offline/Disconnected!
I am not sure what I might be doing wrong since the template syntax seems rather straightforward.