-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[New device support]: EMIZB-141 Power Meter #19042
[New device support]: EMIZB-141 Power Meter #19042
Comments
Could you make a PR to add support for this device? |
I am still testing and experiencing some weirdness, where I see less usage than in reality, however, I don’t know if it is due to my power meter or the device, since I have no other reader device to compare to. |
I could need some help with this :) Readings are definitely not accurate when set to the right frequency, also another problem I have noticed is that I now have a small solar system and it seems to add the generated overflow energy that goes out to the total. |
I've encountered the same problem, it's mentioned even on develco website that this is not compatible with PV systems, it doesn't happen to 100% of electrometers, but some of them are configured to give impulse also on energy export and you have no way of distinguishing import from export (if you have on-grid setup for solar) |
my system seems to have 2 IR Lights, so I wonder if one is dedicated for export and one for import, might test this out by just covering one up. |
Many systems have multiple lights, my also has 2, but one shows imp./kWh the other imp./kvarh. Best to find and consult manual. |
That would be a bummer, since to my knowledge this is the only zigbee power meter, that’s why I bought it and this makes it practically useless :/ |
There are other power meters like TuYa TS0601 although the installation is definitely more complex than the LED one. Based on my research so far this would also work better with PV because, it should be able to determine the import/export direction depending on where the clamps are installed. |
Will this device be officially supported ? I am considering it, as it seems the device with the most simple installation out there … |
Hello, i'm new to Zigbee2mqtt, how can i import the config shown by lSh4dowl ? |
I had same problem yesterday, this worked for me:
|
@petosiso Can you confirm, that the device is working correctly when you don't have a solar system? |
Hi @petosiso. I can confirm it's working well on a non-solar system meter. Have had it running for about 3 weeks (using the custom converter shared by @lSh4dowl. Including showing up in Energy Dashboard. There are issues with some fields (Battery mainly) and the Summation resets to Zero no matter what is entered. I was hoping to use that latter field to input my starting Meter number and have it increase from there but from reading back it appears that was an issue with the v1 meter also. Maybe when 'proper' support comes to Z2M it will work but for the moment it is more than enough for me. I've also set up Utility meters for Hour, Day & Month so I can see a visual. I used a version of this article here to set up my Day, Night & Peak rates. https://community.home-assistant.io/t/stuck-setting-up-peak-off-peak-electricity-tariff/419894/5 |
@AlmightyCZ yes, I can also confirm that it works. Exactly as @penroseg described, |
Does anyone knows when is this to be added to the list of supported devices? |
* Added Support for frient Electricity Meter Interface 2 * Update frient.ts --------- Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
It's now supported in 1.34.0(Koenkk/zigbee-herdsman-converters#6582 + https://www.zigbee2mqtt.io/devices/EMIZB-141.html) |
So this is a hardware issue and the device support in Z2MQTT doesn't make any difference? |
This custom converter works so much better than what is currently in the release version, so eagerly waiting this to be the officially released! |
That is good news. What are your plans on the PR? I am considering using the external converter to make energy work, but this might interfere with the PR, right? |
nah just remove the custom converter if u wanna go back to normal converter |
In the external converter I am missing the battery indicator in %. Is there a way to add it? |
The converter in release is reporting battery percentage, but it's probably not working. Despite showing 100% consistently, my meter stopped updating (after 60 days of operation), indicating battery depletion. After replacing the batteries, it started working correctly again. |
Also the energy reporting has stoped working (as someone has already mentioned here) so I'm going back to the original external converter for now. |
I will agree with the use of external converter. It is much more complete. I managed to set the current summation but to be fair not sure what should be. Is it the "current value" in kWh that I see in the power box? (for the Czech people I have PRE). |
Used the external converter mentioned above. Running for 5 days and the tracking of my usage matches the electricity meter perfectly. |
I'm using the device for nearly a year now with one of the first converters and I set the pulse to 10000 because my meter requires it. And it seems to work because I get correct readings from the device without any other hacks. |
Someone said that it doesn't go very far down. Again not my words, others
commented. You can test by put used batteries and wait a bit.
…On Mon 30 Sept 2024, 13:36 Kev Willers, ***@***.***> wrote:
The battery can be fixed, it is mentioned in another answer. Tested and
works
Yes I know and I have applied that fix but its still sat at 100% reading
which seems unlikely
—
Reply to this email directly, view it on GitHub
<#19042 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWRA64M73AQJAC7QPA66QTZZEZUTAVCNFSM6AAAAAA5CBYLX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBSHE2DEMRYGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I see a lot of folks using the converter in all kinds of ways. @tbowmo created a PR (thank you) which should be much easier for all in the future. Can someone help him figure this out ? (I unfortunately don't have these skills nor the device yet, else I would do it) |
I've been using this device since February, and I've been really happy with it. It's readings are extremely accurate, and in general it has been a revelation to be able to follow the whole house's energy consumption in real time. It makes it really easy to discover where to take action. I can't remember exactly which of the converters I'm using, but what I have working is energy, power and setting the pulse configuration. The battery shows 100% which can't be true. As far as I remember, the device will reset the energy to 0 if I change the current summation, no matter what the input is. I'm thinking if it would make sense to - for a starting point - only include the stuff that works, e.g.:
I believe those features would be enough for the vast majority to get what they expect from this device. |
This seems to be the bare minimum at the moment, which I'm going to model in the herdsman-converter pr (in typescript). I have removed a lot of the code from OP, that doesn't make sense (like interface mode, for this device there is only one interface mode, the LED blinker) const exposes = require('zigbee-herdsman-converters/lib/exposes');
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const constants = require('zigbee-herdsman-converters/lib/constants');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const utils = require('zigbee-herdsman-converters/lib/utils');
const ota = require('zigbee-herdsman-converters/lib/ota');
const e = exposes.presets;
const ea = exposes.access;
const modern = require('zigbee-herdsman-converters/lib/modernExtend');
// develco specific cosntants
const manufacturerOptions = {manufacturerCode: 0x1015};
// develco specific convertors
const develco = {
fz: {
// Some Develco devices report strange values sometimes
// https://github.com/Koenkk/zigbee2mqtt/issues/13329
pulse_configuration: {
cluster: 'seMetering',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
const result = {};
if (msg.data.hasOwnProperty('develcoPulseConfiguration')) {
result[utils.postfixWithEndpointName('pulse_configuration', msg, model, meta)] = msg.data['develcoPulseConfiguration'];
}
return result;
},
},
},
tz: {
pulse_configuration: {
key: ['pulse_configuration'],
convertSet: async (entity, key, value, meta) => {
await entity.write('seMetering', {develcoPulseConfiguration: value}, manufacturerOptions);
return {readAfterWriteTime: 200, state: {pulse_configuration: value}};
},
convertGet: async (entity, key, meta) => {
await entity.read('seMetering', ['develcoPulseConfiguration'], manufacturerOptions);
},
},
current_summation: {
key: ['current_summation'],
convertSet: async (entity, key, value, meta) => {
await entity.write('seMetering', {develcoCurrentSummation: value}, manufacturerOptions);
return {state: {current_summation: value}};
},
},
},
};
const definition = {
zigbeeModel: ['EMIZB-141'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
model: 'EMIZB-141', // Vendor model number, look on the device for a model number
vendor: 'frient A/S', // Vendor of the device (only used for documentation and startup logging)
description: 'frient Powermeter', // Description of the device, copy from vendor site. (only used for documentation and startup logging)
fromZigbee: [develco.fz.pulse_configuration],
toZigbee: [develco.tz.pulse_configuration, develco.tz.current_summation],
extend: [
modern.ota(),
modern.battery(),
modern.electricityMeter({cluster: 'metering', power: {divisor: 1000, multiplier: 1}, energy: {divisor: 1000, multiplier: 1}}),
],
endpoint: (device) => {
return {default: 2};
},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(2);
await reporting.bind(endpoint, coordinatorEndpoint, ['seMetering']);
await reporting.instantaneousDemand(endpoint);
await reporting.readMeteringMultiplierDivisor(endpoint);
},
exposes: [
exposes
.numeric('pulse_configuration', ea.ALL)
.withValueMin(0)
.withValueMax(65535)
.withDescription('Pulses per kwh. Default 1000 imp/kWh. Range 0 to 65535'),
exposes
.numeric('current_summation', ea.SET)
.withDescription('Current summation value sent to the display. e.g. 570 = 0,570 kWh')
.withValueMin(0)
.withValueMax(268435455),
],
};
module.exports = definition; |
btw, Frient A/S is another name of Develco Products A/S, so it's the same company (based in Denmark) |
Ok, I was a bit quick about my last code piece, as it doesn't work for me.. It seems that I do not get the correct multiplier/divisor from the seMetering cluster, to use in the generic I'll have to rethink things a bit.. |
Hi @Jens-Wymeersch, Unfortunately I dont have too much spare time these days to do a PR and I think someone else has already done it. Regarding to the battery not being updated, I have being testing lately this converter emizb_141.txt (Same as the one already publish here, but with a small modification) The modification is to add "fz.battery" to "fromZigbee". now is looking as this In my case after around 20 minutes of uploading the new converter I could see changes in battery level. Note: if you are going to use the file uploaded change the extension to "js" also remember to restart z2m extension once the new converter is added |
Thanks @jllarraz I have made that change to my convertor. No change yet but I will update once it does. |
@jllarraz I can confirm your change now enables the battery % to update |
@nivek1612 Can you please share your updated and working converter ? |
It’s the same as the one published above in @jllarraz post |
@nivek1612 Maybe you can have a look at the PR that was made by @tbowmo Koenkk/zigbee-herdsman-converters#8044 |
@tbowmo sorry to bother you. I saw that your PR was approved. Does it work ? |
@Jens-Wymeersch I haven't tested yet myself yet, as the frient device is in the summerhouse, so I'll have to go there and do some tests. |
@Jens-Wymeersch Went to the summerhouse, to test things out. and it works, below is the published state from my frient device. had to jump a couple of loopholes before I got it working, but that's life on bleeding edge :) {
"battery": 100,
"battery_low": false,
"energy": 118.28,
"interface_mode": "electricity",
"linkquality": 112,
"power": 421,
"power_2": 357,
"pulse_configuration": 1000,
"update": {
"installed_version": 196866,
"latest_version": 196866,
"state": "idle"
},
"voltage": 3100,
"current_summation": null,
"update_available": null
} |
Battery 100% makes me think it may not be fully working |
It's only been in operation for one week. |
And by looking through the logs, that is the value that my ember zigbee stick is sending to zigbee2mqtt. |
@tbowmo maybe put an older battery inside and see if it still works |
@Koenkk Not sure in which release the PR will be reflected ? |
That could be done, but right now I've left the summerhouse again, not going back in rhe next couple of days |
That would make sense, mine is only down to 80% after nearly a year |
If anyone is able to test my pr, please do so. Specially the part with changing pulse counts |
Hello everyone, Is there any news on how to set the correct value for Home Assistant and ZigBee2MQTT if you have an electricity meter that does not output the standard 1000 pulses/kWh, but 10000, for example? And also how the energy consumption can be displayed? As of today, I have connected the Friend Electricity Interface 2 (EMIZB-141) via ZigBee2MQTT. My electricity meter is a Landi+Gyr E320-AM1D.A3A.A0-S1B-S3 and unfortunately has the 10000 imp/kWh at the said reading output. As a result, it shows me the live value incorrectly because of the multiplied difference between 1000 and 10000 pulses. For energy, I have “Unknown” as the value in Home Assistant and “zero” in ZigBee2MQTT. All other things, such as battery, link quality, update state are displayed correctly. Are there solutions for the 10000 and energy value problem without having to install an add-on or a helper or change something in the YAML in ZigBee2MQTT? That would be too complicated for me. Sorry. Regards |
I have a pr open, that should fix everything for the frient device. However, I haven't had the time to verify it, as I have to go to my summerhouse, as that's where it's located. And currently the summerhouse is occupied. Hopefully I can do it in the coming weekend. If someone elsw is able to test it, please do so. (need to jump a couple of hoops, but is manageaable) |
So finally I got around to test my pr to zigbee-herdsman-converters, and it works like it should. So just waiting for @Koenkk to do his magic with merge and release |
there is a new firmware for the frient - 196866 I can't to find much detail on what it brings |
Link
https://www.amazon.de/Electricity-Zählerauslesung-Energieverbrauchsüberwachung-LED-Impulsen-funktioniert/dp/B0CGVB6LGC
Database entry
{"id":54,"type":"EndDevice","ieeeAddr":"0x0015bc001b100a56","nwkAddr":51420,"manufId":4117,"manufName":"frient A/S","powerSource":"Battery","modelId":"EMIZB-141","epList":[1,2],"endpoints":{"1":{"profId":49353,"epId":1,"devId":1,"inClusterList":[5,6],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":83,"inClusterList":[0,1,3,32,1794,2817,2821],"outClusterList":[3,10,25],"clusters":{"genBasic":{"attributes":{}},"genPollCtrl":{"attributes":{"checkinInterval":14400}},"seMetering":{"attributes":{"currentSummDelivered":[0],"instantaneousDemand":354,"multiplier":1,"divisor":1000,"develcoPulseConfiguration":10000,"develcoInterfaceMode":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2ad1c","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c2ad1c","endpointID":1}],"configuredReportings":[{"cluster":1794,"attrId":1024,"minRepIntval":5,"maxRepIntval":3600,"repChange":1}],"meta":{}}},"dateCode":"2023-09-06 11:54","zclVersion":7,"interviewCompleted":true,"meta":{"configured":-570313272},"lastSeen":1695324832904,"defaultSendRequestWhen":"active","checkinInterval":3600}
Comments
It works reasonable, but shows no battery for example.
I basically just copied an old Version of the previous version (https://www.zigbee2mqtt.io/devices/ZHEMI101.html)
I only linked a German Amazon Page, because the Vendor doesn't have a site for the product yet (this is the old version: https://frient.com/products/electricity-meter-interface/)
External converter
Supported color modes
No response
Color temperature range
No response
The text was updated successfully, but these errors were encountered: