Browse Source

Add support for Qnect 3 outlet + USB power strips.

These are basically the same as existing tellur and woox models, but
with shifted dps for timers.  The aforementioned are actually
identical and should be merged into a single config, but this will
require a migration and deprecation warning as entity names are
slightly different.

Issue #376
Jason Rumney 3 years ago
parent
commit
495b28bbfc

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -173,3 +173,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [YuriiMaiboroda](https://github.com/YuriiMaiboroda) for contributing Ukrainian translations.
 - [YuriiMaiboroda](https://github.com/YuriiMaiboroda) for contributing Ukrainian translations.
 - [samios88](https://github.com/samios88) for assistance supporting Nedis pet feeders.
 - [samios88](https://github.com/samios88) for assistance supporting Nedis pet feeders.
 - [janchrillesen](https://github.com/janchrillesen) for assistance supporting Nedis air quality monitors.
 - [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.

+ 7 - 6
DEVICES.md

@@ -173,21 +173,22 @@
 - Arlec PB88UHA 4 way powerstrip with child lock
 - Arlec PB88UHA 4 way powerstrip with child lock
 - Aubess 1-gang switch with energy monitoring
 - Aubess 1-gang switch with energy monitoring
 - Aubess 2-gang switch
 - Aubess 2-gang switch
-- DIGOO DG-SP202 dual smartplug with energy monitoring and timers.
-- DIGOO DG-SP01 USB smartplug with night light.
-- Dual power monitoring smartplug (Geex).
-- ES01 3 outlet + USB powerstrip with individual timers.
+- DIGOO DG-SP202 dual smartplug with energy monitoring and timers
+- DIGOO DG-SP01 USB smartplug with night light
+- Dual power monitoring smartplug (Geex)
+- ES01 3 outlet + USB powerstrip with individual timers
 - Grid Connect double outlet wall socket
 - Grid Connect double outlet wall socket
 - Grid Connect double outlet with Energy Monitoring, Master and Individual switches and Child Lock
 - Grid Connect double outlet with Energy Monitoring, Master and Individual switches and Child Lock
 - Grid Connect USB charger with power socket
 - Grid Connect USB charger with power socket
 - Logicom Strippy 4 way power strip with USB
 - Logicom Strippy 4 way power strip with USB
 - Mirabella Genio smartplug with USB
 - Mirabella Genio smartplug with USB
 - MoesHouse smartplug with RGBW nightlight
 - MoesHouse smartplug with RGBW nightlight
+- Qnect QN-WPO3 3 outlet + USB powerstrip with individual timers
 - Single switch with backlight (unbranded)
 - Single switch with backlight (unbranded)
 - Somgam single wall switch
 - Somgam single wall switch
 - Somgam double wall switch
 - Somgam double wall switch
-- Tellur 3 outlet + USB power strip with individual timers.
-- Woox R4028/DIGOO DG-PS01 3 outlet + USB powerstrip with individual timers.
+- Tellur 3 outlet + USB power strip with individual timers
+- Woox R4028/DIGOO DG-PS01 3 outlet + USB powerstrip with individual timers
 
 
 Other brands may work with the above configurations, or the below are
 Other brands may work with the above configurations, or the below are
 generic configurations known to work with multiple brands of device.
 generic configurations known to work with multiple brands of device.

+ 94 - 0
custom_components/tuya_local/devices/qnect_usb_powerstrip.yaml

@@ -0,0 +1,94 @@
+name: 3 outlet + USB powerstrip
+product:
+  - id: ivd9p236skiaqdrk
+    name: Qnect QN-WP03
+primary_entity:
+  entity: switch
+  name: Outlet 1
+  class: outlet
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+secondary_entities:
+  - entity: switch
+    name: Outlet 2
+    class: outlet
+    dps:
+      - id: 2
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Outlet 3
+    class: outlet
+    dps:
+      - id: 3
+        type: boolean
+        name: switch
+  - entity: switch
+    name: USB switch
+    class: switch
+    dps:
+      - id: 7
+        type: boolean
+        name: switch
+  - entity: number
+    category: config
+    name: Timer 1
+    icon: "mdi:timer"
+    dps:
+      - id: 9
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    category: config
+    name: Timer 2
+    icon: "mdi:timer"
+    dps:
+      - id: 10
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    category: config
+    name: Timer 3
+    icon: "mdi:timer"
+    dps:
+      - id: 11
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    category: config
+    name: USB timer
+    icon: "mdi:timer"
+    dps:
+      - id: 15
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60

+ 1 - 1
custom_components/tuya_local/devices/woox_r4028_powerstrip.yaml

@@ -1,7 +1,7 @@
 name: 3 outlet + USB powerstrip
 name: 3 outlet + USB powerstrip
 primary_entity:
 primary_entity:
   entity: switch
   entity: switch
-  name: outlet 1
+  name: Outlet 1
   class: outlet
   class: outlet
   dps:
   dps:
     - id: 1
     - id: 1