Explorar o código

fix: Separate Meal Plan into text config

Fredrik hai 7 meses
pai
achega
a0e4033b7b

+ 8 - 4
custom_components/tuya_local/devices/arlec_5l_petfeeder.yaml

@@ -15,8 +15,11 @@ entities:
         range:
           min: 1
           max: 12
-      - id: 1
-        type: string
+  - entity: text
+    name: Meal plan
+    category: config
+    optional: true
+    dps:
         # Meal plan is the following binary blob (1 byte per line), encoded
         # in base64 (can repeat up to 10 times):
         # - Date (1 bit per day Monday -> Sunday, padded with 0 on the MSB).
@@ -25,8 +28,9 @@ entities:
         # - Minute
         # - Feed portions
         # - Enable/Disabled
-        name: meal_plan
-        optional: true
+      - id: 1
+        type: base64
+        name: value
   - entity: sensor
     translation_key: status
     class: enum

+ 8 - 4
custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml

@@ -12,8 +12,11 @@ entities:
         type: boolean
         name: button
         optional: true
-      - id: 1
-        type: string
+  - entity: text
+    name: Meal plan
+    category: config
+    optional: true
+    dps:
         # 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).
@@ -22,8 +25,9 @@ entities:
         # - Minute
         # - Feed number
         # - Enable/Disabled
-        name: meal_plan
-        optional: true
+      - id: 1
+        type: base64
+        name: value
   - entity: sensor
     icon: "mdi:paw"
     name: Feed report

+ 7 - 3
custom_components/tuya_local/devices/catit_pixi_smart_feeder.yaml

@@ -17,10 +17,14 @@ entities:
         type: boolean
         name: button
         optional: true
+  - entity: text
+    name: Meal plan
+    category: config
+    optional: true
+    dps:
       - id: 1
-        name: meal_plan
-        type: string
-        optional: true
+        type: base64
+        name: value
   - entity: sensor
     icon: "mdi:paw"
     name: Feed report

+ 7 - 3
custom_components/tuya_local/devices/ipettie_w5_petfeeder.yaml

@@ -16,10 +16,14 @@ entities:
         range:
           min: 1
           max: 12
+  - entity: text
+    name: Meal plan
+    category: config
+    optional: true
+    dps:
       - id: 1
-        type: string
-        optional: true
-        name: meal_plan
+        type: base64
+        name: value
   - entity: sensor
     translation_key: status
     class: enum

+ 7 - 3
custom_components/tuya_local/devices/petlibro_PLAF103_feeder.yaml

@@ -25,10 +25,14 @@ entities:
             value: feeding
           - dps_val: feed_end
             value: feeding_complete
+  - entity: text
+    name: Meal plan
+    category: config
+    optional: true
+    dps:
       - id: 1
-        name: meal_plan
-        type: string
-        optional: true
+        type: base64
+        name: value
   - entity: number
     name: Manual feed
     icon: "mdi:food-drumstick"

+ 7 - 3
custom_components/tuya_local/devices/puppy_kitty_pet_feeder.yaml

@@ -11,10 +11,14 @@ entities:
       - id: 25
         type: boolean
         name: switch
+  - entity: text
+    name: Meal plan
+    category: config
+    optional: true
+    dps:
       - id: 1
-        name: meal_plan
-        type: string
-        optional: true
+        type: base64
+        name: value
   - entity: sensor
     icon: "mdi:paw"
     name: Feed report

+ 6 - 2
custom_components/tuya_local/devices/yp_petfeeeder.yaml

@@ -14,10 +14,14 @@ entities:
         range:
           min: 1
           max: 40
+  - entity: text
+    name: Meal plan
+    category: config
+    optional: true
+    dps:
       - id: 1
-        name: meal_plan
         type: base64
-        optional: true
+        name: value
   - entity: sensor
     translation_key: status
     class: enum