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

HCT611: add newly discovered dps.

14 = Smart weather switch as
110 = Switch record - not sure if this is read/write or read-only, so just
left as an extra attribute for now.
101-108: Programs, seem to be base64 encoded in cloud API, assume same
if they ever show in local API.

- add null mapping for select, to see if it can get it working.
Jason Rumney 2 лет назад
Родитель
Сommit
12b102fc1c
1 измененных файлов с 46 добавлено и 6 удалено
  1. 46 6
      custom_components/tuya_local/devices/ble_hct611_watertimer.yaml

+ 46 - 6
custom_components/tuya_local/devices/ble_hct611_watertimer.yaml

@@ -4,6 +4,7 @@ products:
     name: HCT-611
 primary_entity:
   entity: switch
+  icon: "mdi:pipe-valve"
   dps:
     - id: 1
       type: boolean
@@ -12,13 +13,41 @@ primary_entity:
       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
+      name: switch_record
+    - id: 101
+      type: base64
+      name: program_1
+      optional: true
+    - id: 102
+      type: base64
+      name: program_2
+      optional: true
+    - id: 103
+      type: base64
+      name: program_3
+      optional: true
+    - id: 104
+      type: base64
+      name: program_4
+      optional: true
+    - id: 105
+      type: base64
+      name: program_5
+      optional: true
+    - id: 106
+      type: base64
+      name: program_6
+      optional: true
+    - id: 107
+      type: base64
+      name: program_7
+      optional: true
+    - id: 108
+      type: base64
+      name: program_8
+      optional: true
 secondary_entities:
   - entity: sensor
     name: Battery
@@ -52,6 +81,9 @@ secondary_entities:
             value: "2 days"
           - dps_val: "72h"
             value: "3 days"
+          - dps_val: null
+            value: "not set"
+            hidden: true
   - entity: number
     name: Timer
     category: config
@@ -91,4 +123,12 @@ secondary_entities:
             value: snowy
           - dps_val: fog
             value: fog
-
+  - entity: switch
+    name: Smart weather switch
+    category: config
+    icon: "mdi:weather-partly-cloudy"
+    dps:
+      - id: 14
+        type: boolean
+        name: switch
+