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

Automation doesn't trigger by selected time

$
0
0

@freekode wrote:

Hi,

I have input_datetime.bedtime for time.

My automation

- alias: Bed Time Automation
  trigger:
    platform: template
    value_template: "{{ now().strftime('%H:%M:%S') == states('input_datetime.bed_time') }}"
  action:
    - service: script.going_sleep

In dev tools I checked values:

{{ now().strftime('%H:%M:%S') # 16:32:00 }}
{{ states('input_datetime.bed_time') # 16:34:00 }}

So they looks the same, and my question, why automation doesn’t trigger at all?

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95308

Trending Articles



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