This will only trigger when the temperature goes from 18C to 17C. After that it will not trigger again until the temperature rises above 17.5, then goes down again. Is that what you were expecting?
Also, you might be better using an entity state trigger. On mine this would be:
alias: New Automation
description: ""
trigger:
- platform: state
entity_id:
- sensor.thermostat_current_temperature
condition: []
action:
- choose:
- conditions:
- alias: If temperature is above 22C at any time
condition: numeric_state
entity_id: sensor.thermostat_current_temperature
above: 21
sequence:
- service: notify.mobile_app_ac2003
metadata: {}
data:
title: Hive
message: Heating off
- conditions:
- alias: Day time
condition: and
conditions:
- alias: Temperature is below 18C
condition: numeric_state
entity_id: sensor.thermostat_current_temperature
below: 18
- condition: time
after: "07:00:00"
before: "22:00:00"
alias: It's day time
sequence:
- service: notify.mobile_app_ac2003
metadata: {}
data:
title: Hive
message: "Heating on "
mode: single```
What i would like to do is boost for an hour when it drops lets say below 18c
and then wait x time before it boosts again?