blakadder 2 лет назад
Родитель
Сommit
dece4b100a
1 измененных файлов с 48 добавлено и 28 удалено
  1. 48 28
      custom_components/tuya_local/devices/ultenic_air_fryer.yaml

+ 48 - 28
custom_components/tuya_local/devices/ultenic_air_fryer.yaml

@@ -13,9 +13,6 @@ primary_entity:
     - id: 12
     - id: 12
       type: bitfield
       type: bitfield
       name: error_code
       name: error_code
-    - id: 104
-      type: string
-      name: cooking_report
 secondary_entities:
 secondary_entities:
   - entity: switch
   - entity: switch
     name: Cooking
     name: Cooking
@@ -25,17 +22,19 @@ secondary_entities:
         type: boolean
         type: boolean
         name: switch
         name: switch
   - entity: select
   - entity: select
-    name: Mode
-    category: config
+    name: Cooking Mode
     dps:
     dps:
       - id: 3
       - id: 3
         type: string
         type: string
         name: option
         name: option
         mapping:
         mapping:
-          - dps_val: chicken
+          - dps_val: fries
+            value: French fries
+            icon: "mdi:french-fries"
+          - dps_val: wings
             value: Chicken wings
             value: Chicken wings
             icon: "mdi:food-drumstick"
             icon: "mdi:food-drumstick"
-          - dps_val: steaks
+          - dps_val: steak
             value: Steak
             value: Steak
             icon: "mdi:food-steak"
             icon: "mdi:food-steak"
           - dps_val: shrimp
           - dps_val: shrimp
@@ -44,8 +43,8 @@ secondary_entities:
           - dps_val: fish
           - dps_val: fish
             value: Fish
             value: Fish
             icon: "mdi:fish"
             icon: "mdi:fish"
-          - dps_val: onion
-            value: Onion
+          - dps_val: onionrings
+            value: Onion Rings
             icon: "mdi:bullseye"
             icon: "mdi:bullseye"
           - dps_val: pizza
           - dps_val: pizza
             value: Pizza
             value: Pizza
@@ -59,7 +58,7 @@ secondary_entities:
           - dps_val: toast
           - dps_val: toast
             value: Toast
             value: Toast
             icon: "mdi:bread-slice"
             icon: "mdi:bread-slice"
-          - dps_val: vegetables
+          - dps_val: vegetable
             value: Vegetables
             value: Vegetables
             icon: "mdi:carrot"
             icon: "mdi:carrot"
           - dps_val: custom
           - dps_val: custom
@@ -71,7 +70,7 @@ secondary_entities:
           - dps_val: default
           - dps_val: default
             value: Default
             value: Default
             icon: "mdi:toaster-oven"
             icon: "mdi:toaster-oven"
-          - dps_val: keepwarm
+          - dps_val: warm
             value: Keep warm
             value: Keep warm
             icon: "mdi:heat-wave"
             icon: "mdi:heat-wave"
           - dps_val: preheat
           - dps_val: preheat
@@ -86,25 +85,25 @@ secondary_entities:
         name: sensor
         name: sensor
         mapping:
         mapping:
           - dps_val: "0"
           - dps_val: "0"
-            value: Standby
+            value: standby
             icon: "mdi:power-standby"
             icon: "mdi:power-standby"
           - dps_val: "1"
           - dps_val: "1"
-            value: Preheating
+            value: preheating
             icon: "mdi:fire"
             icon: "mdi:fire"
           - dps_val: "2"
           - dps_val: "2"
-            value: Cooking
+            value: cooking
             icon: "mdi:toaster-oven"
             icon: "mdi:toaster-oven"
           - dps_val: "3"
           - dps_val: "3"
-            value: Done
+            value: done
             icon: "mdi:check"
             icon: "mdi:check"
           - dps_val: "4"
           - dps_val: "4"
-            value: Keeping warm
+            value: keeping warm
             icon: "mdi:heat-wave"
             icon: "mdi:heat-wave"
           - dps_val: "5"
           - dps_val: "5"
-            value: "Off"
+            value: "off"
             icon: "mdi:power-off"
             icon: "mdi:power-off"
           - dps_val: "8"
           - dps_val: "8"
-            value: Scheduled
+            value: scheduled
             icon: "mdi:calendar-clock"
             icon: "mdi:calendar-clock"
   - entity: number
   - entity: number
     name: Cooking temperature
     name: Cooking temperature
@@ -122,19 +121,18 @@ secondary_entities:
         type: string
         type: string
         name: unit
         name: unit
         mapping:
         mapping:
-          - dps_val: "0"
+          - dps_val: c
             value: C
             value: C
-          - dps_val: "1"
+          - dps_val: f
             value: F
             value: F
   - entity: sensor
   - entity: sensor
-    name: Temperature
+    name: Internal Temperature
     class: temperature
     class: temperature
     dps:
     dps:
       - id: 7
       - id: 7
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: C
         unit: C
-        class: measurement
   - entity: number
   - entity: number
     name: Cooking time
     name: Cooking time
     icon: "mdi:timer"
     icon: "mdi:timer"
@@ -172,6 +170,11 @@ secondary_entities:
       - id: 13
       - id: 13
         type: boolean
         type: boolean
         name: switch
         name: switch
+        mapping:
+          - dps_val: true
+            value: false
+          - dps_val: false
+            value: true
   - entity: select
   - entity: select
     name: Temperature unit
     name: Temperature unit
     icon: "mdi:temperature-celsius"
     icon: "mdi:temperature-celsius"
@@ -181,30 +184,47 @@ secondary_entities:
         type: string
         type: string
         name: option
         name: option
         mapping:
         mapping:
-          - dps_val: "0"
+          - dps_val: c
             value: Celsius
             value: Celsius
-          - dps_val: "1"
+          - dps_val: f
             value: Fahrenheit
             value: Fahrenheit
   - entity: switch
   - entity: switch
     name: Preheat
     name: Preheat
     icon: "mdi:fire"
     icon: "mdi:fire"
-    category: config
     dps:
     dps:
       - id: 15
       - id: 15
         type: boolean
         type: boolean
         name: switch
         name: switch
   - entity: switch
   - entity: switch
     name: Keep warm
     name: Keep warm
-    category: config
     icon: "mdi:heat-wave"
     icon: "mdi:heat-wave"
     dps:
     dps:
       - id: 101
       - id: 101
         type: boolean
         type: boolean
         name: switch
         name: switch
+  - entity: binary_sensor
+    name: Tray Status
+    class: opening
+    icon: "mdi:tray"
+    dps:
+      - id: 103
+        name: sensor
+        type: boolean
+  - entity: binary_sensor
+    name: Shake
+    icon: "mdi:car-brake-alert"
+    dps:
+      - id: 104
+        name: sensor
+        type: string
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: 1
+            value: true
   - entity: sensor
   - entity: sensor
-    name: Current mode remaining time
+    name: Current stage remaining time
     class: duration
     class: duration
-    category: diagnostic
     dps:
     dps:
       - id: 105
       - id: 105
         type: integer
         type: integer