Issue with Iris 3210-L power usage measurement in zigbee-herdsman
See original GitHub issueHello and thanks for this awesome project!
I’m starting from scratch (migrating my Zigbee devices from SmartThings) and decided to start with zigbee-herdsman (using zigbee2mqtt dev branch) so I could help test the upcoming update.
I paired an Iris 3210-L smart plug, and on/off works fine. However, power consumption is not reported. There are no errors or other messages in the debug output of zigbee2mqtt, so I’m guessing that power consumption isn’t being configured correctly… it looks like fewer options are passed in the new version, but I’m in very unfamiliar territory.
Here’s the original configure method from zigbee-shepherd-converters (I can only assume that this worked):
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('haElectricalMeasurement', 'activePower', 10, 1000, 1, cb),
];
execute(device, actions, callback);
},
Here’s the new configure method in zigbee-herdsman-converters:
configure: async (device, coordinatorEndpoint) => {
const endpoint = device.getEndpoint(1);
await configureReporting.activePower(endpoint);
},
In case it’s useful, here’s how power consumption is configured in the SmartThings device handler I was using:
//power config for devices with min reporting interval as 1 seconds and reporting interval if no activity as 10min (600s)
//min change in value is 01
def powerConfig() {
[
"zdo bind 0x${device.deviceNetworkId} 1 ${endpointId} 0x0B04 {${device.zigbeeId}} {}", "delay 200",
"zcl global send-me-a-report 0x0B04 0x050B 0x29 ${intervalMin ?: 5} ${intervalMax ?: 600} {05 00}", //The send-me-a-report is custom to the attribute type for CentraLite
"send 0x${device.deviceNetworkId} 1 ${endpointId}", "delay 500"
]
}
If you have any suggestions or can lead me in a direction to test some things, I’d be happy to try some changes and make a PR if it works out. Alternatively, if it is not the right time in the zigbee2mqtt/zigbee-herdsman update process, please let me know and I’ll go away until the timing is more appropriate 😃
EDIT:
- I’m using Home Assistant MQTT discovery
- No sensor is created in HA for reporting power consumption (there is a switch for on/off, and a sensor for link quality)
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)

Top Related StackOverflow Question
Can you try with
Should be a separate sensor, change https://github.com/Koenkk/zigbee2mqtt/blob/dev/lib/extension/homeassistant.js#L536 to
'3210-L': [cfg.switch, cfg.sensor_power],and it will work; Do you mind making a pr for these changes? Then this can be closed.