Add Home Assistant widget with custom entities

Shows Anwesenheit/Status as emoji via templates (input_select states
mapped to symbols instead of raw text) plus Netz and Solar power
sensors. Token documented in .env.example.
This commit is contained in:
2026-07-27 11:22:11 +02:00
parent 49e4223649
commit 91917cff2c
2 changed files with 18 additions and 0 deletions
+13
View File
@@ -131,6 +131,19 @@
icon: home-assistant.svg
href: https://haos.vogt.de.com/
description: Home Assistant
widget:
type: homeassistant
url: https://haos.vogt.de.com
key: "{{HOMEPAGE_VAR_HOMEASSISTANT_TOKEN}}"
custom:
- template: "{% if states('input_select.hausanwesenheit') == 'Anwesend' %}🏠{% elif states('input_select.hausanwesenheit') == 'Abwesend' %}🚪{% elif states('input_select.hausanwesenheit') == 'Urlaub' %}✈️{% else %}❓{% endif %}"
label: Anwesenheit
- template: "{% if states('input_select.wohnungsstatus') == 'Normal' %}✅{% elif states('input_select.wohnungsstatus') == 'Nachtruhe' %}🌙{% elif states('input_select.wohnungsstatus') == 'Wochenende' %}🎉{% elif states('input_select.wohnungsstatus') == 'Mittagsschlaf' %}😴{% else %}❓{% endif %}"
label: Status
- state: sensor.kammer_netzbezug_plus_keller_power_calc
label: Netz
- state: sensor.solarbank_2_e1600_pro_solarleistung
label: Solar
- Homematic:
icon: homematic-ip.png