Added unique_ids
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
- select:
|
||||
- select:
|
||||
- name: "All WLED effects"
|
||||
unique_id: '6641823075755'
|
||||
state: "{{ states('input_text.wled_effekt') }}"
|
||||
icon: mdi:firework
|
||||
options: >
|
||||
@@ -12,6 +13,7 @@
|
||||
value: "{{ option }}"
|
||||
- select:
|
||||
- name: "Available Media Players"
|
||||
unique_id: '6284128947660'
|
||||
state: "{{ states('input_text.selected_media_player') }}"
|
||||
options: >
|
||||
{{ states.media_player
|
||||
@@ -25,6 +27,7 @@
|
||||
value: "{{ option }}"
|
||||
- sensor:
|
||||
- name: "power_other"
|
||||
unique_id: '5579422933393'
|
||||
unit_of_measurement: "W"
|
||||
icon: mdi:flash
|
||||
state: >
|
||||
@@ -55,6 +58,7 @@
|
||||
- sensor:
|
||||
# Template sensor for values of power import (active_power > 0)
|
||||
- name: power_import
|
||||
unique_id: '2385816278013'
|
||||
unit_of_measurement: 'W'
|
||||
state: >
|
||||
{% if (states('sensor.line_power_channel_a_power')|float + states('sensor.line_power_channel_b_power')|float + states('sensor.line_power_channel_c_power')|float) > 0 %}
|
||||
@@ -70,6 +74,7 @@
|
||||
|
||||
# Template sensor for values of power export (active_power < 0)
|
||||
- name: power_export
|
||||
unique_id: '9143524256421'
|
||||
unit_of_measurement: 'W'
|
||||
state: >
|
||||
{% if (states('sensor.line_power_channel_a_power')|float + states('sensor.line_power_channel_b_power')|float + states('sensor.line_power_channel_c_power')|float) < 0 %}
|
||||
@@ -85,6 +90,7 @@
|
||||
|
||||
# Template sensor for values of power consumption
|
||||
- name: power_consumption
|
||||
unique_id: '3502047649408'
|
||||
unit_of_measurement: 'W'
|
||||
state: >
|
||||
{% if (states('sensor.power_export')|float(0)) > 0 and (states('sensor.balkonkraftwerk_power')|float(0) - states('sensor.power_export')|float(0)) < 0 %}
|
||||
@@ -101,6 +107,7 @@
|
||||
|
||||
# Internet Speed template sensor
|
||||
- name: internet_speed_in
|
||||
unique_id: '9519483670666'
|
||||
state: >
|
||||
{{ (( states('sensor.wan_in_derivative') | float * 8 / 1000000 ) | round(2)) }}
|
||||
unit_of_measurement: 'Mbps'
|
||||
|
Reference in New Issue
Block a user