Browse Source

Add support for Avatto curtain switch

Issue #292
Jason Rumney 3 years ago
parent
commit
e832c6052f
3 changed files with 25 additions and 0 deletions
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 23 0
      custom_components/tuya_local/devices/avatto_curtain_switch.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -144,3 +144,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [billxinli](https://github.com/billxinli) for contributing support for Honeywell TP dehumidifiers.
 - [isarib01](https://github.com/isarib01) for assistance supporting Deta motion sensor lights.
 - [iDontWantAUsername](https://github.com/iDontWantAUsername) for assistance supporting Grid Connect USB charger with power socket.
+- [engusz](https://github.com/engusz) for assistance supporting Avatto curtain switches.

+ 1 - 0
DEVICES.md

@@ -194,6 +194,7 @@ Other brands may work with the above configurations
 
 - Simple garage door
 - Simple blind controller
+- Avatto curtain switch
 - Avatto roller blinds controller
 - Dongguan garage door
 - Kogan garage door with tilt sensor

+ 23 - 0
custom_components/tuya_local/devices/avatto_curtain_switch.yaml

@@ -0,0 +1,23 @@
+name: Avatto curtain switch
+primary_entity:
+  entity: cover
+  class: curtain
+  dps:
+    - id: 1
+      name: control
+      type: string
+      mapping:
+        - dps_val: open
+          value: open
+        - dps_val: close
+          value: close
+        - dps_val: stop
+          value: stop
+secondary_entities:
+  - entity: light
+    category: config
+    name: Backlight
+    dps:
+      - id: 101
+        type: boolean
+        name: switch