Przeglądaj źródła

HCT611: mark missing dps from log as optional, add unknown dps

Original report #638 gave iot.tuya.com docs with dps 1, 7, 8, 10, 11, 12, 13
Later screenshots of iot.tuya.com dropped 12 (work_state) but the rest were
still present.

Actual logs from #771 show 1, 7, 8, 13, 14, 110.
14 and 110 are unknown, as not listed in the portal (though 14 may be a
switch for the smart weather function, as per johgee device).
Assume 10, 11, 12 might show up under some circumstances, and leave them as
optional in the config.
Jason Rumney 2 lat temu
rodzic
commit
e3ae7f4e3f

+ 10 - 0
custom_components/tuya_local/devices/ble_hct611_watertimer.yaml

@@ -11,6 +11,14 @@ primary_entity:
     - id: 12
       type: string
       name: state
+      optional: true
+    - id: 14
+      type: boolean
+      # Smart weather switch as per similar johgee device?
+      name: unknown_14
+    - id: 110
+      type: boolean
+      name: unknown_110
 secondary_entities:
   - entity: sensor
     name: Battery
@@ -34,6 +42,7 @@ secondary_entities:
       - id: 10
         type: string
         name: option
+        optional: true
         mapping:
           - dps_val: cancel
             value: "Off"
@@ -52,6 +61,7 @@ secondary_entities:
         type: integer
         name: value
         unit: min
+        optional: true
         range:
           min: 0
           max: 86400