-
-
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]: IKEA INSPELNING smart plug with power monitoring #23961
Comments
I made this definition: External definitionconst {electricityMeter, onOff, identify} = require('zigbee-herdsman-converters/lib/modernExtend');
const {addCustomClusterManuSpecificIkeaUnknown, ikeaOta} = require('zigbee-herdsman-converters/lib/ikea')
const definition = {
zigbeeModel: ['INSPELNING Smart plug'],
model: 'E2206',
vendor: 'IKEA',
description: 'INSPELNING Smart plug',
extend: [addCustomClusterManuSpecificIkeaUnknown(), onOff(), identify(), ikeaOta(), electricityMeter()],
meta: {},
};
module.exports = definition; What does this external definition fix?
Also:
|
@Rembock the "effect" actually worked on the light on the plug. I could for example make the light "breathe". The brightness did not appear to do anything. So I don't think the "effect" should be removed. |
These are also available in Germany now. Just bought 2. I will take a look if your external controller works for me tomorrow @Rembock. Any clue on how to get these into pairing mode? |
@itkama You can put them in pairing mode by pressing and holding the small button next to the power button. You probably need a pointy object to do so. |
Okay, so I couldn't wait until tomorrow to pair it (thanks @basvdploeg): Tried the other one with a pretty efficient GAN-USB-Charger to charge a powerbank that shows how much is going in. While the plug reported 30 to 31W, while the powerbank was reporting around 25W of input power. So for low power it may be kind of accurate. What does the external converter really change now though? The power number atleast on low wattages seems to be looking correct? 🧐 |
Made a new definition, this one fixes the issue's with Energy and Power @QempZor External definitionconst {} = require('zigbee-herdsman-converters/lib/modernExtend');
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const ota = require('zigbee-herdsman-converters/lib/ota');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;
const {electricityMeter, onOff, identify} = require('zigbee-herdsman-converters/lib/modernExtend');
const {addCustomClusterManuSpecificIkeaUnknown, ikeaOta} = require('zigbee-herdsman-converters/lib/ikea');
const definition = {
zigbeeModel: ['INSPELNING Smart plug'],
model: 'E2206',
vendor: 'IKEA',
description: 'INSPELNING Smart plug',
extend: [addCustomClusterManuSpecificIkeaUnknown(), onOff(), identify(), ikeaOta()],
fromZigbee: [fz.electrical_measurement, fz.metering],
toZigbee: [],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['haElectricalMeasurement', 'seMetering']);
await reporting.activePower(endpoint);
await reporting.rmsVoltage(endpoint);
await reporting.rmsCurrent(endpoint);
await reporting.currentSummDelivered(endpoint);
endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {
acPowerMultiplier: 1,
acPowerDivisor: 1,
acVoltageMultiplier: 1,
acVoltageDivisor: 1,
acCurrentMultiplier: 1,
acCurrentDivisor: 1000,
});
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 1000, multiplier: 1});
device.save();
},
exposes: [
e.power(),
e.voltage(),
e.current(),
e.energy()
],
};
module.exports = definition; |
@ronaldevers I get Data confirm errors in my log when I add light to the extended definition, so I decided not to configure the effect |
This looks very promising! I think I'll need to go out to eat some hotdogs for lunch pretty soon :) |
Power readings below 1000w are fine (out of the box), But above 1000W everything is shown as 100,0w (or f.e. 132,4w) With the ext. def. from Rembock, everything above 1000W seems to be good; but below 1000w is then show 10x too much (7,2w LED bulb reads 72w power... ) Also; I saw someone on Tweakers (dutch tech forum) who bought 2 of these plugs and didn't show any data. He changed them at another Ikea store and then one of them is showing the correct voltage, and one is shown 10times to high voltage, with the same settings/ext.def.) So there might also be a (small) problem within the units itself. (<- Thats just speculation) |
I am almost certain that this must be a firmware issue, I hope Ikea will come up with an update soon.
Yup, that's @basvdploeg :) |
No, they were the INSPELNING. Both showed only 1 (different) reading, and all the other values stayed empty. I tried re-pairing them multiple times, with and without external definition, but the results stayed the same. When I switched them for two new version (from another IKEA store), I got all the data instantly. So it definitely looked like a problem in the plugs themselves. |
I bought 3 INSPELNING, one of them reports as TRETAKT (2204). I checked the label on the plug, it really says 2206 (INSPELNING). |
I bought 3 yesterday and added them to Zigbee2MQTT using the external definition from @Rembock . Somehow 1 shows all the values x10 (so my outlet is now outputting 2340Volts), but the other 2 show correct values. Anybody that knows whats going on? |
@busene do your 3 plugs show different firmware versions? |
@itkama nope, all show the same version |
Instead of using the power sensor from the E2206, I'm now using a sensor with the template integration as a helper from the UI in Home Assistant. With this method you can 'tune' each plug to display the correct number of watts until Ikea pushes an firmware update that hopefully fixes the power sensor. It also seems like that the latest firmware version is 2.4.45, mine are both 2.4.34. |
This is the same that I experienced with mine. |
@Rembock mine are also 2.4.34, is there a way to update them without the ikea hub? |
I just bought a Dirigera and indeed there is an update. v2.4.45 is out However the Power problem is still there. Above 1000w is shown as 100,0w In HomeAssistant with the template from @Rembock there is a big difference between the template measurement and the Z2M readings. This is maybe due to the fact that the Current readings are (quite a bit) off? Or at least; not accurate. Example below is with an 30w ipad charger. |
The OTA update for the plug is available here: But I’m not sure how it can be used through Z2M. |
I bought the new INSPELNING plug here in Austria two days ago, and experienced the same issue that power >=1000W is shown as 1/10th of the actual value (on ZHA). I checked the Measurement Cluster for related attributes, and could figure out that the plug is dynamically adjusting the "ac_power_divisor" between 10 (<1000W) and 1 (>=1000W), which probably is not updated/reflected by ZHA or Z2M in the shown value accordingly: The off-value for the voltage seems to be fixed for some with the new firmware, see zigpy/zha-device-handlers#3374 (comment). I'm currently looking into fixing/expanding the issue/quirk for ZHA, maybe someone here knows how to fix this in Z2M tho ;) |
@adri-M configuration: Source: |
@tosiek
|
i had the same issue. The solution is to add the following line to ikea.js const ota = require('zigbee-herdsman-converters/lib/ota'); just add it in the top with the other const's, mine looks like this: "use strict"; |
Hi together, |
It should be part of the December release afaik. For the November release not everything was ready. Just have a little patience. |
Oh, that makes sense. I didn't have the release cycle in mind. |
Yes. Discovered it minutes later too. I hope they release it right on 1. Dec |
I got some of these devices recently. If everything works out of the box on Saturday, I can wait to use them, but what exactly is still missing? Is it this? Because that hasn't been merged yet. |
No, it's this change: Koenkk/zigbee-herdsman-converters#8248 IKEA changed the firmware URL for new devices, instead of having a new URL the decision was that it's better if Z2M mirrors the firmwares in its own server (as it already does for some other devices) — I personally agree. The firmware for this particular device was put into the repo, and this change makes Z2M look for updates in the default server and not in the IKEA server (the old URL, not the new URL). My understanding is that on long term, all firmware binaries for all devices will be put into the Z2M server and that is the only place that will be consulted when looking for OTAs. There will be some backend process somewhere scraping the known OTA servers for all devices and mirroring them in the Z2M OTA repository. |
As a data point, I switched to the current dev version (tag
This bodes very well for the December release. |
I thought so for mine as well, but I'm getting numbers that I find suspicious for my dryer and washing machine. I guess I will need to use a different meter in series to see if I get similar measurements or not. |
Coincidentally, I just finished a dishwasher cycle just now. The profile I see doesn't look fundamentally different from what you posted (also a non-Ikea plug): (I'm in North America: dishwashers typically connect to hot water, and power doesn't go much beyond 1500W. We have different, 240V plugs for high-power appliances such as dryers, so I can't measure that.) Looking again at my notes from when I tested the upgraded Inspelning plug, the values I got when using a kettle were, with a non-Ikea plug: {
"v":119.4,
"w":1420.2
} vs with the Ikea Inspelning (connected into the previous plug): {
"a": 12.12,
"v": 127.1,
"w": 1489
} So really in the same ballpark. I will probably keep an eye on values reported by different plugs to see if anything dubious happens. It is entirely possible that the European version of the Ikea plug, with its 240V 16A range, exhibits different bugs. |
December release when? 🤣 |
The voltage/wattage being incorrect has just been fixed in the latest release: https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.42.0 |
Which commit are you talking about? I checked the history for the IKEA device converter file and as far as I can see, the only unreleased change (before this latest release, I mean) is the OTA definition. |
Thank you for the work, my Z2M instance is now upgraded to latest 1.42 as HomeAssistant suggest, and OTA updates are suggested to my 4 Ikea smart plugs. Few minutes later it's done and the voltage issue has disappeared. Perfect! |
The OTA definition was the source of the issue :). This was actually fixed about a month ago just after the previous release, but given the monthly release cycle it took almost an entire month to make it to the main branch. See https://github.com/Koenkk/zigbee-herdsman-converters/releases/tag/v20.39.0 for the moment and commit of the fix. More precisely this PR Koenkk/zigbee-herdsman-converters#8248 (check the references issues/mentions) |
I'm aware. But since you mentioned "fixed by Z2M" I thought that there was another issue I was not aware of. Technically this one is fixed by the new firmware,not Z2M... |
This issue can be closed now, right? |
I have latest mqtt - update today morning. [2024-12-02 07:22:11] error: z2m: Failed to check if update available for 'Gniazdko_expressPhilips_kuchnia' (Device didn't respond to OTA request) EDIT: |
Nothing like that. But a jump of 20 kWh would be something like running ten
2kW kettles constantly for an hour.
What is actually attached to this plug? What does the reporting tab in
Z2M look like?
…On Sun, 8 Dec 2024, 18:20 moonfall84, ***@***.***> wrote:
Does anyone of you also have this type of problem, where suddenly a jump
in the value of the energy entity appears? after the update that fixed the
correct display of voltage, an error with a sudden increase in energy
occurred 2x.12E05721-BC8D-4D42-8E49-F16DCA62C678.jpeg (view on web)
<https://github.com/user-attachments/assets/f5136a09-1db8-414d-8fff-db03fb3ae5ce>
—
Reply to this email directly, view it on GitHub
<#23961 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH6B3O5ZHLROFZ7X3JMOU32ESEWTAVCNFSM6AAAAABOFYY63SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRWGMYDCNJQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes the numbers are wrong, it would be 20kW not 2kW for an hour to get
those energy values.
What does the reporting tab look like and what does the wattage data look
like for the same period?
…On Sun, 8 Dec 2024, 18:54 moonfall84, ***@***.***> wrote:
IT equipment is measured, so no possible to 2kW power ;)
Summary of co consumption looks very strange, like I was producing energy
by this IT servers, and then also used same value from the grid.
07/12/2024 - ok values
73343177-AAD1-4A63-A3AF-40B6C52736F6.jpeg (view on web)
<https://github.com/user-attachments/assets/da6003ac-b202-4833-97d1-88b6aeb534ed>
8EE10F32-1048-4F4A-ACCC-6D22AC6D50CB.jpeg (view on web)
<https://github.com/user-attachments/assets/e400d8a9-0ebd-45bc-a9a3-466a8c61d860>
08/12/2024 - wrong values
16D38EC6-C1F0-43E8-9DFA-C2CD8F979093.jpeg (view on web)
<https://github.com/user-attachments/assets/ad34c83e-e6ad-45ea-9bc5-4d862bef5499>
FB03DAF7-5D43-49FF-9AAB-FB31852A2D6B.jpeg (view on web)
<https://github.com/user-attachments/assets/0fe27e78-1850-4303-ae12-1493fd5f38e0>
—
Reply to this email directly, view it on GitHub
<#23961 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH6B3PH3VAIB5LFE6UDBGT2ESIW5AVCNFSM6AAAAABOFYY63SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRWGMZDMNRUGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Just added power chart above. |
If you go to dev console (in Z2M not HA) and put in endpoint: 1, cluster:
seMetering, attribute: divisor and click read, what does it say?
…On Sun, 8 Dec 2024, 19:03 moonfall84, ***@***.***> wrote:
Yes the numbers are wrong, it would be 20kW not 2kW for an hour to get
those energy values.
What does the reporting tab look like and what does the wattage data look
like for the same period?
On Sun, 8 Dec 2024, 18:54 moonfall84, *@*.***> wrote:
IT equipment is measured, so no possible to 2kW power ;)
Summary of co consumption looks very strange, like I was producing energy
by this IT servers, and then also used same value from the grid.
07/12/2024 - ok values
73343177-AAD1-4A63-A3AF-40B6C52736F6.jpeg (view on web)
https://github.com/user-attachments/assets/da6003ac-b202-4833-97d1-88b6aeb534ed
8EE10F32-1048-4F4A-ACCC-6D22AC6D50CB.jpeg (view on web)
https://github.com/user-attachments/assets/e400d8a9-0ebd-45bc-a9a3-466a8c61d860
08/12/2024 - wrong values
16D38EC6-C1F0-43E8-9DFA-C2CD8F979093.jpeg (view on web)
https://github.com/user-attachments/assets/ad34c83e-e6ad-45ea-9bc5-4d862bef5499
FB03DAF7-5D43-49FF-9AAB-FB31852A2D6B.jpeg (view on web)
https://github.com/user-attachments/assets/0fe27e78-1850-4303-ae12-1493fd5f38e0
—
Reply to this email directly, view it on GitHub
#23961 (comment)
<#23961 (comment)>
,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH6B3PH3VAIB5LFE6UDBGT2ESIW5AVCNFSM6AAAAABOFYY63SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRWGMZDMNRUGU
.
You are receiving this because you were mentioned.Message ID:
*@*.***>
Just added power chart above.
—
Reply to this email directly, view it on GitHub
<#23961 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH6B3NDFXVNPYGURGCI4HL2ESJY5AVCNFSM6AAAAABOFYY63SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRWGMZTCOJVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Link
US Version: https://www.ikea.com/us/en/p/inspelning-plug-smart-energy-monitor-90569846/
Dutch version: No ikea link yet, but buyable in the stores.. :)
Database entry
{"id":53,"type":"Router","ieeeAddr":"0xecf64cfffef2b718","nwkAddr":27855,"manufId":4476,"manufName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelId":"INSPELNING Smart plug","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[0,3,4,5,6,8,1794,2820,4096,64636,64645],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"INSPELNING Smart plug","manufacturerName":"IKEA of Sweden","powerSource":1,"zclVersion":8,"appVersion":2,"stackVersion":114,"hwVersion":1,"dateCode":"20240215","swBuildId":"2.4.34"}},"haElectricalMeasurement":{"attributes":{"acPowerDivisor":10,"acPowerMultiplier":1,"acCurrentDivisor":1000,"acCurrentMultiplier":1,"acVoltageDivisor":10,"acVoltageMultiplier":1,"activePower":0,"rmsCurrent":3,"rmsVoltage":236}},"seMetering":{"attributes":{"divisor":1000,"multiplier":1,"currentSummDelivered":[0,77]}},"genLevelCtrl":{"attributes":{"onLevel":255,"currentLevel":254}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0xb43522fffe12b3b4","endpointID":1},{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0xb43522fffe12b3b4","endpointID":1}],"configuredReportings":[{"cluster":2820,"attrId":1291,"minRepIntval":10,"maxRepIntval":65000,"repChange":50},{"cluster":2820,"attrId":1288,"minRepIntval":10,"maxRepIntval":65000,"repChange":50},{"cluster":2820,"attrId":1285,"minRepIntval":10,"maxRepIntval":65000,"repChange":50},{"cluster":1794,"attrId":0,"minRepIntval":10,"maxRepIntval":65000,"repChange":[0,100]}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":2,"stackVersion":114,"hwVersion":1,"dateCode":"20240215","swBuildId":"2.4.34","zclVersion":8,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1726245436588}
Zigbee2MQTT version
1.40.1
Comments
Just picked this plugs up at the Ikea in Amsterdam. They're quite new, no infopage on the Ikea site (NL)
I tried to follow the "How to add support" page, but.. well,.. to complicated for this noob :)
However I want to help so here is al the information I know.
Out of the box, in Z2M, a lot works already quite well. See the results below.
Extra;
Some Tweakers forum information (Dutch): https://gathering.tweakers.net/forum/list_message/80105532#80105532
External definition
What does/doesn't work with the external definition?
Out of the box in:
Configuration page (in HA) shows a Power-on behavior wich works as expected
The text was updated successfully, but these errors were encountered: