Page 1 of 1
Delay deConz + domoticz
Posted: Sunday 13 October 2019 18:25
by czasas
Hello, is that normal that I have about 1,5 sec delay between pushing Xiaomi switch and turning on light ? I have conbee 2, working with domoticz. The same delay is when Im near conbee and when im in other room. What should I check to offsetting this delay? Thanks for help
Re: Delay deConz + domoticz
Posted: Sunday 13 October 2019 18:32
by Thorgal789
Perhaps, but I haven't so much.
There is a lib to speed up script, but for 1.5s ....
Have you tried directly with phoscon, without using domoticz ? If it works faster without domoticz, how are you using it ? LUA ? dzevent ?
Re: Delay deConz + domoticz
Posted: Sunday 13 October 2019 18:55
by czasas
What kind of lib?
Re: Delay deConz + domoticz
Posted: Sunday 13 October 2019 19:08
by Thorgal789
https://easydomoticz.com/forum/viewtopic.php?t=2575 you need to use google translate, Haven't find it in english)
But don't loose your time with it, it's just 1 switch with 1 bulb, even with the bad code possible, impossible taking 1.5s for the request. Perhaps one of the 2 devices is slow, you can try to turn on the bulb with domoticz, to see delay, but it will be hard to see a 0.75s delay ...
On my side, I would do tests with deconz only, if I still have the problem, delays are from devices, else it will be domoticz.
Re: Delay deConz + domoticz
Posted: Sunday 13 October 2019 19:14
by Thorgal789
I have made test on my side.
Code: Select all
2019-10-13 19:09:07.695 (deCONZ) ### WebSocket Data : {'e': 'changed', 'state': {'lastupdated': '2019-10-13T17:09:07', 'buttonevent': 1002}, 'uniqueid': '00:15:8d:00:02:f0:8c:12-01-0012', 't': 'event', 'id': '12', 'r': 'sensors'}
2019-10-13 19:09:07.858 (deCONZ) ### WebSocket Data : {'id': '4', 'e': 'changed', 't': 'event', 'r': 'groups', 'state': {'any_on': False, 'all_on': False}}
Unknow time : I have press a Xiaomi button
19:09:07.695 : domoticz receive the command
Then he manage them, send request to deconz
19:09:07.858 : deconz confirm the bulb change state
So idk how many time have take the manipulation to go from the moment I have press the buton to domoticz but to go from domoticz to deconz and return back it have take less than 300ms (with classic LUA)
Re: Delay deConz + domoticz
Posted: Sunday 13 October 2019 19:18
by czasas
Via domoticz app/web bulb is turning immediately and script is writing in dzvents , I have also cube and with this is the same problem, tomorrow i wilk check how IT looks in phoscon app
Re: Delay deConz + domoticz
Posted: Sunday 13 October 2019 19:25
by Thorgal789
So the delay is surely from Xiomi devices, my cube is realy slow too, but I haven't so much delay with switches.
Re: Delay deConz + domoticz
Posted: Sunday 13 October 2019 19:33
by czasas
I have also conbee near wifi router, mayby there are some inrerferences, is that possibile ?
Re: Delay deConz + domoticz
Posted: Monday 14 October 2019 16:37
by Thorgal789
Technicaly yes, but I don't think it is the problem (and you will have delay too for bulb). You can make a try with deconz only to check if the problem is from domoticz, but for me it will be same.
Xiaomy devices are realy lazy, I m almost sure the problem is from it, make a try with an ikea remote or another xiaomi device with better battery.