I am working on creating a light duty security system within HA. I have a grouping of several automations on my dashboard. When I turn on the main group switch, it correctly activates all the automations. What I would like to do is make an automation which would add a delay.
IE Turn on the dashboard switch, script waits x seconds, then turns on the group switch. This give me time to leave the house without triggering my automation. The issue I have is how to create a dashboard switch which does an action when manually switched on or off. What would I use for the trigger?
I believe I am looking for something like
- alias: Security System - Away Arming
inital_state: False
trigger: NO IDEA WHAT TO PUT HERE
action:
- delay:
seconds: 10
- service.automation.turn_on
entity_id: automation.msensor__basement
Any suggestions or different approach to this solution would be appreciated. Thanks
Jason S.