I’m looking for a very simple solution to ensure that when I have guests and when I leave the house, that all my away automation doesn’t start.
In other words, I’m thinking of e.g. having a virtual switch “The Guest”, when the virtual switch are ON it have a corresponding virtual device e.g. device_tracker.virtual_guest set to ‘home’ — that way when all of my automation looks at the state of group.all_devices - and when the GUEST is ‘home’ or rather the virtual switch are on ‘ON’ state, it would seem like a someone are at home.
So my question would be - would this be the easiest way to implement a guest mode and how do I actually implement this, any suggestions and guiding examples?
I have an input_boolean for guests. And a template sensor which combines all monitored devices plus the input_boolean. In all my automations I check the template sensor instead of the device trackers.
Well not as simple as I have hoped - on the other hand I think this would be somewhat required, in order to achieve what I was looking for… I guess I would be able to reduce a bit here and there, but the main logic it in the Package.
Then make a call to turn off the automations you don’t want to run while you are gone. (Create another with the opposite action to turn them back on when you return or want guest mode off. )