Page 1 of 1
Delay from motion sensor
Posted: Sunday 28 January 2018 23:18
by kilowat
Hello,
I am using Aeotec USB Z-wave dongle together with aeotec multisensor 6.
The issue is that looks like motion is detected quickly (green led on the sensor blinks momentally when I move) but on domoticz sensor value switches after 3-5 seconds. It makes it useless for me as I want to switch some light when there is any movement.
What can be the cause of this delay? Does it happen for other sensors ?
Wysłane z mojego SM-N910F przy użyciu Tapatalka
Re: Delay from motion sensor
Posted: Sunday 28 January 2018 23:22
by Siewert308SW
kilowat wrote: ↑Sunday 28 January 2018 23:18
Hello,
I am using Aeotec USB Z-wave dongle together with aeotec multisensor 6.
The issue is that looks like motion is detected quickly (green led on the sensor blinks momentally when I move) but on domoticz sensor value switches after 3-5 seconds. It makes it useless for me as I want to switch some light when there is any movement.
What can be the cause of this delay? Does it happen for other sensors ?
Wysłane z mojego SM-N910F przy użyciu Tapatalka
Did you try to trigger a light with a script already?
Ask this because if you look at webgui and take that as reference then it's correct it that it will take a while to update.
But thats the Webgui cache which has to be updated.
While if fact the light is already on.
Re: Delay from motion sensor
Posted: Monday 29 January 2018 6:08
by kilowat
Siewert308SW wrote:kilowat wrote: ↑Sunday 28 January 2018 23:18
Hello,
I am using Aeotec USB Z-wave dongle together with aeotec multisensor 6.
The issue is that looks like motion is detected quickly (green led on the sensor blinks momentally when I move) but on domoticz sensor value switches after 3-5 seconds. It makes it useless for me as I want to switch some light when there is any movement.
What can be the cause of this delay? Does it happen for other sensors ?
Wysłane z mojego SM-N910F przy użyciu Tapatalka
Did you try to trigger a light with a script already?
Ask this because if you look at webgui and take that as reference then it's correct it that it will take a while to update.
But thats the Webgui cache which has to be updated.
While if fact the light is already on.
I didn't check it yet. I was just looking into the logs and Web GUI.
Do you think there is some delay in the logs too?
I have to check it... Thank you
Wysłane z mojego SM-N910F przy użyciu Tapatalka
Re: Delay from motion sensor
Posted: Monday 29 January 2018 6:19
by Siewert308SW
Don't trust the update rate of the log and webgui.
That's just a bit out of sync, not a domoticz issue but more a refresh rate issue in browser.
You have to check with a script which will trigger a light when the sensor is triggered.
100% sure it will fire instant while log and webgui isn't updated yet.
Re: Delay from motion sensor
Posted: Monday 29 January 2018 6:55
by Egregius
Watch the logfile with tail -f -s 0.1 /var/log/domoticz.log, then you'll only have 0.1 seconds delay. The default tail delay is 1 second.
The Domoticz GUI has a 10 seconds delay, the GUI log view something about 2 seconds.
And of course, best test is switch a light on with the PIR. Should be switched on in less than 100 msecs, view the logfile to verify that.
2018-01-29 06:55:25.994 (ZWAVE) Light/Switch (pirkeuken)
2018-01-29 06:55:26.001 User: Admin initiated a switch command (11/keuken/On)
Re: Delay from motion sensor
Posted: Thursday 01 February 2018 16:50
by dws199
Hi
I'm experiencing something similar and seeing that the dzvents or lua script events are not starting until nearly 1 second after the event has occured. I'm using a Fibaro Multisensor (v3.2 version) and a Zwave.me Uzb on Windows 7 machine with the latest version of Domoticz. See pic below
- Domo1.png (24.46 KiB) Viewed 1832 times
There is also another issue with the Multisensor where the Burglar sensor is triggered with the PIR sensor but I've been unable to resolve this, seems that this is a common issue with the v3.2 version.
Any ideas how to reduce this latency? I heard that pass2php might be quicker but this looks difficult to setup on Windows.
Thanks
Re: Delay from motion sensor
Posted: Thursday 01 February 2018 19:54
by Egregius
30 seconds for response? OMG. Are you sure your scripts are set correctly?
Pass2php should be possible on Windows with something like XAMPP.