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

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

Stephen Quinn 2 лет назад
Родитель
Сommit
04ff51eca9
1 измененных файлов с 7 добавлено и 9 удалено
  1. 7 9
      custom_components/tuya_local/devices/ultenic_t10_vacuum.yaml

+ 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
       optional: true
 
+    - id: 111
+      name: Unknown Value (DP 111)
+      optional: true
+      type: bitfield
+
 secondary_entities:
   - entity: sensor
     class: battery
@@ -101,14 +106,7 @@ secondary_entities:
         unit: "%"
         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
@@ -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 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 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 103 always 1
 # DP 104 always 1