Browse Source

Neatsvor X600: move some attributes into separate entities

Per review comments:
 - made Map reset and Do not disturb into entities, so they can be used.
 - swapped top level and products names, as the branding should go under products.
 - removed hidden marker from fan_speed attribute.
Jason Rumney 2 years ago
parent
commit
7339bf78f7
1 changed files with 24 additions and 13 deletions
  1. 24 13
      custom_components/tuya_local/devices/neatsvor_x600_vacuum.yaml

+ 24 - 13
custom_components/tuya_local/devices/neatsvor_x600_vacuum.yaml

@@ -1,7 +1,7 @@
-name: Neatsvor X600
+name: Robot vacuum
 products:
   - id: lb3jihr6cvumqomi
-    name: Robot vacuum
+    name: Neatsvor X600
 primary_entity:
   entity: vacuum
   dps:
@@ -85,7 +85,6 @@ primary_entity:
           value: Strong
         - dps_val: max
           value: Max
-          hidden: true
     - id: 11
       name: locate
       type: boolean
@@ -105,11 +104,6 @@ primary_entity:
           value: right
         - dps_val: stop
           value: stop
-    - id: 13
-      name: map_reset
-      type: boolean
-      optional: true
-      hidden: true
     - id: 14
       name: path_data
       type: string
@@ -122,10 +116,6 @@ primary_entity:
       name: request
       type: string
       optional: true
-    - id: 25
-      name: do_not_disturb
-      type: boolean
-      optional: true
     - id: 28
       name: error
       type: bitfield
@@ -320,4 +310,25 @@ secondary_entities:
       - id: 38
         name: button
         type: boolean
-        optional: true
+        optional: true
+  - entity: button
+    name: Map reset
+    category: config
+    icon: "mdi:map"
+    dps:
+      - id: 13
+        name: button
+        type: boolean
+        optional: true
+  - entity: switch
+    name: Do not disturb
+    category: config
+    icon: "mdi:sleep"
+    dps:
+      - id: 25
+        name: switch
+        type: boolean
+        optional: true
+        mapping:
+          - dps_val: null
+            value: false