Delay deConz + domoticz
Moderator: leecollings
-
- Posts: 19
- Joined: Thursday 26 September 2019 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Delay deConz + domoticz
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
-
- Posts: 849
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Delay deConz + domoticz
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 ?
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 ?
-
- Posts: 19
- Joined: Thursday 26 September 2019 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Delay deConz + domoticz
What kind of lib?
-
- Posts: 849
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Delay deConz + domoticz
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.
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.
Last edited by Thorgal789 on Sunday 13 October 2019 19:17, edited 1 time in total.
-
- Posts: 849
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Delay deConz + domoticz
I have made test on my side.
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)
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}}
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)
-
- Posts: 19
- Joined: Thursday 26 September 2019 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Delay deConz + domoticz
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
-
- Posts: 849
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Delay deConz + domoticz
So the delay is surely from Xiomi devices, my cube is realy slow too, but I haven't so much delay with switches.
-
- Posts: 19
- Joined: Thursday 26 September 2019 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Delay deConz + domoticz
I have also conbee near wifi router, mayby there are some inrerferences, is that possibile ?
-
- Posts: 849
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Delay deConz + domoticz
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.
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.
Who is online
Users browsing this forum: Varazir and 1 guest