Procházet zdrojové kódy

Add support for LoraTap curtain switch.

Issue #446
Jason Rumney před 3 roky
rodič
revize
3fc8c9d6f3

+ 2 - 1
ACKNOWLEDGEMENTS.md

@@ -170,7 +170,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [mypixies](https://github.com/mypixies) for assisting with support for Moes dimmer switch.
 - [BeardedTinker](https://github.com/BeardedTinker) for assisting with support for SG600MD smart inverter.
 - [LeandroIssa](https://github.com/LeandroIssa) for contributing Brazilian Portuguese translations.
-- [YuriiMaiboroda](https://github.com/YuriiMaiboroda) for contributing Ukrainian translations and assistance supporting Elivco smartplugs.
+- [YuriiMaiboroda](https://github.com/YuriiMaiboroda) for contributing Ukrainian translations, docfixes, assistance supporting Elivco smartplugs and helping support others.
 - [samios88](https://github.com/samios88) for assistance supporting Nedis pet feeders.
 - [janchrillesen](https://github.com/janchrillesen) for assistance supporting Nedis air quality monitors.
 - [Celezak](https://github.com/Celezak) for assistance supporting Qnect 3 outlet + USB powerstrips.
@@ -194,3 +194,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [saotthon](https://github.com/saotthon) for assisting with support for BVF CP1 heaters.
 - [MarciPain](https://github.com/MarciPain) for contributing support for PGST temperature and humidity sensors and Orion OWH-PTC2000 heaters.
 - [fischrobi](https://github.com/fischrobi) for assisting with support for Blitzwolf BW-SH2 humidifiers.
+- [elninosi](https://github.com/elninosi) for assisting with support for LoraTap curtain switches.

+ 1 - 0
DEVICES.md

@@ -252,6 +252,7 @@ generic configurations known to work with multiple brands of device.
 - Dongguan garage door
 - Kogan garage door with tilt sensor
 - Loonas smart curtain
+- LoraTap SC500W-V1 curtain switch
 - M027 curtain module (sold under several brands, including zemismart, meterk and others)
 - QS-WIFI-C01(BK) curtain module
 - Wistar roller blinds controller

+ 36 - 0
custom_components/tuya_local/devices/loratap_curtain_switch.yaml

@@ -0,0 +1,36 @@
+name: LoraTap curtain switch
+product:
+  - id: tuh2eatk4hsq336s
+    name: SC500W-V1
+primary_entity:
+  entity: button
+  name: Open
+  icon: "mdi:curtains"
+  dps:
+    - id: 1
+      type: string
+      name: button
+      mapping:
+        - dps_val: "1"
+          value: true
+secondary_entities:
+  - entity: button
+    name: Close
+    icon: "mdi:curtains-closed"
+    dps:
+      - id: 1
+        type: string
+        name: button
+        mapping:
+          - dps_val: "2"
+            value: true
+  - entity: button
+    name: Stop
+    icon: "mdi:stop-circle-outline"
+    dps:
+      - id: 1
+        type: string
+        name: button
+        mapping:
+          - dps_val: "3"
+            value: true