com.hubitat.zigbee.Zigbee API reference? Error calling electricMeasurementPowerConfig

I'm porting over a simple ZigBee outlet handler for the Centralite ZigBee Appliance Plug.

I'm getting the following error in the logs:

groovy.lang.MissingMethodException: No signature of method: com.hubitat.zigbee.Zigbee.electricMeasurementPowerConfig() is applicable for argument types: () values: [] on line 134 (configure)

Where can I find the API docs for the Zigbee object?

Code: hubitat/always-on-switch.groovy at master · edalquist/hubitat · GitHub

Is this what you're looking for?

image

The developer docs have some info but a lot of documentation is still lacking.

https://docs.hubitat.com/index.php?title=Zigbee_Object

Thanks, the works for the docs. electricMeasurementPowerConfig must not be supported in hubitat quite yet.

Thanks!

1 Like

You can always use the generic configure method for electric measurement:

configureReporting(Integer clusterId, Integer attributeId, Integer dataType, Integer minReportTime, Integer maxReportTime, Integer reportableChange = null)

// Example, be sure to check the technical documentation for the correct cluster, attribute and datatype for your device!
zigbee.configureReporting(0x0B04, 0x050B, 0x29, 0, 300, null)

Thanks! This is my first ZigBee driver. Do the PDF docs for these devices usually break down the various IDs needed to send those commands?

Depends on the manufacturer!

If not available best approach is a zigbee sniffer otherwise you could always check if someone else have written a working driver in ST where those id's are printed or check for example Conbee codebase which supports a lot of devices.

Last resort would be to try the generic clusters from zigbee standards documentation.