Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Electrical Measurement (0x0B04) and Smart Energy Metering (0x0702) clusters for LEDVANCE Smart Plugs #1452

Open
amitjoy opened this issue Dec 10, 2024 · 3 comments

Comments

@amitjoy
Copy link
Contributor

amitjoy commented Dec 10, 2024

Is your feature request related to a problem? Please describe.
I’m currently unable to access energy monitoring features of LEDVANCE Smart+ ZigBee plugs because the Electrical Measurement Cluster (0x0B04) and the Smart Energy Metering Cluster (0x0702) are not supported by com.zsmartsystems.zigbee.ZigBeeDeviceType. These clusters are crucial for retrieving power consumption and energy usage data.

Describe the solution you'd like
I would like the ZSmartSystems ZigBee library to support the following clusters:

  1. Electrical Measurement Cluster (0x0B04) – for measuring active power, voltage, and current.
  2. Smart Energy Metering Cluster (0x0702) – for tracking cumulative energy consumption.

Adding these clusters will allow LEDVANCE Smart+ plugs and similar devices to report real-time power usage and cumulative energy data within openHAB.

Describe alternatives you've considered
NA

Additional context

  • Device: LEDVANCE Smart+ Plug (ZigBee version)
  • Manufacturer: LEDVANCE
  • Clusters to be supported:
    - Electrical Measurement Cluster (0x0B04)
    - Active Power (0x050B)
    - RMS Voltage (0x0505)
    - RMS Current (0x0508)
    • Smart Energy Metering Cluster (0x0702)
      - Current Summation Delivered (0x0000)
      - Instantaneous Demand (0x0400)

This feature would allow users to fully utilize energy monitoring capabilities within openHAB, enhancing automation and energy management.

@cdjackson
Copy link
Member

Strange - these clusters have been supported for a very long time. We've even had a smart energy product go through certification.

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/blob/master/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclElectricalMeasurementCluster.java

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/blob/master/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclMeteringCluster.java

You mention openHAB - some attributes of these clusters are already supported (for a long time) in openHAB - this includes the attributes that you have mentioned above (I think maybe RMS voltage isn't implemented in openHAB, but I believe all the others are, and have been for many years).

@amitjoy
Copy link
Contributor Author

amitjoy commented Dec 11, 2024

You’re likely familiar with the zigbee nodes command in openHAB. This command lists only those nodes from LEDVANCE that are defined in the com.zsmartsystems.zigbee.ZigBeeDeviceType enum, even if the aforementioned clusters are supported by LEDVANCE SmartPlug. Am I overlooking something?

@cdjackson
Copy link
Member

Probably the console has added support for these clusters - it is certainly limited. You'd need to add them as locally supported clusters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants