Tom7320
(Thorsten)
March 8, 2020, 6:35pm
1
Hi
I would like to trigger certain actions depending on the maximum temperature of the day:
- alias: 'Weather Test'
trigger:
- platform: time
at: '09:00:00'
condition:
- condition: numeric_state
entity_id: sensor.dark_sky_daytime_high_temperature_0d
above: 21.0
action:
- service: notify.ts
data:
message: "Gonna be hot today"
However, this does not work. Probably a simple question, but what am I doing wrong here?
THX a lot!
Thorsten
123
(Taras)
March 8, 2020, 7:17pm
2
Tom7320:
this does not work
What is the value of sensor.dark_sky_daytime_high_temperature_0d
today?
Tom7320
(Thorsten)
March 8, 2020, 8:53pm
3
11.6
Is there a simple syntax error within the automation that I don’t see? It’s late. I’ll try again tomorrow…
123
(Taras)
March 8, 2020, 10:38pm
4
Tom7320:
11.6
OK, so that’s below 21 and the automation will not send a notification.
When you say it didn’t work, do you mean it did send a notification?
Tom7320
(Thorsten)
March 9, 2020, 9:02am
5
Thx for reading very carefully! For testing purpose I changed “above” with “below” and it still did not trigger yesterday. BUT today I restarted the whole HA docker container and not just the server from within the GUI and it DOES trigger!
Lessons I have learned: sometimes it is - for whatever reason - necessary to restart the container and not just the server itself.
Thx a lot for your help!
123
(Taras)
March 9, 2020, 12:40pm
6
That’s odd … but if it works we’ll take the win.