Преглед изворни кода

feat(vacuums): expose command_trans dp as a text entity

Useful information on how this can be used has been found out
on Discussion #5226, so expose for other vacuums to allow
users to confirm if their vacuum works the same, or similarly
enough to add info to the thread.
Jason Rumney пре 1 месец
родитељ
комит
dcbce12f72

+ 10 - 4
custom_components/tuya_local/devices/abir_x8_vacuum.yaml

@@ -105,10 +105,6 @@ entities:
         type: string
         name: path_data
         optional: true
-      - id: 15
-        type: string
-        name: command_trans
-        optional: true
       - id: 16
         type: string
         name: request
@@ -290,3 +286,13 @@ entities:
       - id: 105
         type: boolean
         name: switch
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/ilife_a12_pro_vacuum.yaml

@@ -127,10 +127,6 @@ entities:
         type: string
         optional: true
         name: path_data
-      - id: 15
-        type: string
-        optional: true
-        name: command_trans
       - id: 28
         type: bitfield
         name: error
@@ -459,3 +455,13 @@ entities:
             value: water2_fault
           - dps_val: 268435456
             value: explore_fault
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/ilife_a30_pro_vacuum.yaml

@@ -145,10 +145,6 @@ entities:
         type: string
         optional: true
         name: path_data
-      - id: 15
-        type: string
-        optional: true
-        name: command_trans
       - id: 28
         type: bitfield
         name: error
@@ -516,3 +512,13 @@ entities:
             value: water2_fault
           - dps_val: 268435456
             value: explore_fault
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/ilife_v20_vacuum.yaml

@@ -146,10 +146,6 @@ entities:
         type: string
         optional: true
         name: path_data
-      - id: 15
-        type: string
-        optional: true
-        name: command_trans
       - id: 28
         type: bitfield
         name: error
@@ -539,3 +535,13 @@ entities:
             value: kit_lidar
           - dps_val: 536870912
             value: kit_water_pump
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/lefant_n3_vacuum.yaml

@@ -138,10 +138,6 @@ entities:
         name: path_data
         type: string
         optional: true
-      - id: 15
-        name: command_trans
-        type: string
-        optional: true
       - id: 16
         name: request
         type: string
@@ -352,3 +348,13 @@ entities:
       - id: 28
         type: bitfield
         name: fault_code
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/liectroux_xr500_t3_vacuum.yaml

@@ -105,10 +105,6 @@ entities:
         type: string
         name: path_data
         optional: true
-      - id: 15
-        type: string
-        name: command_trans
-        optional: true
       - id: 16
         type: string
         name: request
@@ -353,3 +349,13 @@ entities:
             value: charging_failure
           - dps_val: 67108864
             value: picked_up
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml

@@ -123,10 +123,6 @@ entities:
         type: string
         optional: true
         name: path_data
-      - id: 15
-        type: string
-        optional: true
-        name: command_trans
       - id: 28
         type: bitfield
         name: error
@@ -470,3 +466,13 @@ entities:
       - id: 28
         type: bitfield
         name: fault_code
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/medion_x10sw_vacuum.yaml

@@ -121,10 +121,6 @@ entities:
         type: string
         optional: true
         name: path_data
-      - id: 15
-        type: string
-        optional: true
-        name: command_trans
       - id: 32
         type: string
         optional: true
@@ -492,3 +488,13 @@ entities:
         type: string
         name: message_id
         optional: true
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/neatsvor_x600_vacuum.yaml

@@ -112,10 +112,6 @@ entities:
         name: path_data
         type: string
         optional: true
-      - id: 15
-        name: command_trans
-        type: base64
-        optional: true
       - id: 16
         name: request
         type: string
@@ -341,3 +337,13 @@ entities:
       - id: 28
         type: bitfield
         name: fault_code
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml

@@ -127,10 +127,6 @@ entities:
         name: path_data
         type: string
         optional: true
-      - id: 15
-        name: command_trans
-        type: base64
-        optional: true
       - id: 16
         name: request
         type: string
@@ -585,3 +581,13 @@ entities:
           - dps_val: 23011
             value: Dust collection error due to insufficient pressure
           - value: unknown
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true

+ 10 - 4
custom_components/tuya_local/devices/tesvor_s6_vacuum.yaml

@@ -132,10 +132,6 @@ entities:
         name: path_data
         type: string
         optional: true
-      - id: 15
-        name: command_trans
-        type: string
-        optional: true
       - id: 16
         name: request
         type: string
@@ -391,3 +387,13 @@ entities:
       - id: 28
         type: bitfield
         name: fault_code
+  - entity: text
+    name: Command
+    category: config
+    icon: "mdi:console-line"
+    hidden: true
+    dps:
+      - id: 15
+        type: base64
+        name: value
+        optional: true