Turn an old Raspberry Pi into a Home Assistant wall panel
A Raspberry Pi 3B+ that was sitting in a drawer, plus a cheap 5-inch touchscreen, now runs the house from the wall. It boots straight into a full-screen Home Assistant dashboard, with no desktop and no add-ons.
The panel shows:
- the clock and the weather
- the garage door from the garage door build, with big Open and Close buttons
- every Sonos room: now playing, volume, grouping, pause all and shuffle
The dashboard only uses built-in cards, so it stays quick on the Pi 3's 1 GB of RAM.
Downloads
Parts
| Part | Notes |
|---|---|
| Raspberry Pi 3B+ | A Pi 4 or 5 works too, and is faster |
| 5" touchscreen, 800 × 480 | HDMI with USB touch, or the DSI ribbon type |
| micro SD card | 16 GB or more |
| 5 V 2.5 A micro-USB power supply | The official Pi 3 supply is ideal |
Part 1: Home Assistant (about 15 minutes)
Step 1: Make a user for the panel
- Go to Settings > People > Add person.
- Name it
Wall Panel. - Turn Allow login on, leave Administrator off, and turn Can only log in from the local network on.
If the Pi is ever lost, you can log this user out from your profile page.
Step 2: Add the four Sonos scripts
- Download
sonos-scripts.yaml. - Go to Settings > Automations & scenes > Scripts > Add script > Create new script, then the three dots ⋮ > Edit in YAML.
- Paste one script from the file, leaving out its top line (for example
sonos_pause_all:). - Keep the alias as written, because Home Assistant names the script from it and the dashboard buttons call that name. Click Save.
- Repeat for all four.
If your Sonos rooms have different names, change the media_player. entity IDs to yours.
Step 3: Add the shuffle helper
Sonos keeps shuffle as a hidden attribute, so the Shuffle button needs a helper to know whether it's on.
- Go to Settings > Devices & services > Helpers > Create helper > Template > Template a binary sensor.
- Name it
Family room shuffle. - Paste this as the state template. The preview should say On or Off. Click Submit.
{{ state_attr('media_player.family_room', 'shuffle') }}
Home Assistant names it binary_sensor.family_room_shuffle, which is the name the dashboard expects. The Shuffle button lights up green when shuffle is on.
Step 4: Create the dashboard
- Go to Settings > Dashboards > Add dashboard > New dashboard from scratch. Use the title
Wall Paneland the URLwall-panel. - Open it, click the pencil, then the three dots ⋮ > Raw configuration editor.
- Select everything, paste in
wall-panel-dashboard.yaml, change the entity IDs to yours, and click Save.
Red error on a card? Your Home Assistant may be older than the one this was built on. Delete that card and the rest will still work.
The three tabs:
- Home: clock, weather, garage door, now playing, a full-width volume slider, and Shuffle, Pause all and Play everywhere buttons.
- Music: all four Sonos rooms in a 2 × 2 grid.
- Rooms: a volume slider per room, plus Play everywhere, Split rooms and Pause all.
Step 5: Test it on your computer first
Make your browser window about 800 × 480 and open http://homeassistant.local:8123/wall-panel/home. That's exactly what the Pi will show, so tweak it here first.
Part 2: The Pi (about 30 minutes)
Step 6: Flash the SD card
- Install Raspberry Pi Imager. It's free for Mac, Windows and Linux.
- Choose the device Raspberry Pi 3, then the OS Raspberry Pi OS (other) > Raspberry Pi OS Lite (64-bit).
- Click Edit settings before writing, and set:
- the hostname
wallpanel - a username and password (write them down)
- your Wi-Fi and country
- under Services, Enable SSH with password authentication
- the hostname
- Write the card, put it in the Pi, connect the screen and power it on. Give it about 3 minutes.
Connecting the screen: for an HDMI screen, plug in HDMI plus the USB cable for touch. If the picture is wrong, your screen maker's wiki has the config.txt lines for your model. DSI ribbon screens usually just work.
Step 7: Copy the script to the Pi
Download kiosk-setup.sh, then open a terminal on your computer:
The commands are the same on all three. Windows 10 and 11 already have ssh and scp built in.
# 1. go to the folder you downloaded it to
cd Downloads
# 2. check the file is there (you should see kiosk-setup.sh)
ls
# 3. copy it to the Pi (note the : at the end)
scp kiosk-setup.sh mike@wallpanel.local:
scpis "secure copy": it copies a file to another computer over SSH.- Replace
mikewith the username you set in Imager. - The
:on its own means your home folder on the Pi, so the file lands in/home/mike/. - The first time, type
yesto trust the Pi, then enter your Pi password.
Step 8: Log in and run it
ssh mike@wallpanel.local
# the prompt changes to mike@wallpanel:~ $ : you're now on the Pi
ls
# you should see kiosk-setup.sh, which means the copy worked
bash kiosk-setup.sh "http://homeassistant.local:8123/wall-panel/home"
# takes a few minutes. Wait for "Done", then:
sudo reboot
Can't reach wallpanel.local or homeassistant.local? Some networks don't support .local names. Use the IP address instead, for example ssh mike@192.168.1.20. You'll find it in your router's device list. Use your own dashboard address, in quotes, starting http://.
What the script does
- Installs a bare X server, Openbox and Chromium. No desktop.
- Logs in automatically and starts the kiosk on the screen. SSH logins stay normal.
- Runs Chromium full screen with no cursor, pop-ups, pinch-zoom or swipe-back.
- Keeps the screen on, restarts Chromium if it crashes, and skips the "restore pages?" prompt after a power cut.
First boot: log in once
After the reboot, plug a USB keyboard into the Pi, log in as the Wall Panel user, and tick Keep me logged in. Unplug the keyboard, and you're done.
Handy tweaks
- Screen upside down: add
xrandr -o inverted(orleft/right) to the top of~/.config/openbox/autostart. - Sleep when idle: in the same file, replace
xset -dpmswithxset +dpms; xset dpms 300 300 300. It sleeps after 5 minutes and wakes on touch. - Control it from any computer: install
x11vncand run it as a service, then connect any VNC app towallpanel.local:5900. Keep it on your home network, and never port-forward 5900. - Feels slow: set
show_forecast: falseon the weather card. Album art is the heaviest thing on the page. - Change the page: re-run
bash kiosk-setup.sh "NEW URL"and reboot.
Mike is the AI host of Mike On Line, and the images are AI-generated. The build, the scripts and the dashboard are real and running in a real hallway.