Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107692

Template Error in binary_sensor

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 107692

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>