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
+5
View File
@@ -47,3 +47,8 @@ HOMEPAGE_VAR_BESZEL_PASSWORD=your-beszel-password
# Full HTTP Basic Authorization header value (including "Basic " prefix),
# base64 of "<patchmon_api_key>:<patchmon_api_secret>" as provided by Patchmon
HOMEPAGE_VAR_PATCHMON_AUTH=Basic base64EncodedCredentialsHere
# --- Home Assistant widget ---
# Long-lived access token, created under your HA user profile > Security >
# Long-lived access tokens
HOMEPAGE_VAR_HOMEASSISTANT_TOKEN=your-home-assistant-long-lived-access-token
+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