Page 1 of 1

Power consumption of the smart socket Xiaomi Zigbee

Posted: Monday 06 April 2020 10:51
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

Re: Power consumption of the smart socket Xiaomi Zigbee

Posted: Tuesday 14 April 2020 21:18
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".

Re: Power consumption of the smart socket Xiaomi Zigbee

Posted: Thursday 16 April 2020 20:00
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.

Re: Power consumption of the smart socket Xiaomi Zigbee

Posted: Friday 17 April 2020 17:58
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%.

Re: Power consumption of the smart socket Xiaomi Zigbee

Posted: Friday 08 May 2020 21:30
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?