Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
atmfrenki
Posts: 25
Joined: Monday 17 April 2017 13:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by atmfrenki »

Hi,

I have several of these zigbee plugs ZNCZ04LM. I think they are great, EU version, small and power measurement capability.
I have them through Zigate connected on my Domoticz.

They work perfectly, on/off.
Also this plug can measure powerconsumption.
When adding the Power plug to Domoticz I also get the extra sensors, Watt and kWh.
However if there is a device connected to the plug the values do not change.

0 Watt and 0 kWh

So the power measurement is not working.
Does somebody have the same experiance or perhaps an explanation why the sensors are made/recognized in domoticz but do not function?
Is it because Zigate?
powerplug.png
powerplug.png (13.74 KiB) Viewed 2082 times
Thanks
Regards!
pipiche
Posts: 2005
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by pipiche »

Please do switch to latest beta , then remove all those widgets and redo the pairing


Envoyé de mon iPhone en utilisant Tapatalk
Last edited by pipiche on Friday 19 June 2020 8:48, edited 1 time in total.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
atmfrenki
Posts: 25
Joined: Monday 17 April 2017 13:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by atmfrenki »

Hi, thanks for the responce.

I have updated Domoticz to the latest Beta.
Removed the Zigbee device complete from Domoticz (the switch, kWh and Watt sensors, and some other devices related to the powerplug).
Then I have re-detected and re-paired the zigbee powerplug in the zigate pluginn, and added the devices in Domoticz.

No change i'm afraid, the counters in Watt and kWh remain 0.

What do you mean with
relive those widgets
Regards
pipiche
Posts: 2005
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by pipiche »

Please provide logs, this will help to understand , you can also follow this link https://github.com/pipiche38/Domoticz-Z ... -device.md and provide the export.json to get more information


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
atmfrenki
Posts: 25
Joined: Monday 17 April 2017 13:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by atmfrenki »

Hi

@pipiche

Thanks for the tip.
I will post my export.json

I now have 6 of these devices.
The device names in the export are:
-Beamer
-Ventilator
-TV Woonkamer
-TV Keuken
-Powerplug 5
-Powerplug 6
export.json.zip
(12.05 KiB) Downloaded 154 times
I als found the same question on another forum, with your reply on it:
https://easydomoticz.com/forum/viewtopi ... 7&start=10

This did not work out? (My french is not that good, and google translate sometimes makes it a puzzle to understand;-)

Thanks!
pipiche
Posts: 2005
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by pipiche »

Which version of the plugin are you ? (Branch stable or beta ) ? The version is displayed on the Plugin Webadmin (footer)

From what I see in the file you sent I don't think you were on the version able to fully handle the Plug.

So please do update to the latest stable version 4.9.004 or to the latest beta 4.10.

Then you have to remove all widget related to each devices ( Switch, 2 xPower/meter), so around 5 widgets per devices

Then with the latest version redo the pairing process and then you should get the 3 widgets ( Switch, Power, Meter) per device ad they will get updated.

If it is not happening, please do provide the log from pairing time
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
atmfrenki
Posts: 25
Joined: Monday 17 April 2017 13:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by atmfrenki »

@pipiche
So please do update to the latest stable version 4.9.004 or to the latest beta 4.10.

Perfect! Now it works, i was on 4.9.003 and now switched to the Beta Plugin: 4.10.003


Thanks for the support!!!
atmfrenki
Posts: 25
Joined: Monday 17 April 2017 13:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by atmfrenki »

@pipiche

Hi,

I'm running this powerplug now for a few days.
The sensors that measure Watt and kWh work fine in realtime values.
But in Month and Year I don't see the logs of the measurements in week, month, and year correctly.

-Especially kWH sensor shows only "DAYS" measurements, in week, month and year everything is 0.

-The Watt sensor shows a nice day measurement but the "Week" overview is missing (or is there no week supposed te be?), and in the month measurement it is a constant average, maybee that's correct and I should wait longer fort a better picture?

msedge_I40lCrdEog.png
msedge_I40lCrdEog.png (302.83 KiB) Viewed 1961 times
msedge_lyeHrC6Sen.png
msedge_lyeHrC6Sen.png (226.53 KiB) Viewed 1961 times
I'm running Domoticz Beta Version: Version: 2020.2 (build 12188)
I have 6 of these powerplugs running, they all show the same thing in Domoticz.

Can you help?

Thanks!!!!
User avatar
waltervl
Posts: 5715
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by waltervl »

This looks like standard behavior of Domoticz Power usage devices. It will show the min-max values in weeks and months overview being 0-55 every day in your case. Not much the plug-in can do about this.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2005
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by pipiche »

atmfrenki wrote: Saturday 27 June 2020 11:31 @pipiche

Hi,

I'm running this powerplug now for a few days.
The sensors that measure Watt and kWh work fine in realtime values.
But in Month and Year I don't see the logs of the measurements in week, month, and year correctly.

-Especially kWH sensor shows only "DAYS" measurements, in week, month and year everything is 0.

-The Watt sensor shows a nice day measurement but the "Week" overview is missing (or is there no week supposed te be?), and in the month measurement it is a constant average, maybee that's correct and I should wait longer fort a better picture?


msedge_I40lCrdEog.png

msedge_lyeHrC6Sen.png

I'm running Domoticz Beta Version: Version: 2020.2 (build 12188)
I have 6 of these powerplugs running, they all show the same thing in Domoticz.

Can you help?

Thanks!!!!

Could you kindly provide me an export of Plugin Device Raw (JSON) ? I don't know if that is normal or not, but would like to check if this behave accordingly to what is expected in the plugin.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
atmfrenki
Posts: 25
Joined: Monday 17 April 2017 13:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by atmfrenki »

But of course!
Thanks for the response.
export.zip
(14.42 KiB) Downloaded 40 times
Here is the file.
After 2 weeks I think the Watt sensor is OK. It shows (3) days, month and year statistics and they are being filled with data. I see these same kind of statisics logs (days. month, year) also in other Watt sensors from other devices.

The kWh sensor however is not completely filling with statistics.
Only the log for days is showing stats, the other columns are not filling with data.
In week, month and year all statistics are 0. (flatline)

Thanks again for taking the time!
Regards
domoticz.JPG
domoticz.JPG (44.17 KiB) Viewed 1850 times
pipiche
Posts: 2005
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Xiaomi Mi Smart Socket EU Plug ZNCZ04LM

Post by pipiche »

If you have the possibility to get the latest beta version, we are now able to retreive the summation from the device and in such the result is more accurate than just the Domoticz Compute mecanism
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest