Преглед изворни кода

snt957w_tde_temp: high temp. limit should be optional

This device was working fine with tuya-local as long as it was added to Tuya app. But once I used cloudcut it, suddenly tuya-local could not recognize it anymore (saying that device is unsupported).
Inspection of the yaml revealed that the device broadcasts matching dpids except for dpid 10. This could be because I removed the device from Tuya app and it reset to factory defaults.

TLDR: making this optional makes the device detectable again.
Piotr Szulc пре 1 година
родитељ
комит
c13cf1605f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      custom_components/tuya_local/devices/snt957w_tde_temp.yaml

+ 1 - 0
custom_components/tuya_local/devices/snt957w_tde_temp.yaml

@@ -42,6 +42,7 @@ secondary_entities:
           max: 1200
         mapping:
           - scale: 10
+        optional: true
   - entity: number
     name: Low temperature limit
     category: config