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

Add recall button support to Vivo FD55/Lumi LP66E-46M TV mount (#5363)

Description:
This adds two button entities (Position 1, Position 2) mapped to DPS 103, alongside the existing Up/Down/Stop buttons on DPS 101.
Why
The current config covers movement (up/move_down/cancel) but not the recall function, even though the physical device supports moving to saved positions via the app/remote. DPS 103 is a string enum (recall1, recall2, recall3) that triggers the motor to move to a previously saved position — the position itself is stored on the device hardware, not in Home Assistant.
Device tested

Sold as: Lumi LP66E-46M (also LP66E-46ML, larger variant)
product_id: ejr6szbimwutiaqp — confirmed identical to the existing Vivo FD55 entry via Tuya IoT Platform device details, so this appears to be a shared OEM board sold under multiple brand names
Confirmed working: Up, Down, Stop, and all twoRecall buttons, locally via tuya-local

Notes

No changes to existing entities/DPS mappings — this is additive only, so it shouldn't affect anyone currently using this config.
Happy to adjust naming/icons if there's a preferred convention for recall/preset-style buttons elsewhere in the repo.
WalkingFrag 2 недель назад
Родитель
Сommit
d772346910
1 измененных файлов с 25 добавлено и 0 удалено
  1. 25 0
      custom_components/tuya_local/devices/vivo_fd55_tvmount.yaml

+ 25 - 0
custom_components/tuya_local/devices/vivo_fd55_tvmount.yaml

@@ -3,6 +3,7 @@ products:
   - id: ejr6szbimwutiaqp
     manufacturer: Vivo
     model: FD55
+
 entities:
   - entity: button
     name: Stop
@@ -14,6 +15,7 @@ entities:
         mapping:
           - dps_val: cancel
             value: true
+
   - entity: button
     name: Up
     icon: "mdi:arrow-up-bold"
@@ -24,6 +26,7 @@ entities:
         mapping:
           - dps_val: move_up
             value: true
+
   - entity: button
     name: Down
     icon: "mdi:arrow-down-bold"
@@ -34,3 +37,25 @@ entities:
         mapping:
           - dps_val: move_down
             value: true
+
+  - entity: button
+    name: Position 1
+    icon: "mdi:numeric-1-box"
+    dps:
+      - id: 103
+        type: string
+        name: button
+        mapping:
+          - dps_val: recall1
+            value: true
+
+  - entity: button
+    name: Position 2
+    icon: "mdi:numeric-2-box"
+    dps:
+      - id: 103
+        type: string
+        name: button
+        mapping:
+          - dps_val: recall2
+            value: true