I have created a schedule where on a daily base at 3 specific times something should be switched on and 1h30 later it should be switched off (a Shelly Power Plug)
Next I have created an automation to switch the power plug based upon the state of the schedule. But it doesn’t seem to work. What am I doing wrong?
alias: Boiler STATE based upon schedule
description: ""
trigger:
- platform: state
entity_id:
- schedule.boiler
to: "on"
id: Boiler ON
from: "off"
- platform: state
entity_id:
- schedule.boiler
to: "off"
id: Boiler OFF
from: "on"
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: Boiler ON
sequence:
- type: turn_on
device_id: xxxxxxxxxxxxxxxxxxxx
entity_id: switch.pp_boiler
domain: switch
- conditions:
- condition: trigger
id: Boiler OFF
sequence:
- type: turn_off
device_id: xxxxxxxxxxxxxxxxxxxx
entity_id: switch.pp_boiler
domain: switch
mode: single