Parcourir la source

Casdon TD Pro 2 add local recipe select

Jianyun il y a 1 an
Parent
commit
38eb614894

+ 70 - 0
custom_components/tuya_local/devices/casdon_td_pro_2.yaml

@@ -206,3 +206,73 @@ secondary_entities:
       - id: 103
       - id: 103
         name: switch
         name: switch
         type: boolean
         type: boolean
+  - entity: select
+    translation_key: casdon_oven_local_recipe
+    category: config
+    dps:
+      - id: 106
+        name: option
+        type: string
+        mapping:
+          - dps_val: "0"
+            value: "none"
+          - dps_val: "1"
+            value: "steamed_egg_with_okra"
+          - dps_val: "2"
+            value: "steamed_sea_bass"
+          - dps_val: "3"
+            value: "steamed_prawns"
+          - dps_val: "4"
+            value: "handmade_steamed_bread"
+          - dps_val: "5"
+            value: "fan_steamed_baby_vegetables"
+          - dps_val: "6"
+            value: "braised_pork"
+          - dps_val: "7"
+            value: "snow_fungus_and_bird_s_nest"
+          - dps_val: "8"
+            value: "crab_pot"
+          - dps_val: "9"
+            value: "potato_ribs"
+          - dps_val: "10"
+            value: "coconut_chicken_soup"
+          - dps_val: "11"
+            value: "snack_platter"
+          - dps_val: "12"
+            value: "chicken_skewers"
+          - dps_val: "13"
+            value: "roasted_pork_knuckle"
+          - dps_val: "14"
+            value: "dried_lemon"
+          - dps_val: "15"
+            value: "pork_shop"
+          - dps_val: "16"
+            value: "crispy_hairtail"
+          - dps_val: "17"
+            value: "spicy_grilled_fish"
+          - dps_val: "18"
+            value: "roasted_sweet_potatoes"
+          - dps_val: "19"
+            value: "roasted_chicken_wings"
+          - dps_val: "20"
+            value: "cumin_lamb_chops"
+          - dps_val: "21"
+            value: "honey_grilled_chicken"
+          - dps_val: "22"
+            value: "garlic_eggplant"
+          - dps_val: "23"
+            value: "portuguese_egg_tart"
+          - dps_val: "24"
+            value: "creme_brulee"
+          - dps_val: "25"
+            value: "cocoa_chips"
+          - dps_val: "26"
+            value: "butter_cookies"
+          - dps_val: "27"
+            value: "chiffon_cake"
+          - dps_val: "28"
+            value: "puff_pastry"
+          - dps_val: "29"
+            value: "red_bean_bread"
+          - dps_val: "30"
+            value: "milk_toast"

+ 36 - 0
custom_components/tuya_local/translations/en.json

@@ -355,6 +355,42 @@
                     "celsius": "Celsius",
                     "celsius": "Celsius",
                     "fahrenheit": "Fahrenheit"
                     "fahrenheit": "Fahrenheit"
                 }
                 }
+            },
+            "casdon_oven_local_recipe": {
+                "name": "Local Recipe",
+                "state": {
+                    "none": "None",
+                    "steamed_egg_with_okra": "Steamed Egg with Okra",
+                    "steamed_sea_bass": "Steamed Sea Bass",
+                    "steamed_prawns": "Steamed prawns",
+                    "handmade_steamed_bread": "Handmade Steamed Bread",
+                    "fan_steamed_baby_vegetables": "Fan Steamed Baby Vegetables",
+                    "braised_pork": "Braised Pork",
+                    "snow_fungus_and_bird_s_nest": "Snow fungus and bird s nest",
+                    "crab_pot": "Crab Pot",
+                    "potato_ribs": "Potato Ribs",
+                    "coconut_chicken_soup": "Coconut Chicken Soup",
+                    "snack_platter": "Snack Platter",
+                    "chicken_skewers": "Chicken Skewers",
+                    "roasted_pork_knuckle": "Roasted Pork Knuckle",
+                    "dried_lemon": "Dried Lemon",
+                    "pork_shop": "Pork Shop",
+                    "crispy_hairtail": "Crispy Hairtail",
+                    "spicy_grilled_fish": "Spicy Grilled Fish",
+                    "roasted_sweet_potatoes": "Roasted Sweet Potatoes",
+                    "roasted_chicken_wings": "Roasted Chicken Wings",
+                    "cumin_lamb_chops": "Cumin Lamb Chops",
+                    "honey_grilled_chicken": "Honey Grilled Chicken",
+                    "garlic_eggplant": "Garlic Eggplant",
+                    "portuguese_egg_tart": "Portuguese Egg Tart",
+                    "creme_brulee": "Creme Brulee",
+                    "cocoa_chips": "Cocoa Chips",
+                    "butter_cookies": "Butter Cookies",
+                    "chiffon_cake": "Chiffon Cake",
+                    "puff_pastry": "Puff pastry",
+                    "red_bean_bread": "Red Bean Bread",
+                    "milk_toast": "Milk Toast"
+                }
             }
             }
         },
         },
         "sensor": {
         "sensor": {

+ 36 - 0
custom_components/tuya_local/translations/zh-Hans.json

@@ -355,6 +355,42 @@
                     "celsius": "摄氏度",
                     "celsius": "摄氏度",
                     "fahrenheit": "华氏度"
                     "fahrenheit": "华氏度"
                 }
                 }
+            },
+            "casdon_oven_local_recipe": {
+                "name": "内置菜谱",
+                "state": {
+                    "none": "无",
+                    "steamed_egg_with_okra": "秋葵蒸蛋",
+                    "steamed_sea_bass": "清蒸鲈鱼",
+                    "steamed_prawns": "清蒸大虾",
+                    "handmade_steamed_bread": "手工馒头",
+                    "fan_steamed_baby_vegetables": "粉丝蒸娃娃菜",
+                    "braised_pork": "红烧肉",
+                    "snow_fungus_and_bird_s_nest": "雪耳燕窝",
+                    "crab_pot": "蟹肉煲",
+                    "potato_ribs": "土豆排骨",
+                    "coconut_chicken_soup": "椰子鸡汤",
+                    "snack_platter": "小食拼盘",
+                    "chicken_skewers": "鸡肉串",
+                    "roasted_pork_knuckle": "烤猪肘",
+                    "dried_lemon": "柠檬干",
+                    "pork_shop": "猪肉铺",
+                    "crispy_hairtail": "香酥带鱼",
+                    "spicy_grilled_fish": "麻辣烤鱼",
+                    "roasted_sweet_potatoes": "烤红薯",
+                    "roasted_chicken_wings": "香烤鸡翅",
+                    "cumin_lamb_chops": "孜然羊排",
+                    "honey_grilled_chicken": "蜜汁烤鸡",
+                    "garlic_eggplant": "蒜蓉茄子",
+                    "portuguese_egg_tart": "葡式蛋挞",
+                    "creme_brulee": "焦糖布丁",
+                    "cocoa_chips": "可可脆片",
+                    "butter_cookies": "黄油曲奇",
+                    "chiffon_cake": "戚风蛋糕",
+                    "puff_pastry": "酥皮泡芙",
+                    "red_bean_bread": "红豆面包",
+                    "milk_toast": "牛奶吐司"
+                }
             }
             }
         },
         },
         "sensor": {
         "sensor": {