lidans5
(lior)
June 11, 2022, 6:12pm
1
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…
Hellis81
(Hellis81)
June 11, 2022, 6:20pm
2
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.
Hellis81
(Hellis81)
June 11, 2022, 6:26pm
4
Great image… but it still doesn’t answer the issues I raised in the previous post.
lidans5
(lior)
June 11, 2022, 6:43pm
5
yes it does, the temperature was raised above 32 Thursday after 10:00 am
123
(Taras)
June 11, 2022, 6:55pm
6
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