openhab / org.openhab.binding.zigbee

openHAB binding for ZigBee
Eclipse Public License 2.0
74 stars 112 forks source link

Support for power consumption measurement using Smart Energy Metering cluster #410

Closed hsudbrock closed 3 years ago

hsudbrock commented 5 years ago

The binding already supports power measurement based on the electrical measurements cluster (cf. ZigBeeConverterMeasurementPower). Some devices (like, e.g., SmartPlugs from BitronVideo) provide power measurements only based on the smart energy metering cluster. This issue is for adding support for power measurement based on the smart energy metering cluster (which will be introduced into the ZSS ZigBee library with https://github.com/zsmartsystems/com.zsmartsystems.zigbee/pull/527).

I plan on providing a PR for this.

cdjackson commented 5 years ago

Is your plan to add this to the existing converter?

I'm not sure what is best here, so I'm interested in your thoughts as this is something I keep thinking about. There are numerous energy channels available in different clusters (probably the SE clusters have literally dozens - different phases etc).

I don't have a strong feeling for how to do this, but at the risk of complicating things, it might be worth considering this "duplication"?

hsudbrock commented 5 years ago

Is your plan to add this to the existing converter?

This would be my preference, unless it makes the converter too complex. But, to be honest, I will need to play around with this a little in the code first, before I can say what I would actually prefer. But I will comment here again as soon as I have done that.

falmanna commented 4 years ago

Is this about the metering cluster (0x0702)? I just received a zgibee energy meter that has the 0x0702 cluster. Unfortunatly, the binding didn't recognize any channel.

By looking at the ZSS lib, it seems that they are supported, so I guess this cluster is not handled here yet?

I believe implementing issue #414 might also help in integrating metering devices?

cdjackson commented 3 years ago

I will close this as it's a bit too generic. There are a number of channels that support the metering cluster. If more are required, then we should name them specifically and open a new issue.