Kiosk mode means converting a PC's full featured graphical desktop into a simple touch screen.
First decide on portrait or landscape mode and then in Control Center > Display disable the on screen keyboard.
Test Font sizes and probably set a dark theme.
Both the browser chromium and home assistant need to use their kiosk mode.
Once header and sidebar are turned off they can almost not be turned on again. Therefore create a home assistant Kiosk user so just the Kiosk user will have no header and sidebar.
Restrict the Kiosk user rights as no administrator and login just from local network. The kiosk mode affects individual dashboards. So if something goes wrong select an other dashboard showing the header and sidebar.
On the kiosk device open home assistant as chromium http://<hostname or IP>:8123 without kiosk option but log in as Kiosk user.
Make sure "keep me logged in" is selected
chromium --kiosk http://<hostname or IP>:8123 will open in kiosk mode. Alt + F4 will exit.
or pkill chromium will terminate as well
http:// from a remote computer and ssh will still work as usual. <hostname or IP>:8123
To have it started after power up add to or create ~/.config/labwc/autostart (try first without --kiosk, --password-store=basic prevents popping up the keyring authentication window and --user-data-dir will move the chomium Kiosk data as cookies, cache away from the regular users data)
# Start Chromium sleep 30 chromium \ --user-data-dir=/home/<username>/.config/chromium-kiosk \ --password-store=basic \ --kiosk \ http://<IP or hostname of home assistant>:8123 &
Sleep 30 seconds sleep is added to give time since home assistant must run before chromium accesses it.
If exited as with Alt + F4 reenter in the GUI using the console chromium --user-data-dir=/home/lindegur/.config/chromium-kiosk --password-store=basic --kiosk http://homeserver2:8123 or reboot
The next step is putting home assistant in Kiosk mode to hide the header and side bars. Install "Kiosk Mode" from Marketplace and restart home assistant.
Go to Settings and select the desired dashboard to be put in kiosk mode then click on Raw configuration editor and put on top of the yaml code:
kiosk_mode:
user_settings:
- users:
- Kiosk
hide_sidebar: true
hide_header: true
Now refresh the browser, header and side bar should have been gone.
Having one dashboard in Kiosk mode is probably not enough a button to open an other dashboard might be desired.
Add a button card to the dashboard to open the map dashboard. Enter to yaml:
type: button name: Map icon: mdi:map tap_action: action: navigate navigation_path: /map/0
/map/0 is the path as shown in the url when opening the map dashboard