For voltage and current in zigbee Edge driver

I want to show the voltage and current for a power meter device, where can I find help documents for it? Thanks!

Hi, @chenjun

To work with Edge drivers, here’s the Edge driver’s reference.
In this case, when there are no default handlers to “translate” the Zigbee messages into capability events, you need to define your own zigbee_handlers and also set the attributes you need as monitored and configured so the corresponding commands are sent to the device.

In this subdriver you can see an example of custom zigbee_handlers: SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-power-meter/src/shinasystems/init.lua at main · SmartThingsCommunity/SmartThingsEdgeDrivers · GitHub
And, here’s where the commands to monitor and configure those attributes are sent:
SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-power-meter/src/shinasystems/init.lua at main · SmartThingsCommunity/SmartThingsEdgeDrivers · GitHub

Please, let me know if you have any questions.

1 Like

Thank you very much!

1 Like