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

Revert "@make-all sugestions"

Revert commit that undoes previous improvements to the config.

This reverts commit 4dd8f40a747cd0d8f922d3299e35e86117a27eb6.
Jason Rumney 1 год назад
Родитель
Сommit
165370efd3
1 измененных файлов с 16 добавлено и 12 удалено
  1. 16 12
      custom_components/tuya_local/devices/petsnowy_snowplus_catlitter.yaml

+ 16 - 12
custom_components/tuya_local/devices/petsnowy_snowplus_catlitter.yaml

@@ -55,10 +55,9 @@ entities:
       - id: 106
         type: string
         optional: true
-        name: sensor
+        name: sleep_time
   - entity: light
-    name: Backlight
-    icon: "mdi:lightbulb"
+    translation_key: backlight
     category: config
     dps:
       - id: 16
@@ -72,13 +71,19 @@ entities:
         type: boolean
         name: button
   - entity: event
-    name: Notifications
-    class: enum
+    name: Notification
     category: diagnostic
     icon: "mdi:eye-circle-outline"
     dps:
       - id: 21
+        type: bitfield
         name: event
+        mapping:
+          - dps_val: 0
+            value: null
+          - value: notify
+      - id: 21
+        name: message
         type: bitfield
         mapping:
           - dps_val: 1
@@ -175,13 +180,8 @@ entities:
         name: sensor
         type: integer
         unit: day
-        range:
-          min: 0
-          max: 60
   - entity: lock
     translation_key: child_lock
-    name: Child lock
-    icon: "mdi:lock-question"
     category: config
     dps:
       - id: 104
@@ -193,13 +193,17 @@ entities:
           - dps_val: true
             value: false
   - entity: switch
-    name: Automatic deodorization
+    name: Auto deodorize
     icon: "mdi:scent"
     category: config
     dps:
       - id: 107
         type: boolean
         name: switch
+      - id: 108
+        type: string
+        optional: true
+        name: schedule
   - entity: button
     name: Change cat litter
     icon: "mdi:delete-empty"
@@ -208,7 +212,7 @@ entities:
         type: boolean
         name: button
   - entity: button
-    name: Calibrate ball
+    name: Ball reset
     icon: "mdi:scale-balance"
     dps:
       - id: 112