Migrated deprecated template sensors to modern way.
This commit is contained in:
14
sensors.yaml
14
sensors.yaml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user