Migrated deprecated template sensors to modern way.

This commit is contained in:
2025-12-04 08:47:45 +01:00
parent 247c96df5d
commit 3d5693ceaa
2 changed files with 10 additions and 14 deletions

View File

@@ -39,6 +39,16 @@
data:
value: "{{ option }}"
- sensor:
- unique_id: 0680294616247
default_entity_id: sensor.sun_rising_template
name: Sun Rising Template
state: '{{ as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom
(''%H:%M'') }}'
- unique_id: '8298170865533'
default_entity_id: sensor.sun_setting_template
name: Sun Setting Template
state: '{{ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom
(''%H:%M'') }}'
- name: "power_other"
unique_id: '5579422933393'
unit_of_measurement: "W"