Delay from motion sensor

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
kilowat
Posts: 14
Joined: Monday 31 October 2016 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Delay from motion sensor

Post 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

User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Delay from motion sensor

Post 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.
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
kilowat
Posts: 14
Joined: Monday 31 October 2016 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Delay from motion sensor

Post 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

User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Delay from motion sensor

Post 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.
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Delay from motion sensor

Post 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)
dws199
Posts: 7
Joined: Sunday 17 January 2016 14:11
Target OS: Windows
Domoticz version:
Contact:

Re: Delay from motion sensor

Post 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
Domo1.png (24.46 KiB) Viewed 1828 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
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Delay from motion sensor

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests