Skip to content

Commit

Permalink
Add support for EARU DPN circuit breaker
Browse files Browse the repository at this point in the history
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
  • Loading branch information
make-all committed Sep 29, 2024
1 parent 18b03e9 commit 4af5e77
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
55 changes: 55 additions & 0 deletions custom_components/tuya_local/devices/earu_dpn_circuitbreaker.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4af5e77

Please sign in to comment.