-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Zemismart ZMAi-90 smart switch with energy monitor.
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
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
custom_components/tuya_local/devices/zemismart_zmai90_energymeter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||