Up until a few days ago, the following automation worked as expected, passing either ‘on’ or ‘off’ to the script. However, now it passes the text ‘trigger.to_state.state’. I haven’t made any meaningful change to the automation (and also reverted all changed to no avail), but I do believe the upgrade from 0.51 to 0.52 happened in that time frame.
What am I doing wrong?
Thanks
- alias: Activate boiler on schedule
trigger:
platform: state
entity_id: calendar.boiler
action:
service: script.turn_on
entity_id: script.toggle_boiler
data:
variables:
state: trigger.to_state.state