Răsfoiți Sursa

Add support for Gosund P1 powerstrips.

Issue #389
Jason Rumney 3 ani în urmă
părinte
comite
5a41345de6

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -177,3 +177,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [ShayGus](https://github.com/ShayGus) for contributing support for Avatto curtain and light switch.
 - [garry0garry](https://github.com/garry0garry) for assistance supporting TOMPD circuit breakers.
 - [romicaiarca](https://github.com/romicaiarca) for contributing Aleco D12 Home dehumidifier support.
+- [spitfire](https://github.com/spitfire) for assistance supporting Gosund P1 powerstrips.

+ 1 - 0
DEVICES.md

@@ -179,6 +179,7 @@
 - DIGOO DG-SP01 USB smartplug with night light
 - Dual power monitoring smartplug (Geex)
 - ES01 3 outlet + USB powerstrip with individual timers
+- Gosund P1 3 outlet + USB powerstrip with power monitoring
 - Grid Connect double outlet wall socket
 - Grid Connect double outlet with Energy Monitoring, Master and Individual switches and Child Lock
 - Grid Connect USB charger with power socket

+ 69 - 0
custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml

@@ -0,0 +1,69 @@
+name: USB + 3 outlet power monitor powerstrip
+product:
+  - id: tsbguim4trl6fa7g
+    name: Gosund P1
+primary_entity:
+  entity: switch
+  class: outlet
+  name: Outlet 1
+  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: sensor
+    name: Current
+    class: current
+    category: diagnostic
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: mA
+        class: measurement
+  - entity: sensor
+    name: Power
+    class: power
+    category: diagnostic
+    dps:
+      - id: 19
+        type: integer
+        name: sensor
+        unit: W
+        class: measurement
+  - entity: sensor
+    name: Voltage
+    class: voltage
+    category: diagnostic
+    dps:
+      - id: 20
+        type: integer
+        name: sensor
+        unit: V
+        class: measurement
+
+
+
+ 
+