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

fix (smartplug_usb): disable energy sensor by default and make optional

Other sensors are optional, but energy sensor (which is the least reliable
in general) was not. This should be hidden by default, as even when present
the add_ele (dp 17) sensors on Tuya smartplugs are not generally usable as
energy sensors.
Jason Rumney 1 день назад
Родитель
Сommit
c42be5fe62
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      custom_components/tuya_local/devices/smartplug_usb.yaml

+ 2 - 0
custom_components/tuya_local/devices/smartplug_usb.yaml

@@ -103,9 +103,11 @@ entities:
   - entity: sensor
   - entity: sensor
     class: energy
     class: energy
     category: diagnostic
     category: diagnostic
+    hidden: true
     dps:
     dps:
       - id: 17
       - id: 17
         type: integer
         type: integer
+        optional: true
         name: sensor
         name: sensor
         unit: kWh
         unit: kWh
         class: total_increasing
         class: total_increasing