Fix compact home overview sensor entities

This commit is contained in:
2026-04-06 17:54:00 +02:00
parent a0b2e33e49
commit c37fc87347
2 changed files with 3 additions and 28 deletions
+3 -3
View File
@@ -17,13 +17,13 @@ cards:
show_name: true show_name: true
show_state: true show_state: true
entities: entities:
- entity: sensor.n22_dato - entity: sensor.dato
name: Dato name: Dato
icon: mdi:calendar icon: mdi:calendar
- entity: sensor.n22_solopgang - entity: sensor.solopgang
name: Sol op name: Sol op
icon: mdi:weather-sunset-up icon: mdi:weather-sunset-up
- entity: sensor.n22_solnedgang - entity: sensor.solnedgang
name: Sol ned name: Sol ned
icon: mdi:weather-sunset-down icon: mdi:weather-sunset-down
- entity: binary_sensor.arbejdsdag - entity: binary_sensor.arbejdsdag
-25
View File
@@ -1,25 +0,0 @@
- platform: template
sensors:
n22_dato:
friendly_name: "Dato"
value_template: >
{{ now().strftime('%A %d %B') | replace('Monday','Mandag')
| replace('Tuesday','Tirsdag')
| replace('Wednesday','Onsdag')
| replace('Thursday','Torsdag')
| replace('Friday','Fredag')
| replace('Saturday','Lørdag')
| replace('Sunday','Søndag') }}
n22_solopgang:
friendly_name: "Solopgang"
value_template: >
{% set t = state_attr('sun.sun','next_rising') %}
{{ as_timestamp(t) | timestamp_custom('%H:%M') if t else '-' }}
n22_solnedgang:
friendly_name: "Solnedgang"
value_template: >
{% set t = state_attr('sun.sun','next_setting') %}
{{ as_timestamp(t) | timestamp_custom('%H:%M') if t else '-' }}