Jelajahi Sumber

Update petree_cube_litter_box.yaml (#4103)

* Update petree_cube_litter_box.yaml

Add name to LED, Add 'is Cleaning', Add Dump Sand button

* Update petree_cube_litter_box.yaml

fix lint

* Update petree_cube_litter_box.yaml

implement comments by make-all

* feat (petree_cube_litter_box): Revert addition of "LED" name

PR #4103

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
PurpleFries 2 bulan lalu
induk
melakukan
f00e9b9104

+ 20 - 1
custom_components/tuya_local/devices/petree_cube_litter_box.yaml

@@ -19,7 +19,7 @@ entities:
         range:
           min: 1
           max: 60
-  - entity: switch
+  - entity: light
     translation_key: indicator
     category: config
     dps:
@@ -143,3 +143,22 @@ entities:
       - id: 126
         type: boolean
         name: button
+  - entity: button
+    name: Dump Sand
+    category: config
+    dps:
+      - id: 118
+        type: boolean
+        name: button
+  - entity: binary_sensor
+    name: Cleaning
+    class: running
+    category: diagnostic
+    dps:
+      - id: 124
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true