I have a Nest Doorbell and several tablets over the house, they all share the same username but each have their own Area on a shared Dashboard.
Now I started doing a simple automation, when the doorbell is Pressed, i navigate to the View that has the camera for the door, so far so good.
Now, what i want to do is,
-
Make a Condition for the Automation to only apply to the user “Tablet”, reason being when someone pressed the doorbell i dont want my computer changing View risking loosing data when I´m working on the HA administration. But I haven’t found a way to check the currently logged in User but i figure it should be easy for HA to see that information so maybe I´m missing something basic here.
-
Before the action to Navigate to the camera view, i need to save the current View for each Device/Tablet, normally i would just create a Scene and store the state of the current Url but I´m not sure how i can do that on a per device basis?
-
And of course, after a short delay of say 45 seconds, return each Device to the previous View/url. Again, no problem to check my saved Scene state, but per user/device is where I´m stuck.
Surely this shouldent be out of the realm of possibility i thought and maybe someone already had something simular already in place or can point me in the right direction when it comes to,
Checking currently logged in user and Saving a state for each device logged in with a specific username.