Sfoglia il codice sorgente

Add unused dps (timers, unknown) into the configs.

This allows all current devices to be detected with 100% matches.
I think it may have also eliminated one or two false matches, though all false matches were already lower quality than the true match.
Jason Rumney 4 anni fa
parent
commit
3c866d3f8e

+ 12 - 0
custom_components/tuya_local/devices/gardenpac_heatpump.yaml

@@ -42,6 +42,18 @@ primary_entity:
       range:
         min: 18
         max: 45
+    - id: 107
+      type: integer
+      name: unknown_107
+    - id: 108
+      type: integer
+      name: unknown_108
+    - id: 115
+      type: integer
+      name: unknown_115
+    - id: 116
+      type: integer
+      name: unknown_116
     - id: 117
       name: preset_mode
       type: boolean

+ 7 - 0
custom_components/tuya_local/devices/goldair_dehumidifier.yaml

@@ -55,6 +55,13 @@ primary_entity:
           value: "OK"
       name: error
       readonly: true
+    - id: 12
+      type: string
+      name: unknown_12
+    - id: 101
+      type: boolean
+      name: unknown_101
+      readonly: true
     - id: 103
       type: integer
       name: current_temperature

+ 3 - 0
custom_components/tuya_local/devices/goldair_fan.yaml

@@ -57,6 +57,9 @@ primary_entity:
         - dps_val: true
           value: "horizontal"
       name: swing_mode
+    - id: 11
+      type: string
+      name: unknown_11
 secondary_entities:
   - entity: light
     name: Panel Light

+ 3 - 0
custom_components/tuya_local/devices/goldair_geco_heater.yaml

@@ -23,6 +23,9 @@ primary_entity:
       type: integer
       readonly: true
       name: current_temperature
+    - id: 5
+      type: integer
+      name: timer
     - id: 6
       type: bitfield
       mapping:

+ 3 - 0
custom_components/tuya_local/devices/goldair_gpcv_heater.yaml

@@ -23,6 +23,9 @@ primary_entity:
       type: integer
       readonly: true
       name: current_temperature
+    - id: 5
+      type: integer
+      name: timer
     - id: 6
       type: bitfield
       mapping:

+ 6 - 0
custom_components/tuya_local/devices/goldair_gpph_heater.yaml

@@ -64,6 +64,12 @@ primary_entity:
         - dps_val: "4"
         - dps_val: "5"
       name: power_level
+    - id: 102
+      type: integer
+      name: timer
+    - id: 103
+      type: boolean
+      name: timer_mode
     - id: 105
       type: string
       mapping: