Automation for temp notification doesn't work

Hi all
any idea why this automatin doesn’t work:

alias: Hashkaya - B -trigger
description: when it becomes to hot
trigger:
  - platform: state
    entity_id:
      - sensor.shimshon_realfeel_temperature
    to: '32'
    for:
      hours: 0
      minutes: 10
      seconds: 0
condition:
  - condition: time
    before: '17:00:00'
    after: '10:00:00'
    weekday:
      - sun
      - tue
      - thu
action:
  - service: notify.mobile_app_l_s_cell
    data:
      message: hot ouside above 32 
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.hot_outside_mode
mode: single

I checked the sensor: “shimshon_realfeel_temperature” it was above 32…

Because it’s not Sunday, Tuesday or Thursday.
And you probably need to use numeric trigger above 32.

And lastly the temperature has to be below 32, then go above 32 for it to trigger.
It won’t trigger if it’s already above 32.

Great image… but it still doesn’t answer the issues I raised in the previous post.

yes it does, the temperature was raised above 32 Thursday after 10:00 am

Screenshot from 2022-06-11 14-39-56

Which explains why it didn’t trigger because your automation uses a State Trigger that triggers only if the value is exactly 32 (and remains unchanged at 32 for at least 10 minutes).

Change it to a Numeric State Trigger.

    - platform: numeric_state
      entity_id: sensor.shimshon_realfeel_temperature
      above: 32
      for:
        minutes: 10

Referring to the chart, had your automation used a Numeric State Trigger on June 9, it would have triggered at approximately 13:00 when the temperature increased from below 32 to above 32.

2 Likes