Pārlūkot izejas kodu

Add support for RSE TY-WFH v3.01 gate controller

Issue #2173
Jason Rumney 1 gadu atpakaļ
vecāks
revīzija
1a91ee5cb1

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -646,3 +646,4 @@ Further device support has been made with the assistance of users. Please consid
 - [drcjb](https://github.com/drcjb) for assisting with support for Princess DC pedestal fan.
 - [azdinet](https://github.com/azdinet) for assisting with support for TS106 alarm system.
 - [deguchi-m](https://github.com/deguchi-m) for assisting with support for Dual CT clamp bidirectional energy meters.
+- [sciux2](https://github.com/sciux2) for assisting with support for RSE TY-WFH gate controller.

+ 1 - 0
DEVICES.md

@@ -753,6 +753,7 @@ port and password.
 - PH-W218 water quality monitor
 - PlantsIO Ivy smart planter
 - PV28-CW 8 in 1 air quality monitor
+- RSE TY-WFH v3.01 gate controller 
 - RTCZ-03 human presence sensor
 - RainPoint TTV103FRF water timer
 - SD123 HPR01 human presence radar

+ 84 - 0
custom_components/tuya_local/devices/rse_tywfh301_gate.yaml

@@ -0,0 +1,84 @@
+name: Gate controller
+primary_entity:
+  entity: button
+  name: Open
+  icon: "mdi:gate-open"
+  dps:
+    - id: 101
+      type: boolean
+      name: button
+      optional: true
+    - id: 107
+      type: boolean
+      name: locked
+      optional: true
+      mapping:
+        - dps_val: null
+          value: false
+secondary_entities:
+  - entity: button
+    name: Close
+    icon: "mdi:gate"
+    dps:
+      - id: 102
+        type: boolean
+        name: button
+        optional: true
+      - id: 106
+        type: boolean
+        name: locked
+        optional: true
+        mapping:
+          - dps_val: null
+            value: false
+  - entity: button
+    name: Stop
+    icon: "mdi:stop"
+    dps:
+      - id: 103
+        type: boolean
+        name: button
+        optional: true
+  - entity: button
+    name: Lock
+    icon: "mdi:lock"
+    dps:
+      - id: 104
+        type: boolean
+        name: button
+        optional: true
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 109
+        type: boolean
+        name: sensor
+        optional: true
+        mapping:
+          - dps_val: null
+            value: false
+  - entity: switch
+    name: Fast opening
+    icon: "mdi:fast-forward"
+    category: config
+    dps:
+      - id: 110
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Gate status
+    class: garage_door
+    dps:
+      - id: 111
+        type: boolean
+        name: sensor
+  - entity: sensor
+    class: signal_strength
+    category: diagnostic
+    dps:
+      - id: 112
+        type: integer
+        name: sensor
+        unit: dBm
+        class: measurement