Probably this is standard stuff that has been asked repeatedly, but I did not find too much useful postings with my generic search terms:
I want to put a Raspberry Pi 4 somewhere, set it to autologin on boot, make a browser start by itself, and use it like many people use tablets: For notifications and as a dashboard. There are two things I am not sure how to do most elegantly:
-
When the screen is idle I want to switch it off, with
xset -display :0 dpms force off
or similar so the display goes to sleep. But I want the screen to wake up, when there is an important state change on Home Assistant, or a notification. I suppose the easiest way to do this is to wrap this xset -display :0 dpms force off with a script that can be triggered remotely, by presenting HA eg. with a REST interface to this script or some way to execute it via SSH. -
I want to have some kind of dashboard, that the browser on the raspberry pi is switched to when idle. To do this I need some kind of browser remote control to switch the URL, or maybe to kill the browser each time idle is detected, and restart it with my dashboard URL. Kind of like a kiosk mode, only that I don’t want to prohibit chaning the URL manually.
Does anybody do similar things, are there maybe setups I could copy, so I don’t have to reinvent the wheel? Anything I am overlooking? Are there more specific search terms to describe a setup like this?
TIA, Ralph