Home Assistant dashboard
Ready-made YAML for a nice MuPiBox page in Home Assistant – player, battery, display image, announcements and maintenance – plus automation examples.
With the Home Assistant integration you get the MuPiBox player, battery, Wi-Fi and maintenance in Home Assistant. This page gives you a ready-made dashboard card to paste and two automations as templates. Only cards that are built into Home Assistant are used – no extra HACS frontend needed.
First: check the entity names
The integration names the entities after the device. In the examples the box is called MuPiBox, so all IDs start with mupibox_ (e.g. media_player.mupibox_player). If your box has a different name, such as "Kids room", the ID is media_player.kids_room_player.
To check the IDs, open Settings → Devices & services → MuPiBox → device and click the entities. For some entities (buttons, audio output, announcement) the name depends on the language Home Assistant used during setup – look those IDs up there.
| Entity (English name) | Example ID |
|---|---|
| Player | media_player.mupibox_player |
| Battery | sensor.mupibox_battery |
| Charging / External power | binary_sensor.mupibox_charging, binary_sensor.mupibox_external_power |
| Wi-Fi signal | sensor.mupibox_wi_fi_signal |
| CPU temperature / CPU usage / Storage usage | sensor.mupibox_cpu_temperature, sensor.mupibox_cpu_usage, sensor.mupibox_storage_usage |
| Version / Active provider | sensor.mupibox_version, sensor.mupibox_active_provider |
| Battery voltage / Battery current / MuPiHAT temperature | sensor.mupibox_battery_voltage, sensor.mupibox_battery_current, sensor.mupibox_mupihat_temperature |
| Operating state | sensor.mupibox_operating_state |
| Display (image of the touchscreen) | camera.mupibox_display |
| Audio output | select.mupibox_audio_output |
| Restart box / Power off box | button.mupibox_restart_box, button.mupibox_power_off_box |
| Speak announcement | notify.mupibox_speak_announcement |
Battery and charging values are only available with a MuPiHAT. The announcement entity and the restart/power-off buttons only exist if you allowed TTS and display messages or Restart and shutdown while pairing.
The dashboard card
- Tap the pencil (Edit dashboard) at the top right of the dashboard.
- Add card → choose Manual at the very bottom.
- Delete the content, paste the YAML below, adjust the entity IDs if needed, Save.
type: vertical-stack
cards:
- type: media-control
entity: media_player.mupibox_player
- type: grid
columns: 3
square: false
cards:
- type: gauge
entity: sensor.mupibox_battery
name: Battery
min: 0
max: 100
severity:
green: 50
yellow: 20
red: 0
- type: tile
entity: binary_sensor.mupibox_charging
name: Charging
- type: tile
entity: sensor.mupibox_wi_fi_signal
name: Wi-Fi
- type: picture-entity
entity: camera.mupibox_display
name: Box display
camera_view: auto
show_state: false
- type: entities
title: Announcement and output
entities:
- entity: select.mupibox_audio_output
name: Audio output
- type: button
name: Good-night announcement
icon: mdi:weather-night
action_name: Send
tap_action:
action: perform-action
perform_action: notify.send_message
target:
entity_id: notify.mupibox_speak_announcement
data:
message: Good night! The music will get quieter soon.
- type: entities
title: Maintenance
state_color: true
entities:
- entity: sensor.mupibox_version
name: Version
- entity: sensor.mupibox_cpu_temperature
name: CPU temperature
- entity: sensor.mupibox_storage_usage
name: Storage used
- entity: button.mupibox_restart_box
name: Restart box
- entity: button.mupibox_power_off_box
name: Power off box
Battery history with operating state
These cards show the battery much like the battery history in the Admin interface: a coloured timeline with the operating state (playing, in use, idle, display off, standby) at the top, battery level and CPU load below, current and voltage in a second graph. Hover over the curve or tap it, and Home Assistant shows the exact values for that moment. The third card summarises seven days as mean, minimum and maximum.
This needs the integration 0.5.0 or newer and a box running 0.1.0-test.19 or newer; only then does the box send MuPiHAT values and the operating state over the secure pairing. Home Assistant records the history itself, so it starts on the day the entities appear. If Home Assistant runs in German, the state sensor is usually called sensor.mupibox_betriebszustand.
type: vertical-stack
cards:
- type: history-graph
title: Battery and operating state
hours_to_show: 24
entities:
- entity: sensor.mupibox_operating_state
name: Operating state
- entity: sensor.mupibox_battery
name: Battery
- entity: sensor.mupibox_cpu_usage
name: CPU
- type: history-graph
title: Current and voltage
hours_to_show: 24
entities:
- entity: sensor.mupibox_battery_current
name: Current
- entity: sensor.mupibox_battery_voltage
name: Voltage
- type: statistics-graph
title: Battery – 7 days
days_to_show: 7
chart_type: line
stat_types:
- mean
- min
- max
entities:
- entity: sensor.mupibox_battery
name: Battery
Automation: good-night announcement
Every evening at 7:30 pm an announcement, then the volume is turned down. volume_level refers to the box's maximum volume: 0.2 is 20 % of it. Paste under Settings → Automations & scenes → Create automation → ⋮ → Edit in YAML:
alias: MuPiBox – Good night
triggers:
- trigger: time
at: "19:30:00"
actions:
- action: notify.send_message
target:
entity_id: notify.mupibox_speak_announcement
data:
message: Good night! Bedtime in ten minutes.
- delay: "00:00:10"
- action: media_player.volume_set
target:
entity_id: media_player.mupibox_player
data:
volume_level: 0.2
mode: single
Automation: low battery warning
Sends a message to your phone when the battery drops below 15 % and the box is not charging. Replace notify.mobile_app_your_phone with your own notification service.
alias: MuPiBox – Battery low
triggers:
- trigger: numeric_state
entity_id: sensor.mupibox_battery
below: 15
conditions:
- condition: state
entity_id: binary_sensor.mupibox_charging
state: "off"
actions:
- action: notify.mobile_app_your_phone
data:
message: The MuPiBox battery is down to {{ states('sensor.mupibox_battery') }} %.
mode: single