|
| 1 | +# linux2mqtt — Home Assistant Lovelace dashboard |
| 2 | +# |
| 3 | +# Entity ids follow `<domain>.<device_name_slug>_<key>`. This example uses the |
| 4 | +# slug `ha_pi4` (DEVICE_NAME "HA Pi4"). If your DEVICE_NAME differs, find/replace |
| 5 | +# `ha_pi4` with your slug. Cards referencing optional components (GPU, Pi, audio, |
| 6 | +# MPRIS) can be removed if you don't have them. |
| 7 | +# |
| 8 | +# Add via Settings → Dashboards → New dashboard → Edit → Raw configuration editor, |
| 9 | +# or drop under `views:` in an existing dashboard. |
| 10 | + |
| 11 | +title: linux2mqtt |
| 12 | +views: |
| 13 | + - title: Power |
| 14 | + path: power |
| 15 | + icon: mdi:flash |
| 16 | + cards: |
| 17 | + - type: gauge |
| 18 | + name: Power |
| 19 | + entity: sensor.ha_pi4_power |
| 20 | + unit: W |
| 21 | + needle: true |
| 22 | + severity: {green: 0, yellow: 30, red: 80} |
| 23 | + - type: entities |
| 24 | + title: Power detail |
| 25 | + entities: |
| 26 | + - entity: sensor.ha_pi4_power |
| 27 | + - entity: sensor.ha_pi4_source |
| 28 | + - entity: sensor.ha_pi4_error_margin |
| 29 | + - entity: sensor.ha_pi4_power_floor |
| 30 | + - entity: sensor.ha_pi4_power_ceiling |
| 31 | + - entity: sensor.ha_pi4_energy |
| 32 | + - entity: sensor.ha_pi4_cost |
| 33 | + - entity: sensor.ha_pi4_model |
| 34 | + - type: history-graph |
| 35 | + title: Power & envelope (24h) |
| 36 | + hours_to_show: 24 |
| 37 | + entities: |
| 38 | + - sensor.ha_pi4_power |
| 39 | + - sensor.ha_pi4_power_floor |
| 40 | + - sensor.ha_pi4_power_ceiling |
| 41 | + - type: statistics-graph |
| 42 | + title: Energy |
| 43 | + chart_type: bar |
| 44 | + period: hour |
| 45 | + stat_types: [state] |
| 46 | + entities: [sensor.ha_pi4_energy] |
| 47 | + |
| 48 | + - title: System |
| 49 | + path: system |
| 50 | + icon: mdi:chip |
| 51 | + cards: |
| 52 | + - type: glance |
| 53 | + title: Host |
| 54 | + entities: |
| 55 | + - entity: sensor.ha_pi4_uptime |
| 56 | + - entity: sensor.ha_pi4_ip_address |
| 57 | + - entity: sensor.ha_pi4_cpu_cores |
| 58 | + - entity: sensor.ha_pi4_operating_system |
| 59 | + - entity: sensor.ha_pi4_architecture |
| 60 | + - type: horizontal-stack |
| 61 | + cards: |
| 62 | + - type: gauge |
| 63 | + name: CPU |
| 64 | + entity: sensor.ha_pi4_cpu_utilization |
| 65 | + unit: "%" |
| 66 | + severity: {green: 0, yellow: 60, red: 90} |
| 67 | + - type: gauge |
| 68 | + name: RAM |
| 69 | + entity: sensor.ha_pi4_ram_usage |
| 70 | + unit: "%" |
| 71 | + severity: {green: 0, yellow: 70, red: 90} |
| 72 | + - type: gauge |
| 73 | + name: Disk |
| 74 | + entity: sensor.ha_pi4_disk_host_usage |
| 75 | + unit: "%" |
| 76 | + severity: {green: 0, yellow: 75, red: 90} |
| 77 | + - type: entities |
| 78 | + title: Load & memory |
| 79 | + entities: |
| 80 | + - entity: sensor.ha_pi4_load_1m |
| 81 | + - entity: sensor.ha_pi4_load_5m |
| 82 | + - entity: sensor.ha_pi4_load_15m |
| 83 | + - entity: sensor.ha_pi4_ram_used |
| 84 | + - entity: sensor.ha_pi4_swap_usage |
| 85 | + - entity: sensor.ha_pi4_disk_host_free |
| 86 | + - type: history-graph |
| 87 | + title: Throughput (kB/s) |
| 88 | + hours_to_show: 6 |
| 89 | + entities: |
| 90 | + - sensor.ha_pi4_network_up |
| 91 | + - sensor.ha_pi4_network_down |
| 92 | + - sensor.ha_pi4_disk_read |
| 93 | + - sensor.ha_pi4_disk_write |
| 94 | + - type: entities |
| 95 | + title: Services |
| 96 | + entities: |
| 97 | + - binary_sensor.ha_pi4_sshd_running |
| 98 | + - binary_sensor.ha_pi4_dockerd_running |
| 99 | + - binary_sensor.ha_pi4_mosquitto_running |
| 100 | + |
| 101 | + - title: CPU / GPU |
| 102 | + path: cpu-gpu |
| 103 | + icon: mdi:cpu-64-bit |
| 104 | + cards: |
| 105 | + - type: entities |
| 106 | + title: CPU |
| 107 | + entities: |
| 108 | + - entity: sensor.ha_pi4_cpu_utilization |
| 109 | + - entity: sensor.ha_pi4_cpu_frequency |
| 110 | + - entity: sensor.ha_pi4_cpu_temperature |
| 111 | + - entity: sensor.ha_pi4_cpu_power |
| 112 | + - type: gauge |
| 113 | + name: CPU temperature |
| 114 | + entity: sensor.ha_pi4_cpu_temperature |
| 115 | + unit: °C |
| 116 | + severity: {green: 0, yellow: 70, red: 80} |
| 117 | + - type: entities |
| 118 | + title: GPU (if present) |
| 119 | + entities: |
| 120 | + - entity: sensor.ha_pi4_gpu_utilization |
| 121 | + - entity: sensor.ha_pi4_gpu_temperature |
| 122 | + - entity: sensor.ha_pi4_gpu_memory |
| 123 | + - entity: sensor.ha_pi4_gpu_power |
| 124 | + |
| 125 | + - title: Raspberry Pi |
| 126 | + path: rpi |
| 127 | + icon: mdi:raspberry-pi |
| 128 | + cards: |
| 129 | + - type: entities |
| 130 | + title: Health |
| 131 | + entities: |
| 132 | + - entity: binary_sensor.ha_pi4_undervoltage |
| 133 | + - entity: binary_sensor.ha_pi4_throttled |
| 134 | + - entity: binary_sensor.ha_pi4_frequency_capped |
| 135 | + - entity: binary_sensor.ha_pi4_overheating |
| 136 | + - entity: binary_sensor.ha_pi4_overclocked |
| 137 | + - type: entities |
| 138 | + title: History (since boot) |
| 139 | + entities: |
| 140 | + - entity: binary_sensor.ha_pi4_undervoltage_occurred |
| 141 | + - entity: binary_sensor.ha_pi4_throttling_occurred |
| 142 | + - entity: binary_sensor.ha_pi4_overheating_occurred |
| 143 | + - type: entities |
| 144 | + title: Clocks & voltage |
| 145 | + entities: |
| 146 | + - entity: sensor.ha_pi4_arm_clock |
| 147 | + - entity: sensor.ha_pi4_configured_arm_freq |
| 148 | + - entity: sensor.ha_pi4_core_voltage |
| 149 | + - entity: sensor.ha_pi4_over_voltage |
| 150 | + |
| 151 | + - title: Audio |
| 152 | + path: audio |
| 153 | + icon: mdi:volume-high |
| 154 | + cards: |
| 155 | + - type: entities |
| 156 | + title: Audio (if an audio server is running) |
| 157 | + entities: |
| 158 | + - entity: sensor.ha_pi4_audio_server |
| 159 | + - entity: number.ha_pi4_volume |
| 160 | + - entity: switch.ha_pi4_mute |
| 161 | + - entity: number.ha_pi4_mic_volume |
| 162 | + - entity: switch.ha_pi4_mic_mute |
| 163 | + - type: entities |
| 164 | + title: Now playing (MPRIS) |
| 165 | + entities: |
| 166 | + - entity: sensor.ha_pi4_media_status |
| 167 | + - entity: sensor.ha_pi4_media_title |
| 168 | + - entity: sensor.ha_pi4_media_artist |
| 169 | + - type: horizontal-stack |
| 170 | + cards: |
| 171 | + - type: button |
| 172 | + name: Previous |
| 173 | + icon: mdi:skip-previous |
| 174 | + tap_action: {action: toggle} |
| 175 | + entity: button.ha_pi4_media_previous |
| 176 | + - type: button |
| 177 | + name: Play/Pause |
| 178 | + icon: mdi:play-pause |
| 179 | + entity: button.ha_pi4_media_play_pause |
| 180 | + - type: button |
| 181 | + name: Next |
| 182 | + icon: mdi:skip-next |
| 183 | + entity: button.ha_pi4_media_next |
0 commit comments