Hi,
I have a trigger which is based on the state of an input boolean. I change the boolean and a script runs. I have 5 of these, booleans, and 5 scripts. The object_id of each boolean matches the object_id of a script.
I would like to combine the automations in to one, such as:
- alias: "heating boost to a room"
trigger:
- platform: state
entity_id: input_boolean.heating_boost_james_room
from: 'off'
to: 'on'
action:
- service: input_number.set_value
data:
value: 5
target:
entity_id: input_number.heating_boost_upstairs
- delay:
seconds: 2
- service: "script.{{trigger.object_id}}"
This dosn’t appear to work and I am too much of an idiot to figure out why - can anyone help?