Auto-return to "standby" dashboard after idle?

Hey there,
I’m experimenting with custom dashboards that I want to use on an old 2-in-1 laptop screen running Ubuntu.

My plan: After a certain time of inactivity, navigate to a custom “standby” dashboard.

I actually got this running with the help of browserMod, but I don’t like that solution because it seems quite bloated, and after a prolonged period of standby time, browserMod doesn’t seem to react (webhook disengaging after a certain time?)

So, what I want to do now is actually very simple in theory: I have created a helper button that I put on my standby dashboard as the only content. Whenever that button is pressed, it brings the user to the actual dashboard. Simultaneously, on buttonpress, I want to start a timer, which navigates back to the standby dashboard after x minutes.

The problems/questions I am having:

  • How can I use a certain helper buttons “pressed” event as a trigger in automations? If at all?!
  • Is there a more global way to track the time of last user input that is not limited to a certain button? It would be nice to be able to reset the standby timer whenever any input (= user interaction with a button or navigation event) is registered.

Anyone who can help me with that? I am really new to automations and events, so maybe I’m missing an obvious solution?

So far, I tried using the button as a “State Change” trigger within the automation (see attached picture), but that doesn’t seem to be the way to react to the buttonpress. Nothing is happening

Thank you!
Markus

Update: I kinda solved it changing the button tap action to “run automation” and running the appropriate automation manually". I added a navigateTo action to the automation, so it’s almost doing what it should :wink:

I’d still be interested in the answer if there is a global “buttonpressed”/“userinteraction” event or such that I could use in order to globally register user-triggered navigate-events, button press events and so on? Again, I know that browser mod does kind of have it, but I would be interested in a ha-native event that offers something similar?