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

Automation template problem

$
0
0

@kamyrdol32 wrote:

Hello, i try to make automation when door close time < 15min. I have problem with my template.

        {% if (states('binary_sensor.door_window_sensor')) %} 
            {{(as_timestamp(now()) - as_timestamp(strptime(states('binary_sensor.door_window_sensor'))))}}
        {% else %}
          False
        {% endif %}

Unknown Error

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 101899

Trending Articles



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