I have a read a few, other, posts on temp triggers, and confirmed I see to be “ok” with any issues they had.
Issue: Triggers set to a threshold are not executed when entity state clearly has crossed threshold.
Exhibit A (config) shows automation rule, and triggers. Exhibit B (developer tools state screenshot) shows current temperature is indeed centigrade, and history crossing threshold of 20, and finally exhibit C (history) shows the entity previously being above that threshold.
The trigger I care about specifically is the “very_cold” @ 20 degrees.
Really appreciate any thoughts or tips to debug this!
Exhibit A - The Rule:
alias: "zGrows: Big Tent - Climate Control"
description: ""
trigger:
- id: too_humid
platform: numeric_state
entity_id: sensor.big_tent_humidity
for:
hours: 0
minutes: 1
seconds: 0
above: 68
- id: too_hot
platform: numeric_state
entity_id: sensor.big_tent_temperature
above: 25
for:
hours: 0
minutes: 10
seconds: 0
- id: warm_enough
platform: numeric_state
entity_id: sensor.big_tent_temperature
above: 23
for:
hours: 0
minutes: 5
seconds: 0
- id: too_dry
platform: numeric_state
entity_id: sensor.big_tent_humidity
for:
hours: 0
minutes: 5
seconds: 0
below: 42
- id: too_cool
platform: numeric_state
entity_id: sensor.big_tent_temperature
attribute: temp
for:
hours: 0
minutes: 5
seconds: 0
below: 22
- id: very_cool
platform: numeric_state
entity_id: sensor.big_tent_temperature
attribute: temp
for:
hours: 0
minutes: 5
seconds: 0
below: 20
condition: []
action:
- if:
- condition: trigger
id: warm_enough
then:
- type: turn_off
device_id: 2632028e25b6132400a16b2031b2268b
entity_id: switch.heater
domain: switch
else:
- if:
- condition: trigger
id: very_cool
then:
- type: turn_on
device_id: 2632028e25b6132400a16b2031b2268b
entity_id: switch.heater
domain: switch
- if:
- condition: or
conditions:
- condition: trigger
id: too_hot
- condition: and
conditions:
- condition: trigger
id: too_humid
- condition: not
conditions:
- condition: numeric_state
entity_id: sensor.big_tent_temperature
below: 20
then:
- type: turn_on
device_id: 2632028e25b6132400a16b2031b2268b
entity_id: switch.vents
domain: switch
else:
- type: turn_off
device_id: 2632028e25b6132400a16b2031b2268b
entity_id: switch.vents
domain: switch
mode: single
Exhibit B - Current Entity State (from developer tools)
Temp is currently below 22, and went as low as 18 last night.
(the rise in temp is not from this rule, but greenhouse light on timed trigger sep. rule )
rule never fired