How to use a Aqara Smart Plug SP-EUC10? [solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

How to use a Aqara Smart Plug SP-EUC10? [solved]

Post by peterbos »

Hi,

I have an Aqara Smart Plug SP-EUC10 that can measure electrical power and usage. The smart plug has three devices: the switch itself, a RFXMeter and a usage device. The RFXMeter holds the total usage in kWH since the plug was first used and per day. The usage devices gives the current power in Watts. I can't get the values from the RFXMeter and the usage device. Does anyone know how to do that?
And a second question: is it possible to reset the total usage to 0?

Peter
Last edited by peterbos on Friday 06 January 2023 16:44, edited 1 time in total.
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: How to use a Aqara Smart Plug SP-EUC10?

Post by waltervl »

The RFXMeter counter can be read with something like

Code: Select all

local KWh_total_counter = domoticz.devices('device name').counter
local KWh_counterToday = domoticz.devices('device name').counterToday
The Electric Usage device can be read with something like

Code: Select all

local Actual_Watt = domoticz.devices('device name').actualWatt
To reset a device is normally not possible. The only way probably is to delete it from menu setup - devices and have it recreated by the hardware gateway at restart of the gateway (click on update button) or by restarting domoticz completely.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: How to use a Aqara Smart Plug SP-EUC10?

Post by peterbos »

Thanks Walter!

It might be easier to store the value of the counter and the time when I start a new measurement. I can use a virtual switch for recording those values.

Peter
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest