Hi Aqara users!
I would like to share my workaround of adding flags to the Aqara app to track different states of my home
Examples from my real live:
-
I have a smart master switch which turns off all the light in the home. But, if I left my dog at home - the whole light should be turned of except the light near the front door. So I need to set a flag “pet_at_home” and use this flag as a condition in automations
-
when I have guests, some my automations should be disabled. I don’t want to manually enable and disable them, I want just to set a flag “guests” and add this flag to the required automations as a condition
Solution - use automations as a flags
-
Create always disabled automation, let’s call it “always_disabled”. The trigger and action can be any as the automation is always disabled
-
Create a “flag” automation with name “guest_at_home”. The trigger can be any (timer), the action - “disable always_disabled automation” - so actually nothing will happen
But now we can enable and disable “guest_at_home” automation and use this state as a flag
You can create as many as you need such flags - they will have the same action - disable the first automation, but each of them could represent some state
Other examples of my flag:
-
“someone_at_home” - use HomeKit automation to enable/disable the flag when the first person arrived or the last left
-
“without_presence” - condition in all automations based on presence (fp300). Sometimes I need to disable such devices by one single click