Cześć
Od dłuższego czasu nie aktualizowałem HA. Dzisiaj zrobiłem aktualizację ale okazuje się że dashboard Energia nie wyświetla danych.
Jak powinienem zmienić konfigurację aby działało poprawnie. Proszę o pomoc, dawno nie zaglądałem do HA i pewnie coś się pozmieniało międzyczasie w zapisie w configuration.yaml a ja nie jestem na bieżąco.
Mam takie błędy w logach
2025-03-17 11:53:23.369 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_calkowita (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.369 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_import (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.370 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_export (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.370 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_l1 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.374 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_l2 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.375 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_l3 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.384 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_calkowita (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.385 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_import (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.385 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_export (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.386 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_l1 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.386 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_l2 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.391 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_l3 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.395 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_2_oficyna_p_export (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.396 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_2_oficyna_p_import (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.396 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.pv_dom_produkcja_dzienna (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.401 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.pv_dom_aktualna_produkowana_moc (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.403 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.pv_dom_produkowana_moc (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:23.580 WARNING (MainThread) [homeassistant.helpers.script] Error in 'choose[1]' evaluation: In 'template' condition: UndefinedError: 'None' has no attribute 'state'
2025-03-17 11:53:24.197 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'value_json' is undefined when rendering '{{ value_json }}'
2025-03-17 11:53:24.245 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.pv_dom_aktualna_produkowana_moc (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.687 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_calkowita (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.690 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_l1 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.693 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_l2 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.694 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_l3 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.709 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_import (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.711 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_1_parter_p_export (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.719 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_2_oficyna_p_import (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.720 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_2_oficyna_p_export (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.725 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_calkowita (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.727 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_l1 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.728 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_l2 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.729 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_l3 (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.782 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_import (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:25.787 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.licznik_gora_p_export (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'Wh', 'kWh', 'GJ', 'MWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-03-17 11:53:2
Tak mam to zapisane w pliku configuration.yaml
# liczniki RS485
# Licznik Parter
- name: "Licznik 1 Parter Import Energii"
state_topic: "Lancontrol/Licznik_1_parter/em_Imp_kWh"
unit_of_measurement: "kWh"
value_template: "{{ value_json }}"
device_class: energy
state_class: total
- name: "Licznik 1 Parter Export Energii"
state_topic: "Lancontrol/Licznik_1_parter/em_Exp_kWh"
unit_of_measurement: "kWh"
value_template: "{{ value_json }}"
device_class: energy
state_class: total
- name: "Licznik 1 Parter P calkowita"
state_topic: "Lancontrol/Licznik_1_parter/em_P"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik 1 Parter P Import"
state_topic: "Lancontrol/Licznik_1_parter/em_P_imp"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik 1 Parter P Export"
state_topic: "Lancontrol/Licznik_1_parter/em_P_exp"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik 1 Parter P L1"
state_topic: "Lancontrol/Licznik_1_parter/em_P_L1"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik 1 Parter P L2"
state_topic: "Lancontrol/Licznik_1_parter/em_P_L2"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik 1 Parter P L3"
state_topic: "Lancontrol/Licznik_1_parter/em_P_L3"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik 1 Parter V L1"
state_topic: "Lancontrol/Licznik_1_parter/em_V_L1"
unit_of_measurement: "V"
value_template: "{{ value_json }}"
device_class: voltage
state_class: measurement
- name: "Licznik 1 Parter V L2"
state_topic: "Lancontrol/Licznik_1_parter/em_V_L2"
unit_of_measurement: "V"
value_template: "{{ value_json }}"
device_class: voltage
state_class: measurement
- name: "Licznik 1 Parter V L3"
state_topic: "Lancontrol/Licznik_1_parter/em_V_L3"
unit_of_measurement: "V"
value_template: "{{ value_json }}"
device_class: voltage
state_class: measurement
- name: "Licznik 1 Parter I L1"
state_topic: "Lancontrol/Licznik_1_parter/em_I_L1"
unit_of_measurement: "A"
value_template: "{{ value_json }}"
device_class: current
state_class: measurement
- name: "Licznik 1 Parter I L2"
state_topic: "Lancontrol/Licznik_1_parter/em_I_L2"
unit_of_measurement: "A"
value_template: "{{ value_json }}"
device_class: current
state_class: measurement
- name: "Licznik 1 Parter I L3"
state_topic: "Lancontrol/Licznik_1_parter/em_I_L3"
unit_of_measurement: "A"
value_template: "{{ value_json }}"
device_class: current
state_class: measurement
# licznik góra
- name: "Licznik Góra Import Energii"
state_topic: "Lancontrol/Licznik_4_gora/em_Imp_kWh"
unit_of_measurement: "kWh"
value_template: "{{ value_json }}"
device_class: energy
state_class: total
- name: "Licznik Góra Export Energii"
state_topic: "Lancontrol/Licznik_4_gora/em_Exp_kWh"
unit_of_measurement: "kWh"
value_template: "{{ value_json }}"
device_class: energy
state_class: total
- name: "Licznik Góra P calkowita"
state_topic: "Lancontrol/Licznik_4_gora/em_P"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik Góra P Import"
state_topic: "Lancontrol/Licznik_4_gora/em_P_imp"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik Góra P Export"
state_topic: "Lancontrol/Licznik_4_gora/em_P_exp"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik Góra P L1"
state_topic: "Lancontrol/Licznik_4_gora/em_P_L1"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik Góra P L2"
state_topic: "Lancontrol/Licznik_4_gora/em_P_L2"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik Góra P L3"
state_topic: "Lancontrol/Licznik_4_gora/em_P_L3"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik Góra V L1"
state_topic: "Lancontrol/Licznik_4_gora/em_V_L1"
unit_of_measurement: "V"
value_template: "{{ value_json }}"
device_class: voltage
state_class: measurement
- name: "Licznik Góra V L2"
state_topic: "Lancontrol/Licznik_4_gora/em_V_L2"
unit_of_measurement: "V"
value_template: "{{ value_json }}"
device_class: voltage
state_class: measurement
- name: "Licznik Góra V L3"
state_topic: "Lancontrol/Licznik_4_gora/em_V_L3"
unit_of_measurement: "V"
value_template: "{{ value_json }}"
device_class: voltage
state_class: measurement
- name: "Licznik Góra I L1"
state_topic: "Lancontrol/Licznik_4_gora/em_I_L1"
unit_of_measurement: "A"
value_template: "{{ value_json }}"
device_class: current
state_class: measurement
- name: "Licznik Góra I L2"
state_topic: "Lancontrol/Licznik_4_gora/em_I_L2"
unit_of_measurement: "A"
value_template: "{{ value_json }}"
device_class: current
state_class: measurement
- name: "Licznik Góra I L3"
state_topic: "Lancontrol/Licznik_4_gora/em_I_L3"
unit_of_measurement: "A"
value_template: "{{ value_json }}"
device_class: current
state_class: measurement
- name: "Licznik 2 Oficyna Import Energii"
state_topic: "Lancontrol/Licznik_2_oficyna/em_Imp_kWh"
unit_of_measurement: "kWh"
value_template: "{{ value_json }}"
device_class: energy
state_class: total
- name: "Licznik 2 Oficyna Export Energii"
state_topic: "Lancontrol/Licznik_2_oficyna/em_Exp_kWh"
unit_of_measurement: "kWh"
value_template: "{{ value_json }}"
device_class: energy
state_class: total
- name: "Licznik 2 Oficyna suma kWh"
state_topic: "Lancontrol/Licznik_2_oficyna/em_Tot_kWh"
unit_of_measurement: "kWh"
value_template: "{{ value_json }}"
device_class: energy
state_class: total
- name: "Licznik 2 Oficyna P Export"
state_topic: "Lancontrol/Licznik_2_oficyna/em_P_exp"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement
- name: "Licznik 2 Oficyna P Import"
state_topic: "Lancontrol/Licznik_2_oficyna/em_P_imp"
unit_of_measurement: "W"
value_template: "{{ value_json }}"
device_class: energy
state_class: measurement