Kaynağa Gözat

Add support for EARU DPN circuit breaker

Issue #1739

Support is partial, other dps are listed in the info in the issue, but
without ranges, so only the contributed support can be included at
this time
Jason Rumney 1 yıl önce
ebeveyn
işleme
4af5e775c4

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -689,3 +689,4 @@ Further device support has been made with the assistance of users. Please consid
 - [IATkachnko](https://github.com/IATkachenko) for contributing support for Ballu Aura air conditioner.
 - [DennisGeisse](https://github.com/DennisGeisse) for contributing support for Reiga ceiling fan without light.
 - [death-droid](https://github.com/death-droid) for contributing improvements to the water_heater platform.
+- [79chrisone](https://github.com/79chrisone) for contributing basic support for EARU DPN circuit breaker.

+ 1 - 0
DEVICES.md

@@ -392,6 +392,7 @@
 - DTS238-7 3 phase smart meter
 - Dual CT clamp bidirectional meter
 - EARU SW RCB breaker
+- EARU SW DPN breaker
 - eMylo EAI-90 smart meter
 - ERZ04C smart meter
 - Gaqqee KWS-302-WF energy meter

+ 55 - 0
custom_components/tuya_local/devices/earu_dpn_circuitbreaker.yaml

@@ -0,0 +1,55 @@
+name: Circuit breaker
+products:
+  - id: azpywu5zfg5wyzpn
+    name: EARU SW MCB
+primary_entity:
+  entity: switch
+  icon: "mdi:fuse"
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+secondary_entities:
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 41
+        name: lock
+        type: boolean
+  - entity: sensor
+    category: diagnostic
+    class: voltage
+    dps:
+      - id: 20
+        name: sensor
+        type: integer
+        unit: V
+        class: measurement
+        force: true
+        mapping:
+          - scale: 10
+  - entity: sensor
+    category: diagnostic
+    class: current
+    dps:
+      - id: 18
+        name: sensor
+        type: integer
+        unit: A
+        class: measurement
+        force: true
+        mapping:
+          - scale: 1000
+  - entity: sensor
+    category: diagnostic
+    class: power
+    dps:
+      - id: 19
+        name: sensor
+        type: integer
+        unit: kW
+        class: measurement
+        force: true
+        mapping:
+          - scale: 10