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