Skip to content

Commit

Permalink
Add support for Zemismart ZMAi-90 smart switch with energy monitor.
Browse files Browse the repository at this point in the history
Uses a standard smartplug layout, but from the log submitted, the
add_ele dp seems to be acting like a total_forward_energy so it can be
used as a proper meter.

Missing timers, calibration or any extra config options, just the
switch and sensors for energy, current, power, voltage and a fault code.

Issue #2651
  • Loading branch information
make-all committed Jan 11, 2025
1 parent e01367f commit 566ba23
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
1 change: 1 addition & 0 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -803,3 +803,4 @@ Further device support has been made with the assistance of users. Please consid
- [vytux-com](https://github.com/vytux-com) for contributing support for 3A Nue 3 speed fan and light controller.
- [nicolas-sora](https://github.com/nicolas-sora) for assisting with support for Wasserstein AquaPal water monitor.
- [theqz](https://github.com/theqz) for assisting with support for A03 siren.
- [luisolavea](https://github.com/luisolavea) for assisting with support for Zemismart ZMAi-90 energy meter smart switch.
1 change: 1 addition & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@
- Xoca DAC2121C BI energy meter
- Yagusmart 3PN 63A 3-phase multi-tariff energy meter
- Zemismart SDM01-TW0-12-ZM 3-phase bidirectional energy meter
- Zemismart ZMAi-90 smart switch energy meter
- ZM-Wi-Fi smart meter

### Battery Charger
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Energy meter
products:
- id: a6djabzmpbbp62gw
manufacturer: Zemismart
model: ZMAi-90
entities:
- entity: switch
class: switch
category: config
dps:
- id: 1
type: boolean
name: switch
- entity: sensor
class: energy
category: diagnostic
dps:
- id: 17
type: integer
name: sensor
unit: kWh
class: total_increasing
mapping:
- scale: 1000
- entity: sensor
class: current
category: diagnostic
dps:
- id: 18
type: integer
name: sensor
unit: A
class: measurement
mapping:
- scale: 1000
- entity: sensor
class: power
category: diagnostic
dps:
- id: 19
type: integer
name: sensor
unit: W
class: measurement
mapping:
- scale: 10
- entity: sensor
class: voltage
category: diagnostic
dps:
- id: 20
type: integer
name: sensor
unit: V
class: measurement
mapping:
- scale: 10
- entity: binary_sensor
class: problem
category: diagnostic
dps:
- id: 26
type: bitfield
optional: true
name: sensor
mapping:
- dps_val: 0
value: false
- dps_val: null
value: false
- value: true
- id: 26
type: bitfield
optional: true
name: fault_code

Check failure on line 76 in custom_components/tuya_local/devices/zemismart_zmai90_energymeter.yaml

View workflow job for this annotation

GitHub Actions / lint

76:1 [empty-lines] too many blank lines (1 > 0)

0 comments on commit 566ba23

Please sign in to comment.