Hi all,
can someone let me know, why I get an template error by using the sensor below? In the Template-section everything is working, but HA protocol sends an error:
binary_sensor:
- name: Day
unique_id: custom_day
state: >
{{ states('sensor.home_sun_sa2')|as_datetime < now() <= states('sensor.home_sun_su3')|as_datetime }}
- name: Night
unique_id: custom_night
state: "{{ is_state('binary_sensor.day', 'off') }}"
2 posts - 2 participants