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

TOMPD 63LW: change "energy reset" to a boolean.

string (with pushed value "empty") was based on iot.tuya.com info, with no
log info about this dp to corroborate it.

Now there is a report about an almost identical device which does have log
info for this dp, the only mismatch with this config being that the energy
reset is a boolean.  After confirming back with the TOMPD 63LW user, energy
reset did not seem to be working, so likely it is actually boolean there also.

Issue #577, #388
Jason Rumney 2 лет назад
Родитель
Сommit
188e4bed62
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      custom_components/tuya_local/devices/tompd_63lw_breaker.yaml

+ 1 - 4
custom_components/tuya_local/devices/tompd_63lw_breaker.yaml

@@ -45,12 +45,9 @@ secondary_entities:
     category: config
     dps:
       - id: 12
-        type: string
+        type: boolean
         name: button
         optional: true
-        mapping:
-          - dps_val: empty
-            value: true
   - entity: sensor
     name: Balance energy
     category: diagnostic