Ver Fonte

fix(pawspik_microchip_petfeeder): changes to select entities

Cover speed - labelled as door_speed with values fast, medium, slow in Tuya doc
  actual values are reversed and are an exit delay not a speed that the door moves
  Renamed to exit delay and actual time values used ("1s" put as immediate to avoid adding more
  translations, and 1s is practically immediate)

Feeding method - labelled as eat_model with values open, closed, learning in Tuya doc
  interpretted to mean "on demand" (door will open whenever), "on schedule" (door closed unless
  scheduled), "learning" based on other info which I cannot remember now (maybe online info
  about the device features)
  actual meanings are "normally open, close when unrecognised tag approaches", "normally closed,
  open when recognised tag approaches", and "always open". It seems like the intention
  is to use the last one when first setting up, to record the microchips that use it,
  so learning was probably ok, but the others were misunderstood.
  Renamed to "Door mode", since it is the door behaviour, not the feeding that is affected.

Older selects are deprecated to allow other users time to switch

Issue #4444
Jason Rumney há 5 horas atrás
pai
commit
ec004a58ab

+ 33 - 0
custom_components/tuya_local/devices/pawspik_microchip_petfeeder.yaml

@@ -104,6 +104,7 @@ entities:
         name: messages
         name: messages
   - entity: select
   - entity: select
     name: Feeding method
     name: Feeding method
+    deprecated: select.door_mode  # 2026-11-07
     icon: "mdi:food-drumstick"
     icon: "mdi:food-drumstick"
     category: config
     category: config
     dps:
     dps:
@@ -117,8 +118,24 @@ entities:
             value: "On schedule"
             value: "On schedule"
           - dps_val: "3"
           - dps_val: "3"
             value: Learning
             value: Learning
+  - entity: select
+    name: Door mode
+    icon: "mdi:door-open"
+    category: config
+    dps:
+      - id: 111
+        type: string
+        name: option
+        mapping:
+          - dps_val: "1"
+            value: Close to unpaired
+          - dps_val: "2"
+            value: Open to paired
+          - dps_val: "3"
+            value: Always open
   - entity: select
   - entity: select
     name: Cover speed
     name: Cover speed
+    deprecated: select.exit_delay  # 2026-11-07
     icon: "mdi:door"
     icon: "mdi:door"
     category: config
     category: config
     dps:
     dps:
@@ -132,6 +149,22 @@ entities:
             value: Medium
             value: Medium
           - dps_val: "3"
           - dps_val: "3"
             value: Slow
             value: Slow
+  - entity: select
+    name: Exit delay
+    translation_key: timer
+    icon: "mdi:exit-run"
+    category: config
+    dps:
+      - id: 113
+        type: string
+        name: option
+        mapping:
+          - dps_val: "1"
+            value: "20s"
+          - dps_val: "2"
+            value: "5s"
+          - dps_val: "3"
+            value: immediate
 
 
   - entity: text
   - entity: text
     translation_key: meal_plan
     translation_key: meal_plan