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

Add support for Speaka TV mount

Issue #2568
Jason Rumney 1 год назад
Родитель
Сommit
8f72c308a3
3 измененных файлов с 124 добавлено и 1 удалено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 122 0
      custom_components/tuya_local/devices/speaka_sptvcm510_tvmount.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -464,7 +464,7 @@ Further device support has been made with the assistance of users. Please consid
 - [wholly1971](https://github.com/wholly1971) for assisting with support for Madimack Eco pool heatpumps.
 - [rbrtwillis](https://github.com/rbrtwillis) for assisting with support for Inkbird IHC-200 humidity controllers.
 - [vojeroen](https://github.com/vojeroen) for contributing support for CleanAir 605B humidifiers.
-- [fantnhu](https://github.com/fantnhu) for assisting with support for Tesla Smart aroma diffusers, PNI water feeders and door peephole cameras.
+- [fantnhu](https://github.com/fantnhu) for assisting with support for Tesla Smart aroma diffuser, PNI water feeder, door peephole camera and Speaka TV mount.
 - [sudo-nitz](https://github.com/sudo-nitz) for assisting with support for Yagusmart 3PN 63A energy meter.
 - [jedubois](https://github.com/jedubois) for assisting with support for Taurus Agadir oil column heaters.
 - [debdalerichard](https://github.com/debdalerichard) for assisting with support for Weekett kettles.

+ 1 - 0
DEVICES.md

@@ -896,6 +896,7 @@ port and password.
 - SD123 HPR01 human presence radar
 - SNT957W-TDE temperature sensor
 - SNT957W-DE CBU temperature and humidity sensor
+- Speaka SP-TVCM-510 TV mount
 - Sunbeam dual heated mattress pad
 - SWS-001 smart weather station
 - TH08 temperature and humidity sensor

+ 122 - 0
custom_components/tuya_local/devices/speaka_sptvcm510_tvmount.yaml

@@ -0,0 +1,122 @@
+name: TV mount
+products:
+  - id: etspz6new8zb1vdy
+    name: Speaka SP-TVCM-510
+primary_entity:
+  entity: button
+  name: Stop
+  icon: "mdi:stop"
+  dps:
+    - id: 101
+      type: string
+      name: button
+      mapping:
+        - dps_val: cancel
+          value: true
+secondary_entities:
+  - entity: button
+    name: Up
+    icon: "mdi:arrow-up-bold"
+    dps:
+      - id: 101
+        type: string
+        name: button
+        mapping:
+          - dps_val: move_up
+            value: true
+  - entity: button
+    name: Down
+    icon: "mdi:arrow-down-bold"
+    dps:
+      - id: 101
+        type: string
+        name: button
+        mapping:
+          - dps_val: move_down
+            value: true
+  - entity: button
+    name: Default
+    icon: "mdi:bullseye-arrow"
+    dps:
+      - id: 101
+        type: string
+        name: button
+        mapping:
+          - dps_val: move_default
+            value: true
+      - id: 102
+        type: string
+        optional: true
+        name: model_no
+  - entity: button
+    name: Left
+    icon: "mdi:arrow-left-bold"
+    category: config
+    dps:
+      - id: 101
+        type: string
+        name: button
+        mapping:
+          - dps_val: move_left
+            value: true
+  - entity: button
+    name: Right
+    icon: "mdi:arrow-right-bold"
+    category: config
+    dps:
+      - id: 101
+        type: string
+        name: button
+        mapping:
+          - dps_val: move_right
+            value: true
+  - entity: select
+    name: Preset
+    icon: "mdi:bullseye-arrow"
+    dps:
+      - id: 103
+        type: string
+        name: option
+        mapping:
+          - dps_val: recall1
+            value: Preset 1
+          - dps_val: recall2
+            value: Preset 2
+          - dps_val: recall3
+            value: Preset 3
+          - dps_val: cancel
+            value: Manual
+          - value: Manual
+            hidden: true
+  - entity: select
+    name: Save preset
+    icon: "mdi:pencil-circle-outline"
+    dps:
+      - id: 103
+        type: string
+        name: option
+        mapping:
+          - dps_val: mem1
+            value: Preset 1
+          - dps_val: mem2
+            value: Preset 2
+          - dps_val: mem3
+            value: Preset 3
+          - dps_val: cancel
+            value: None
+          - value: None
+            hidden: true
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 105
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 105
+        type: bitfield
+        name: fault_code