I am trying to achieve the following. I have a couple of situations where I would like to switch off appliances (for example the dryer, washing machines, airco’s, etc.).
For each situation I have an automation (for example; leaving the house & goodnight). In both automations I have the same actions to disable the appliances, which is redundant. I know I can trigger an automation from an automation, so I am trying to do as following:
Automation ‘Leaving house’ → Trigger ‘Shutdown appliances’ with ‘info value’ ‘leaving’ → Disable Washing machine, dryer and airco
Automation ‘Goodnight’ → Trigger ‘Shutdown appliances’ with ‘info value’ ‘goodnight’ → Disable Washing machine & dryer (leaving airco on).
With trigger ID’s I am able to differentiate a trigger for ‘leaving’ and ‘goodnight’, but how can I capture the ‘info value’?
I have read input booleans, but it feels over complicated. I have to make sure the boolean also gets unchecked etc.
Edit: sorry about this, why does the ‘eureka’ moment happens when you reach out to ask something. I discovered ‘events’ and that seems to do the trick:
Action from Automation 1:
> event: manage_appliance
> event_data:
> scenario: goodnight
> alias: Trigger 'manage appliances'
Trigger condition automation 2:
platform: event
event_type: manage_appliance
id: goodnight
alias: Goodnight triggered
event_data:
scenario: goodnight