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

@@ -46,20 +46,6 @@
entity_id: sensor.internet_speed_out
sampling_size: 10
- platform: template
sensors:
sun_rising_template:
friendly_name: "Sun Rising Template"
unique_id: '0680294616247'
value_template: "{{ as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom ('%H:%M') }}"
- platform: template
sensors:
sun_setting_template:
friendly_name: "Sun Setting Template"
unique_id: '8298170865533'
value_template: "{{ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom ('%H:%M') }}"
# Sensor for Riemann sum of energy import (W -> Wh)
- platform: integration
source: sensor.power_import