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

feat(devices): add configuration for Globmatic gate opener (#5453)

* feat(devices): add configuration for Globmatic gate opener

* feat: remove extra button and sensor entities from globmatic gate opener configuration

* feat: remove device model ID

* feat: remove entity names

* feat: remove misleading state mapping

* Refactor globmatic_gate_opener.yaml for position mapping

Updated the gate opener configuration to reflect new naming and mapping for position and current position.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Dinis 1 день назад
Родитель
Сommit
ad40ab02c0
1 измененных файлов с 35 добавлено и 0 удалено
  1. 35 0
      custom_components/tuya_local/devices/globmatic_gate_opener.yaml

+ 35 - 0
custom_components/tuya_local/devices/globmatic_gate_opener.yaml

@@ -0,0 +1,35 @@
+name: Gate opener
+
+products:
+  - id: 4iispvj6a6vsavxl
+    manufacturer: Globmatic
+    model: Automatic sliding gate opener - Castor
+
+entities:
+  - entity: cover
+    class: gate
+    dps:
+      - id: 101
+        name: position
+        type: integer
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - invert: true
+      - id: 101
+        name: current_position
+        type: integer
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - invert: true
+
+  - entity: sensor
+    translation_key: status
+    dps:
+      - id: 10
+        name: sensor
+        type: string
+        optional: true