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

Update catit_pixi_6meals_feeder.yaml

- Set proper mapping for voice configuration
- Fix entity type/sensor name for battery and voice configuration
Audric Schiltknecht 2 лет назад
Родитель
Сommit
6efc81fd1b
1 измененных файлов с 10 добавлено и 5 удалено
  1. 10 5
      custom_components/tuya_local/devices/catit_pixi_6meals_feeder.yaml

+ 10 - 5
custom_components/tuya_local/devices/catit_pixi_6meals_feeder.yaml

@@ -16,7 +16,7 @@ secondary_entities:
     name: Meal plan
     name: Meal plan
     dps:
     dps:
     - id: 1
     - id: 1
-      name: Meal Plan
+      name: value
       # Meal plan is the following binary blob (1 byte per line), encoded in base64:
       # Meal plan is the following binary blob (1 byte per line), encoded in base64:
       # - Date (1 bit per day Monday -> Sunday, padded with 0 on the MSB). Ex: Monday, Wednesday, Sunday -> 0b01010001
       # - Date (1 bit per day Monday -> Sunday, padded with 0 on the MSB). Ex: Monday, Wednesday, Sunday -> 0b01010001
       # - Hour
       # - Hour
@@ -34,12 +34,12 @@ secondary_entities:
         name: sensor
         name: sensor
         # Encountered values so far:
         # Encountered values so far:
         # 11: Feeding OK
         # 11: Feeding OK
-        # 21: Rotating plate is stuck
+        # 10/21: Rotating plate is stuck
         type: integer
         type: integer
         readonly: True
         readonly: True
         optional: True
         optional: True
     type: integer
     type: integer
-  - entity: number
+  - entity: sensor
     name: Battery
     name: Battery
     category: diagnostic
     category: diagnostic
     dps:
     dps:
@@ -48,16 +48,21 @@ secondary_entities:
         type: integer
         type: integer
         unit: "%"
         unit: "%"
         readonly: True
         readonly: True
-  - entity: number
+  - entity: switch
     name: Voice configuration
     name: Voice configuration
     category: config
     category: config
     dps:
     dps:
       - id: 18
       - id: 18
-        name: voice
+        name: switch
         type: integer
         type: integer
         range:
         range:
           min: 0
           min: 0
           max: 1
           max: 1
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: 1
+            value: true
   - entity: button
   - entity: button
     class: restart
     class: restart
     name: Factory reset
     name: Factory reset