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

Add support for Teckin SS42 outdoor double smartplug

Issue #414
Jason Rumney 3 лет назад
Родитель
Сommit
e8e85bc472
3 измененных файлов с 49 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 47 0
      custom_components/tuya_local/devices/teckin_ss42_sockets.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -191,3 +191,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [abroeders](https://github.com/abroeders) for contributing support for a 13kW variant of W'eau pool heatpump.
 - [DrFate09](https://github.com/DrFate09) for assisting with support for Atomi ceramic heaters.
 - [Saentist](https://github.com/Saentist) for contributing Bulgarian translations.
+- [drudgebg](https://github.com/drudgebg) for contributing support for Teckin SS42 outdoor double smartplug.

+ 1 - 0
DEVICES.md

@@ -197,6 +197,7 @@
 - Single switch with backlight (unbranded)
 - Somgam single wall switch
 - Somgam double wall switch
+- Teckin SS42 outdoor double smartplug
 - Tellur 3 outlet + USB power strip with individual timers
 - Woox R4028/DIGOO DG-PS01 3 outlet + USB powerstrip with individual timers
 

+ 47 - 0
custom_components/tuya_local/devices/teckin_ss42_sockets.yaml

@@ -0,0 +1,47 @@
+name: Outdoor double plug
+primary_entity:
+  entity: switch
+  class: outlet
+  name: Outlet 1
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+secondary_entities:
+  - entity: switch
+    class: outlet
+    name: Outlet 2
+    dps:
+      - id: 2
+        type: boolean
+        name: switch
+  - entity: number
+    category: config
+    name: Timer 2
+    icon: "mdi:timer"
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    category: config
+    name: Timer 1
+    icon: "mdi:timer"
+    dps:
+      - id: 102
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60