Просмотр исходного кода

Conow CBE2000 Pro: Fix SoC / Battery power state_class (#5681)

* Conow CBE2000 Pro: Set state_class of soc to measurement, otherwise it can not be selected on the energy dashboard of home assistant

* Conow CBE2000 Pro: Set state_class of battery array soc to measurement, otherwise it can not be selected on the energy dashboard of home assistant

* Conow CBE2000 Pro: Set state_class of battery power to measurement, otherwise it can not be selected on the energy dashboard of home assistant
Marc Schieferdecker 3 дней назад
Родитель
Сommit
aff66e6241

+ 3 - 0
custom_components/tuya_local/devices/conow_cbe2000pro_battery.yaml

@@ -188,6 +188,7 @@ entities:
         type: integer
         name: sensor
         unit: "%"
+        class: measurement
   - entity: sensor
     name: Load state
     translation_key: status
@@ -211,6 +212,7 @@ entities:
         type: integer
         name: sensor
         unit: W
+        class: measurement
   - entity: sensor
     name: Grid power
     class: power
@@ -257,6 +259,7 @@ entities:
         type: integer
         name: sensor
         unit: "%"
+        class: measurement
   - entity: sensor
     name: Expansion pack 1 SoC
     class: battery