Power consumption of the smart socket Xiaomi Zigbee

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
Domoticzfaq
Posts: 3
Joined: Monday 06 April 2020 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Russia
Contact:

Power consumption of the smart socket Xiaomi Zigbee

Post by Domoticzfaq »

Good time of day :geek: . Interested in solving the problem of updating the power consumption of the smart socket Xiaomi Zigbee. I have this socket involved in controlling the power consumption of the TV.

The logic is as follows: When the TV is turned on, the power consumption increases and the dzVents script starts a wi-fi relay that supplies power to the LED lights and music amplifier.

Problem: when you turn on the TV, the relay does not start immediately, since the readings are updated every 5 minutes.

Q: is there a way to reduce the time to survey the power consumption of the outlet? Or any other way out of the situation.
I have described the principle of operation on the site
HFman
Posts: 82
Joined: Thursday 02 March 2017 20:28
Target OS: Linux
Domoticz version: V4.1174
Location: Netherlands
Contact:

Re: Power consumption of the smart socket Xiaomi Zigbee

Post by HFman »

I have the opposite you propose.

Use the Xiaomi Zigbee plug to switch all ON (including TV)
I use a seperate zigbee knob to switch, TV, reciever, amplifier ON.
If the TV is switch OFF (the power consumtion goes below < 30 W, everything is switch off after 3 minutes.

Zigbee updates are MUCH faster than once every 5 minutes (30 sec.. ?)
You could make a Dzvents or Lua script on every "device change" or run "every 1 minute".
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
User avatar
Domoticzfaq
Posts: 3
Joined: Monday 06 April 2020 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Russia
Contact:

Re: Power consumption of the smart socket Xiaomi Zigbee

Post by Domoticzfaq »

I don't want to run the script once a minute. There will be an additional load on the system. And it will be of little use. You'll still have to wait. I would like to get an instant response, if possible.
HFman
Posts: 82
Joined: Thursday 02 March 2017 20:28
Target OS: Linux
Domoticz version: V4.1174
Location: Netherlands
Contact:

Re: Power consumption of the smart socket Xiaomi Zigbee

Post by HFman »

So then you do it like me.. 1 switch to swich on all at once (via zigbee). otherway is to do on device change normally this would respond in aprox 30 sec. (depending on how many zigbee appliance you have).
System load is extremly low, i have serveral of this scripts, and nominal load on my pi 3 is les then 5%.
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
User avatar
Domoticzfaq
Posts: 3
Joined: Monday 06 April 2020 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Russia
Contact:

Re: Power consumption of the smart socket Xiaomi Zigbee

Post by Domoticzfaq »

Does not work. The energy consumption graph is built every 5 minutes and updated every 5 minutes. In dzvents, how can I force an update to the power consumption of the outlet?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest