Zigate - Aqara Smart Plug power measurement problem

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

Moderator: leecollings

Post Reply
deve87
Posts: 45
Joined: Saturday 08 April 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Zigate - Aqara Smart Plug power measurement problem

Post by deve87 »

Hi.

Domoticz: 2023.1 (build 15255)
Zigate USB firmware: 3.23
Zigate plugin: 4.11.017

After paring, I got 3 devices:
- Light/Switch
- Power
- Power with kWh

Power do not update until enabling "pollingLumiPower" in plugin.
kWh is OK, but power is one decimal off.
Domoticz device: 6573W actual 657,3W
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by pipiche »

deve87 wrote: Wednesday 07 June 2023 22:19 Hi.

Domoticz: 2023.1 (build 15255)
Zigate USB firmware: 3.23
Zigate plugin: 4.11.017

After paring, I got 3 devices:
- Light/Switch
- Power
- Power with kWh

Power do not update until enabling "pollingLumiPower" in plugin.
kWh is OK, but power is one decimal off.
Domoticz device: 6573W actual 657,3W
please open and issue here https://github.com/zigbeefordomoticz/Do ... .md&title= and kindly provide the requested informations.

Thanks
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
deve87
Posts: 45
Joined: Saturday 08 April 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by deve87 »

Will do

Thank you
WouterO
Posts: 62
Joined: Sunday 14 May 2023 19:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by WouterO »

Latest stable Domotics 2024.4 / Z4D plugin 7.1.008 / RPi 4 Bullseye
I'm even less successful as deve87: I connected the Aqara Smart Plug (lumi.plug.maeu01) on a Conbee II (and as test also on a Sonoff E). Pairing is successful: Switch, energy and power are listed as new devices. The switch functions fine, but the power / energy reading stays at 0 all the time, irrespective of the load connected to the plug.

In the first post, deve87 suggests to enable the power update in the plugin. I do not know where/how to do that.

Can you help me enabling the power/energy reading in the Aqara Smart Plug?
Thanks!
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by pipiche »

can you share logs ? as well as the List of Devices RAW ?
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
WouterO
Posts: 62
Joined: Sunday 14 May 2023 19:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by WouterO »

Thanks for your very fast reply. Attached are the files, I hope these are the correct ones.
So, the Smart Plug is paired successfully, as 3 devices, but energy and power stay zero all the time.
Attachments
export.json.txt
(7.03 KiB) Downloaded 75 times
errors.json.txt
(169.85 KiB) Downloaded 71 times
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by pipiche »

can you please drop this file under the

Code: Select all

Conf/Local-Devices
folder ?

You'll have to unzip it.
lumi.plug.maeu01.json.zip
(1.34 KiB) Downloaded 61 times

then you restart the plugin,
you enable Pairing debug parameter

and you redo the pairing from scratch (make sure that the device is fully removed - no widgets in domoticz and nothing in plugin device management WebUI)
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
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by pipiche »

would be great if you can tell me where did you buy it ?
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
WouterO
Posts: 62
Joined: Sunday 14 May 2023 19:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by WouterO »

Hi pipiche
I did what you asked. I now got 4 (instead of 3) new devices after re-pairing. One is the switch on/off (is fine). And there is a new device 'power' which according to me correctly displays the consumed power. Thank you!

I hope I attached the correct files for you (I don't know where to enable the Pairing debug parameter).

I bought the Aqara smart plug in a shop that is near me (Elektramat https://www.elektramat.nl/aqara-smart-plug-eu-sp-euc01/ ), but you can get these quite popular smart plug in many webshops here in The Netherlands.

Thank you once more for your fast and reply. The power now is correctly displayed. Domoticz can probably display the energy by integrating the power over time.
Attachments
export.json (2).txt
(7.4 KiB) Downloaded 67 times
errors.json (2).txt
(328.27 KiB) Downloaded 58 times
WouterO
Posts: 62
Joined: Sunday 14 May 2023 19:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by WouterO »

I forgot to tell you: the two other devices (‘current’ and ‘electric’) still stay zero all the time. But I am happy that the new device now correctly displays the power in Watt.
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by pipiche »

I have some fundings available and so purchase one (will always find a usage ;-) I'll fiune tune the integration when receiving the product.

I guess indeed the device do no provide Current. I was expecting some other information, but looks like the device do not report it.

In between you can keep it like that.
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
WouterO
Posts: 62
Joined: Sunday 14 May 2023 19:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by WouterO »

Great, thanks. I can now play with the 'power' as reported by the Smart Plug and hope to update later to the fine-tuned version of your Z4D plugin. Thanks again.
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by pipiche »

Hi just pushed an update of the config file [4.224] which would required to on a specific plugin branch until I release it

you can simply do :

Code: Select all

git pull
git checkout wip-stable7.1.009
sudo python3 -m pip install -r requirements.txt --upgrade
Unfortunatly you'll have to redo a pairing and remove the existing widget created.(removing the plug from Domoticz and the plugin)

You'll get the following widget information on top of the Switch On/off
Screenshot 2024-02-22 at 22.12.44.png
Screenshot 2024-02-22 at 22.12.44.png (174.04 KiB) Viewed 1601 times
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
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by pipiche »

I'll keep you posted when releasing 7.1.009

And make sure also to remove the previous config file from Conf/Local-Devices otherwise the plugin will always take that one
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
WouterO
Posts: 62
Joined: Sunday 14 May 2023 19:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by WouterO »

Dear pipiche,
Thank you! I just did everything you mentioned in your post. I tried it on my test-system. And now I can switch on/off, read the power and also read the voltage and current. Great job!
I’ll wait until the next release for installing this in my “production” domoticz system. Thanks!
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate - Aqara Smart Plug power measurement problem

Post by pipiche »

FYI we have release 7.1.009, to switch

Code: Select all

git checkout stable7
git pull
sudo python3 -m pip install -r requirements.txt --upgrade
And then restart 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest