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

fix (geyserwise_water_heater): hide unavailable sensor

Only non-PV variants support Collector temperature measurements,
so hide this entity when it is unavailable.
Jason Rumney 2 дней назад
Родитель
Сommit
c83ab49a9e
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      custom_components/tuya_local/devices/geyserwise_water_heater.yaml

+ 9 - 0
custom_components/tuya_local/devices/geyserwise_water_heater.yaml

@@ -188,6 +188,7 @@ entities:
     name: Collector temperature
     class: temperature
     category: diagnostic
+    hidden: unavailable
     dps:
       - id: 108
         type: integer
@@ -195,3 +196,11 @@ entities:
         optional: true
         unit: C
         class: measurement
+      - id: 108
+        type: integer
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true