I created 2 different automation to increase and decrease the temperature at different times and when the room is above or below a specific temperature. When I manually run them, they just set the temperature in the action: settings. But when I run the script, they work fine.
Automation
alias: Above 22.5°C
description: ""
triggers:
- type: temperature
device_id: c438dd5b4b156cfc1bf339f2b83835a3
entity_id: 95c97a79be8c78e4ff98d4071949132b
domain: sensor
trigger: device
above: 22.5
conditions:
- condition: time
after: "02:45:00"
before: "15:45:00"
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 21
target:
device_id: c438dd5b4b156cfc1bf339f2b83835a3
mode: single
alias: Below 21.5°C
description: ""
triggers:
- type: temperature
device_id: c438dd5b4b156cfc1bf339f2b83835a3
entity_id: 95c97a79be8c78e4ff98d4071949132b
domain: sensor
trigger: device
below: 21.5
conditions:
- condition: time
after: "02:45:00"
before: "15:45:00"
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 22.5
target:
device_id: c438dd5b4b156cfc1bf339f2b83835a3
mode: single
Scripts
alias: above 22.5
sequence:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.ecodon_zone_1_room_temperature
above: 22.5
- condition: and
conditions:
- condition: time
after: "02:45:00"
before: "15:45:00"
sequence:
- action: climate.set_temperature
metadata: {}
data:
temperature: 21
target:
entity_id: climate.ecodon_zone_1
description: ""
alias: below 21.5
sequence:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.ecodon_zone_1_room_temperature
below: 21.5
- condition: time
after: "02:45:00"
before: "15:45:00"
sequence:
- action: climate.set_temperature
metadata: {}
data:
temperature: 22
target:
entity_id: climate.ecodon_zone_1
description: ""