-
Notifications
You must be signed in to change notification settings - Fork 503
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
[Request device support] Develco EMI Norwegian HAN #2127
Comments
Did you read the attributes of the 0x0702 and 0x0b04 clusters? The 0x0b04 seems to show only default values. The 0x0702 suggests you’re currently consuming 8.3 kW. Can you relate this to what the meter is displaying? Life-time consumption is again the default value. |
Yes, all values are after clicking "read" and the meter shows ~1-1.2kW atm. To open the HAN-port on Norwegian meters we have to ask the power company to do it, and it says on "My pages" that the port is open. So I'm not sure why it shows default values. I will request a close and re-opening of the port to see if that helps with the values. |
Thank you, @Jopinder, for requesting support for the Develco EMI Norwegian HAN. I have one myself, but have not been able to add it to my Conbee II USB adapter, hence I am not able to get any readings into my HomeAssistant server. I have asked my power provider (LOS) to open my HAN port, and they confirmed that they had enabled my HAN port. Even so, I am not able to see my Develco sensor in ConBee II. I tried using the PhosCon web interface as well as the VNC GUI. Can you tell me (details) how you managed to bind your Develco HAN to your Deconz adapter? Thanks in advance and Happy New Year. |
My power company has confirmed the HAN port is opened after some mailing with their support. I'm going to contact the seller over new year (Wattle/Home Control AS) to ask if they have done anything to the firmware as they claim it only works with their gateway. @gantonjo-tnm I tried to add it via the web-gui and Sensors -> Add new sensor and chose "Other", but it did not show up. I then reset the Develco and added it again via the web ui. It still didn't show up in the web ui, but this time in the VNC UI as connected (but unable to get any readings from the power meter). So nothing special I did I'm afraid. Btw, I have Skagerak Energi and the Aidon meter, which meter does LOS use? |
@Jopinder LOS uses Kamstrup meters. |
I have the same reader, but my Manufacturer Code comes up as 0x117c as opposed to 0x1015. Very strange, this seems to be the code for IKEA? The sensor is not talking directly to my hub, it's only within range of one of my IKEA bulbs. My reader is bought from Elektroimportøren, and the web shop lists it as compatible with "Homely": https://www.elektroimportoren.no/emi-norsk-han/4514731/Product.html?Event=livesearch My meter is also from Aidon. I've gotten a confirmation from my power company that my HAN port is enabled. @gantonjo-tnm I had to upgrade to the latest deCONZ beta before I was able to get cluster information etc. from my HAN sensor. Got it from here: http://deconz.dresden-elektronik.de/raspbian/beta/ Here are my screenshots: Node info:0x000:0x0702:0x0b04: |
@einarjh: Very interesting. Thanks for the information, allthough I am not sure how to upgrade my Conbee II to the latest Beta version. I am running my Home Assistant in Docker on an old Apple Mac Mini 2.5 that is running Ubuntu 18.04.3 LTS. Deconz is running as Docker image "marthoc/deconz". |
Derp! I just started reading the documentation for EMIZB-132 a bit closer, and found this: Seems there is an extra step needed to enable metering data from Aidon meters, which both @Jopinder and I have. |
Best define these attributes in |
@einarjh Ok, I managed to update my Docker image to latest "marthoc/deconz", but even so I am not able to find my Develco EMI Norwegian HAN adapter. I have tried to factory reset it and unplugging it after the reset. No luck binding it to my ConBee II :-( (Since I used docker-compose, "docker-compose down && docker-compose pull && docker-compose up -d" gave me the latest version of the "marthoc/deconz" Docker image): |
I messed around with this some more tonight, but can't quite get it to work. As far as I can tell from the manufacturer documentation, the manufacture specific attribute ID 0x0302 needs to be added within the 0x0702 cluster, with the manufacturer code set to 0x1015, so I tried adding it like this (with an educated guess for the type, since this is omitted from the documentation):
That didn't turn up at all, but when I used the IKEA mfcode, it showed up. Why is my Develco device cloning the manufacturer code for IKEA? Next problem: the attribute id 0x0302 seems to be conflicting with the attribute id for divisor, when I double click on my new attribute, it brings up the widget for divisor, ref. screenshot: If I give a fictional, unused attribute set ID, it shows the expected widget with a dropdown, but that won't let me read or write, of course. I get UNSUP_MANUF_GENERAL_COMMAND … |
@gantonjo-tnm Sorry, I can't help you with the connectivity issues. I have a feeling that the meter struggles with the range, though, so make sure your nearest node is close enough. I had to move some of my IKEA lights from the IKEA hub over to deCONZ in order to extend the range. Even now it drops out from time to time. |
@einarjh That's very strange. My Develco is currently connected to ConBee via an IKEA Trådfri spot, and it keeps all the info, 0x1015 etc. @gantonjo-tnm Yeah, the range on the Develco is kind of crappy, especially if it's mounted on the inside of the fuse box. |
That looks good to me, but you might want to set
I’m afraid you’re running into a limitation of the GUI: it only shows manufacturer-specific clusters and attributes for the same manufacturer code as the device reports in the Node Descriptor. You see the attribute, but it won’t work, as the device expects a different manufacturer code in the read and write commands. Why they use the IKEA code is beyond me, I’ve seen iCasa use the Philips code, so their lights are exposed natively to HomeKit by the Hue bridge.
That’s another limitation in the GUI: it doesn’t support manufacturer-specific attributes with the same ID as a standard attribute. Ran into this for the poweron colour settings of Hue lights. If you comment out the standard attribute, you should be able to interact with the manufacturer-specific attribute (if it weren’t for the previous issue). You could try and access the attributes thru the deconz-cli-plugin, but that’s not for the faint-hearted. |
@einarjh How are you able to edit general.xml? I'm using Hass.io/HassOS, and each time I copy the edited file back to the deCONZ container and restart it, the file goes back to default. Is there some way of forcing a reload of general.xml without restarting the container? I also tried creating a file with the values and adding it as a second source for the ZCLDB with no luck. |
@Jopinder I'm not using docker, I'm using the .deb file directly on a raspbian install. |
I tried resetting and re-adding the meter. It still came back with the wrong manu ID. Then I tried turning off every router and moving my raspberry pi within range of the reader. Same problem, it still came back with the IKEA ID. Then I went for broke, reset everything, and started from scratch with a blank gateway and then adding it. I had to reset everything about ten times, because the device kept coming up with blank manu ID and no attributes. When I finally got it synced up and showing all the attributes again, the manufacture ID was set to 0x1135, which is the same as the raspBee hat has. It seems to clone the manufacturer ID of whatever router it talks to when it pairs up. So I'm pretty much stuck. I can't get it to show up with the correct manufacturer ID, which means I can't get it to use the correct measuring mode for my power meter. Is this a bug in deCONZ or do I have a faulty zigbee device? |
Just to re-iterate. My testing indicates that DeConz is not seeing the correct manufacturer code, it's seeing the code from whatever router it is talking to. I have left it connected for a few days now, with no change. |
@gantonjo-tnm not sure if I understand what you're missing. From the screenshot you posted, the EMI is visible (device 0x0CF2). EMI is supported since deconz version .72, so the update was necessary. @einarjh The reason why you have previously seen a different manufacturer code is 99% a node descriptor issue I also had to fight with on the develco smoke sensors (#2154, #2052, #1653). Long story short: in deconz core, the node descriptor is NULL, although a valid node descriptor response was transmitted from the device. This is still not resolved however, my sensors work now with the changes comitted. Regarding the metering cluster manufacturer specific attribute: I've seen that while amending general.xml for the EMI, but that one felt fishy. Like @ebaauw already mentioned, it might be hard to have it set. Maybe that's doable with ma-ca's deconz cli plugin. Anyhow, not haveing set this attribute appropriately might be the reason why the measurement values show defaults? @einarjh happy to include your changes of general.xml in a pull request, if you want. EDIT |
@einarjh the trick works. You need to open daconz' database with sqlite3 and shut down deconz before. While open, issue the following query and make sure you amend the MAC address to yours:
I know that data set is not 100% accurate (as it should be DC powered instead of battery), but it will do. |
@SwoopX Perfect! I suspected that messing with some database or cache file would allow me to replace the manufacturer ID somehow, but I didn't know where to start. I am now able to read the value, but not able to write it. Hmmm. |
As to committing my suggested config change, that wouldn't make much sense since one needs to comment out/remove different parts of the file in order to get it to work. Assuming I can make it work. |
Ah yeah, I see. Well, as @ebaauw suggested, you might wanna give the deconz cli plugin from ma-ca a go. If I recall correctly, it might be able to handle that. I may be able to assist. |
That thing looks daunting. I'll see if I'm able to set it up correctly first. |
OK, I have it set up now, seeing lots of traffic in the nc "shell". Awaiting further instructions :) |
My device probably also has old firmware as I'm getting default values on all interface modes.
Contacted both Wattle and Develco on wednesday asking for the firmware update, no response yet. Would be awesome if someone with a Wattle/Heimgaard hub could investigate possibilities of fetching these firmware files somehow. Doesn't seem like returning the device is an option either because of covid rules.. |
@havardthom I see the same values, having FW version 3.5.3. According to WTell we need to be on minimum version 3.5.6. I've also contacted both Wattle/Heimgaard and Develco. Wattle has closed my issues, saying that they do not accept devices to do the upgrade, and they are not allowed to share the FW. My request to Develco is still unanswered. I'm glad you also contacted them, maybe more requests can make something happen. I was tempted to order the Wattle hub at Elkjøp, just to do the FW upgrade and then return the hub with the "åpent kjøp" policy. However, due to covid they temporarily do not accept returns of opened packages. |
Develco have previously told me Wattle should be able to supply updated firmware, so I think Wattle are engaging in a case of blaming others for their unwillingness to simply publish the FW here. Obviously they want people to buy the hub instead, where they distribute the same firmware they allege they’re not allowed to distribute. |
Got a reply from Wattle today, pretty much the same as other people got.
@oivindoh Do you have a screenshot of Develco saying Wattle should provide updated firmware, which I could use to confront Wattle? |
I see there is a 45-day return policy for the Heimgard Hub, which could be a last option if they wont release the firmware. https://www.heimgard.com/produkt/heimgard-hub-pro/ |
Just to give you guys a little information on how I ended up configuring my HomeAssistant instance with the ConBee II stick and the Develco Norwegian HAN EMI. I found the deconz path to be too limiting for me, not only for the EMI unit, but also for my IKEA blinds, lights and corresponding remote controls. So, I deleted the deConz integration and installed ZigBee2MQTT instead. No more mocking around in Phoscon GUI or VNC connection to the deconz. All controlled by the ZigBee2MQTT control panel and the EMI shows up with all sensors as shown in this attached picture. |
I suppose this means a lot of reconfiguring of exiting entities? But no re-pairing needed? |
Well, I had to re-pair the nodes, but that was anyway part of my plan since I upgraded my HA to HomeAssistant OS on a new Intel NUC. So, yes, for the 30 or so nodes this meant a little extra work. However, I am so far happy I did the switch, since it is so much easier to debug when all (raw) messages in the network actually goes through the MQTT server before hitting the HA instance. |
Ah okay, hmm, no, I don't want to go that route yet (138 devices, including 35 groups for lights) |
I have engaged in a discussion with tech at Develco regarding access to firmware files for their devices. So far their representative appears to be interested in the problem with being unable to update the EMI HAN meter. Waiting for response now on a question regarding the NDA that Wattle claims is blocking them from publishing the firmware files. Develco reports version 3.5.7 as the latest firmware for the EMI HAN meter: As a side track; I also pretty quick changed from using deConz and went for MQTT + Zigbee2MQTT instead. Very happy with this switch as I find it much easier to configure and debug. |
And now a I got the final answer from Develco:
So the story ended there. I have acquired my EMI HAN meter from Elkjøp, and they write on the product page that this device requires the Wattle portal. Given this statement I guess there is no use in trying to involve Elkjøp in this discussion about firmware upgrade. And Wattle we already know is unwilling to support this. I'm sorry to say so, but for me the conclusion will be that all devices from Develco should be avoided, unless you decide to go all in on their HUB and software as well. I cannot recommend anyone to buy these devices since it will be impossible to upgrade the firmware when required. |
Latest zigbee2mqtt release adds OTA support for Develco EMIZB-132: https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.22.0 Firmware v4.0.1 is now available through OTA in zigbee2mqtt !! I am currently updating my device from the outdated "2017-11-01 12:57" firmware, will report if the device starts working after. Edit: I've experienced flickering of some of my zigbee lights after updating the device, possibly due to high amount of traffic. Tried changing the |
@ggjersund I assume you're in the wrong place here? |
@SwoopX Yeah, I must have misread parts of the PR here. I'll take up this issue in the proper forums :) |
Sorry for the noise for others here. @havardthom - did you do something special to make the device accept the update? I'm struggling to get it to accept the update
|
No, I do not recall doing anything special. Maybe try resetting the device? |
Hi |
Those values are the same as I (and others) have experienced with the older EMIZB firmware. After updating the firmware all values will be correct. |
But I already update firmware to 4.0.1 but still the same problem. |
Then I'm at a loss, sorry. But just to make sure; you have requested your grid provider to enable the HAN port on your utility meter? |
Tree questions:
|
Yes readings come after a while |
Then I'm running out of ideas. Neither do I know the Kamstrup meter specifically (using Aidon myself). One thing, if you haven't tried already, might be to reset the Develco device and connect and pair it from scratch. |
My solution was moving to Zigbee2MQTT |
Hi |
For what it's worth, I gave up on this reader and left it behind when we moved. I'm now using a Pow-U from https://amsleser.no/ and it works like a charm over MQTT :) They also ship internationally through https://lectronz.com/stores/amsleser |
Develco Norwegian HAN External Meter Interface
Real-time measurement and reporting of household power.
Product page:
https://www.develcoproducts.com/products/meter-interfaces/emi-norwegian-han/
Technical manual with detailed cluster information:
https://www.develcoproducts.com/media/3747/emizb-132-technical-manual-emi-norwegian-han.pdf
Node:
Node Info:
Basic Node 0000:
Simple Metering 0702:
Electrical Measurement 0B04:
The text was updated successfully, but these errors were encountered: