I have an automation that sends me a notification on my phone when my camera detects motion, based on this blueprint. I only want this automation active when my alarm control panel is armed_home, armed_away or triggered state. It needs to disable when the alarm has state disarmed.
I got this to work, with two separate automations, which enable/disable the alarm based on the alarm state. Is there a better/cleaner way to map one or multiple entity states to an automation’s enabled status?
Side question: after messing around with HA for two weeks now, I have a mixed setup from the UI and some in the yaml files (things I copied from the Docs or from the forum). It disturbs me that the configuration isn’t in one place. Configs you do via the UI don’t end up in the yaml files, I learned. Should I try to migrate the UI generated automations for example to the yaml files?
Oh yes, you are right, bad example. I was thinking for example about devices, added via the UI, or settings made in the UI, not showing up in configuration.yaml.
So does this mean I can have further control over this automation coming from a blueprint, by editing the automations.yaml file?
Yeah, it felt like bad practice indeed, having two automations to enable/disable another one…