Explorar o código

Update T10 to move unknown DP 111 to attribute of primary entity

Stephen Quinn %!s(int64=2) %!d(string=hai) anos
pai
achega
04ff51eca9

+ 7 - 9
custom_components/tuya_local/devices/ultenic_t10_vacuum.yaml

@@ -91,6 +91,11 @@ primary_entity:
       #have no idea what the fields are for this bit field.  The Robot upside down reports as -2601
       #have no idea what the fields are for this bit field.  The Robot upside down reports as -2601
       optional: true
       optional: true
 
 
+    - id: 111
+      name: Unknown Value (DP 111)
+      optional: true
+      type: bitfield
+
 secondary_entities:
 secondary_entities:
   - entity: sensor
   - entity: sensor
     class: battery
     class: battery
@@ -101,14 +106,7 @@ secondary_entities:
         unit: "%"
         unit: "%"
         class: measurement
         class: measurement
 
 
-  - entity: sensor
-    name: Unknown Value always 6132
-    category: diagnostic
-    optional: true
-    dps:
-      - id: 111
-        type: bitfield
-        name: sensor
+
 
 
 
 
 #The following can be retrieved by using the Tuya Uncover app at https://github.com/blakadder/tuya-uncover but are never seen by tuya local
 #The following can be retrieved by using the Tuya Uncover app at https://github.com/blakadder/tuya-uncover but are never seen by tuya local
@@ -116,7 +114,7 @@ secondary_entities:
 # DP 108 is BASE 64 encoded UUID - reports the same value as is called UUID in the Ultenic App under Device Information
 # DP 108 is BASE 64 encoded UUID - reports the same value as is called UUID in the Ultenic App under Device Information
 # DP 107 is BASE 64 encoded JSON that looks like cleaning statistics - {"data":{"counts":40,"mopArea":0,"sweepArea":504,"time":27208},"infoType":21009}
 # DP 107 is BASE 64 encoded JSON that looks like cleaning statistics - {"data":{"counts":40,"mopArea":0,"sweepArea":504,"time":27208},"infoType":21009}
 # DP 106 is BASE 64 encoded identifier LXT10033006392B
 # DP 106 is BASE 64 encoded identifier LXT10033006392B
-# DP 102 is BASE 64 encode  JSON that looks like an event stream, different data everytime you look - {"dInfo":{"ts":1694541823927,"userId":"XXXXXXXXXXXX"},"data":{"battery":27208,"filter":27208,"mainBrush":27208,"sensors":27208,"sideBrush":27208},"infoType":21015,"message":"ok"} 
+# DP 102 is BASE 64 encode  JSON that looks like an event stream, different data everytime you look - {"dInfo":{"ts":1694541823927,"userId":"XXXXXXXXXXXX"},"data":{"battery":27208,"filter":27208,"mainBrush":27208,"sensors":27208,"sideBrush":27208},"infoType":21015,"message":"ok"}
 # DP 101 always ""
 # DP 101 always ""
 # DP 103 always 1
 # DP 103 always 1
 # DP 104 always 1
 # DP 104 always 1