This is a common scenario where time and a value must satisfy certain conditions in order to perform the actions.
If the temperature drops below the threshold value before 19:00:00
the Time Condition prevents the action from executing. To correct this, simply add a Time Trigger to trigger the automation at 19:00:00
and a Numeric State Condition that checks if the sensor’s value is below the threshold.
alias: Babykamer Temp onder 18 (Te Laag)
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.babykamer_temperatuur
below: 19
- platform: time
at: '19:00:00'
condition:
- condition: time
after: '19:00:00'
before: '07:00:00'
- condition: numeric_state
entity_id: sensor.babykamer_temperatuur
below: 19
action:
- service: climate.set_temperature
data:
temperature: 23
target:
entity_id: climate.woonkamer
mode: single