question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Iris 3210-L power usage measurement in zigbee-herdsman

See original GitHub issue

Hello 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:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Koenkkcommented, Oct 9, 2019

Can you try with

    {
        zigbeeModel: ['3210-L'],
        model: '3210-L',
        vendor: 'Iris',
        description: 'Smart plug',
        supports: 'on/off',
        fromZigbee: [fz.state, fz.iris_3210L_power],
        toZigbee: [tz.on_off],
        meta: {configureKey: 2},
        configure: async (device, coordinatorEndpoint) => {
            const endpoint = device.getEndpoint(1);
            await bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement']);
            await configureReporting.onOff(endpoint);
            await configureReporting.activePower(endpoint);
        },
    },
1reaction
Koenkkcommented, Oct 9, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Iris V2 Outlet 3210-L Outlet Zigbee Generic Zigbee Outlet
I have a separate power meter tile for this switch that will not display the wattage on my dashboard. In the devices tab...
Read more >
[RELEASE] Iris Smart Plug (3210-L) Zigbee Plug with Z-wave ...
I am using this device type with two Iris 3210-L smartplugs. The plugs work fine, they report power use, but only when I...
Read more >
Device support - homebridge-z2m
This page lists the devices currently supported by Zigbee2MQTT v1.28.4 (which depends on zigbee-herdsman-converters v14.0.681-hotfix.0).
Read more >
IRIS Smart Plug - Z-Wave Europe Manuals
The IRIS Smart Plug is an affordable way to add automation and track the energy use of your home while acting as a...
Read more >
SMART PLUG - pdf.lowes.com
The Iris Smart Plug includes a built-in power amplifier, giving the module ... that you can control them remotely and monitor energy usage....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found