zigpy / zha-device-handlers

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.
Apache License 2.0
723 stars 670 forks source link

Add support for Develco Products A/S EMIZB-132 Norwegian HAN adapter #267

Closed jorgen666 closed 2 years ago

jorgen666 commented 4 years ago

I have such adapter installed and it shows up in HA v0.105.2. But it have clearly no suitable device handler. This is an adapter to read data from the norwegian energy meters.

how to contribute on making a handler for this device ?

This is the tecnical manual for this adapter. emizb-132-technical-manual-emi-norwegian-han.pdf

TheDiverM commented 4 years ago

I also have the same adapter. And also wonder what can be done to make this work

prilly-dev commented 3 years ago

I realy hope we can get support for this device, seems alot of Norwegian users want it.

Develco has very good documentation on their site for this device, it should be trivial to make a quirk for it.

prilly-dev commented 3 years ago

Deconz have now support for this device, changing from zha to deconz is the recommend way if you need this device to work. But i realy hope zha can include it soon, this is probably the most important device to have in Norway at the moment

MattWestb commented 3 years ago

Then the devs dont have the device they dont have so easy to doing one implanting of it the ZHA then its one little unusual device and need much information and handon for implanting it.

Its the same with all not so standard devices like the "LIDL christmas tree light" that was coming before christmas and we was not able getting one to the devs for getting it implanted so we was not getting any Zigbee christmas tree this year :-((

Digging / harvesting information of the device can helping and also if you is knowing some with knowledge of python (or other programing skills) that can doing little hand on can helping getting all pieces in place.

Its the same with deCONZ have not implanting one device for the scandinavian countries (KNYCKLAN Open/Close remote (E1841)) but one user have putting all possible information in one request on ther github and its pretty standard device with minimal cluster changes (compared to the "normal" E1743).

And good luck with your recommendation to XdeCONZ users.

prilly-dev commented 3 years ago

Looking up this device with its producer you will find very good and complete documentation to implement it: https://www.develcoproducts.com/products/

There is no need for a dev to have this device to construct a device handler for it. Iam shure there are many users willing to test a finished device handler. By the way its not possible to use this device or test against it without a propper norwegian HAN enabled electricity meter.

This device is fairly complicated, writing device handler for it is not that straight forword. But the deconz guys did it with the provided documentation available on the producers webpage

Hedda commented 3 years ago

This is the tecnical manual for this adapter. emizb-132-technical-manual-emi-norwegian-han.pdf

According to manual, it uses Zigbee SE Metering Cluster id 0x0702 so might be issue with same ZHA limitations as in -> https://github.com/zigpy/zha-device-handlers/issues/605

Also, not sure zigpy which ZHA depends on support DLMS/COSEM and Zigbee SEP (Zigbee Smart Energy Profile) specification?

https://github.com/zigpy/zigpy

https://zigbeealliance.org/wp-content/uploads/2019/11/docs-07-5356-19-0zse-zigbee-smart-energy-profile-specification.pdf

https://community.smartthings.com/t/dlms-and-zigbee-smart-energy-profile-sep-1-1/143411

https://e2e.ti.com/support/wireless_connectivity/zigbee_6lowpan_802-15-4_mac/f/158/t/661416?CC2538-Using-smart-energy-devices-in-z-stack-3-0

Hedda commented 3 years ago

Develco also has several other products which also looks to use the same Zigbee Smart Energy specifications:

https://www.develcoproducts.com/products/meter-interfaces/

https://zigbeealliance.org/zigbee_products/?product_type=certified_product&se=Develco

Examples:

https://github.com/zigpy/zha-device-handlers/issues/857

https://www.develcoproducts.com/products/smart-plugs/smart-plug-mini/

https://www.develcoproducts.com/media/1995/splzb-13x-technical-manual-smart-plug-mini.pdf

https://www.develcoproducts.com/products/meter-interfaces/prosumer-meter/

https://www.develcoproducts.com/media/1781/smmzb-310-technical-manual-zigbee-prosumer-meter.pdf

https://zigbeealliance.org/zigbee_products/prosumer-meter/

https://zigbeealliance.org/no/zigbee_Produkter/prosumer-meter/

MattWestb commented 3 years ago

The problem is that in the Zigbee 3 HA profile 0x0051 "HA Smart Plugs" shall having SE Metering Cluster id 0x0702 without implanting all of Smart Energies.

Hedda commented 3 years ago

The problem is that in the Zigbee 3 HA profile 0x0051 "HA Smart Plugs" shall having SE Metering Cluster id 0x0702 without implanting all of Smart Energies.

Developers discussion in https://github.com/zigpy/zha-device-handlers/issues/605 and in https://github.com/home-assistant/core/pull/50471 also points to a limitation in ZHA integration for Home Assistant which currently only support 1 sensor per cluster, and these Zigbee Smart Energy meter devices need 2 or more sensor per cluster.

Hedda commented 2 years ago

FYI, it looks like support for more Zigbee clusters attributes is now being worked on for ZHA integration in Home Assistant core, see:

https://github.com/home-assistant/core/pull/56909

and

https://github.com/home-assistant/core/pull/56666

Also, note the last comment from Adminiuga in PR for ZHA in Home Assistant core -> https://github.com/home-assistant/core/pull/56909

"Support for other attributes could be extended later, as I couldn't find too many devices other than Sinopé RM3250ZB Electrical Load Controller – 50A – Zigbee https://www.amazon.com/dp/B07CGJ6XH2/ reporting anything interesting on the electrical measurement cluster."

So maybe now you could try to get this working with the latest Home Assistant beta or wait for the next upcoming release:

https://www.home-assistant.io/faq/release/

PS: There is much more discussion about the current ZHA limitation of only supporting 1 sensor per cluster here -> https://github.com/zigpy/zha-device-handlers/issues/605 and https://github.com/zigpy/zha-device-handlers/issues/1045

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.