Automation depending on max temp of day

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

What is the value of sensor.dark_sky_daytime_high_temperature_0d today?

11.6

Is there a simple syntax error within the automation that I don’t see? It’s late. I’ll try again tomorrow…

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?

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! :grinning: :grinning: :grinning:

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!

That’s odd … but if it works we’ll take the win. :slight_smile: