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

Aubess 2-gang: add compatible double garage door controller

- Double garage door controller with no feedback, so unable to make a
  meaningful cover implementation for it. Seems compatible with Aubess
  2-gang (most likely with switch type set to button when used with
  garage door controller).
- From original report (this is one of the earlier devices), we only had
  "flip" as a value for dp 47.  flip/sync/button from Universal RX multi
  garage door receiver matches other switches and is likely matching the
  Aubess, so add it as a control. Other dps seem to follow general standard
  mappings for switches we have since discovered, so are likely also matching.
  Add dp 48 (switch_interlock) from the garage door controller as optional.
  It was not in the Aubess logs, but since it is raw format, we can't do
  much with it other than add as an attribute for monitoring, so not worth
  creating a new config for.

Issue #1857
Jason Rumney 1 год назад
Родитель
Сommit
b457ea5076
1 измененных файлов с 25 добавлено и 6 удалено
  1. 25 6
      custom_components/tuya_local/devices/aubess_2gang_switch.yaml

+ 25 - 6
custom_components/tuya_local/devices/aubess_2gang_switch.yaml

@@ -1,4 +1,7 @@
-name: Aubess 2-gang
+name: Double switch
+products:
+  - id: zexdotwigwiobadr
+    name: SciMagic RX Double Garage door receiver
 primary_entity:
   entity: switch
   name: Switch 1
@@ -8,16 +11,17 @@ primary_entity:
       type: boolean
     - id: 42
       type: string
-      name: unknown_42
+      name: random_schedule
     - id: 43
       type: string
-      name: unknown_43
+      name: repeating_schedule
     - id: 44
       type: string
-      name: unknown_44
-    - id: 47
+      name: inching
+    - id: 48
       type: string
-      name: unknown_47
+      optional: true
+      name: interlock
 secondary_entities:
   - entity: switch
     name: Switch 2
@@ -68,3 +72,18 @@ secondary_entities:
             value: "On"
           - dps_val: "off"
             value: "Off"
+  - entity: select
+    name: Switch type
+    icon: "mdi:toggle-switch"
+    category: config
+    dps:
+      - id: 47
+        type: string
+        name: option
+        mapping:
+          - dps_val: flip
+            value: Flip
+          - dps_val: sync
+            value: Synchronized
+          - dps_val: button
+            value: Button