I am having this automation:
- action:
- service: switch.turn_on
alias: Auto-Licht Arbeitszimmer
condition:
- after: '16:00'
before: 08:00
condition: time
id: '1519110895398'
trigger:
- entity_id: sensor.fibaro_system_fgms001zw5_motion_sensor_burglar_3
from: '0'
platform: state
to: '8'
Its meant to turn on a desk lamp via fibaro’s z-wave wallplug as soon as there is motion detected with fibaro’s z-wave motion sensor.
Basically it works, however the response time is somewhere between 2 and 10 seconds, sometimes it even does not trigger at all and the lamp remains dark.
I enabled the LED indicator on the motion sensor and I can see it reacting quickly each time. I already bumped sensitivity to max and number of pulses to 1 (down from 2) in the motion sensor z-wave options, otherwise the trigger would be even more unreliable/slow.
Also in the HA log everything seems to happen between 1-2 seconds (from motion state change to switch trigger), however I haven’t checked in detail the logs for cases where there is no action at all, or really long reaction times.
So is this purely a z-wave latency issue? Is there some way to speed it up? My appartment is rather small, with a layout maybe like this:
_____--__________--______
|m T | T |
| | |
| P | |
| | |
| |
| | |
____--___|_____ ____|___________|
| T | m| |
| pi| |
| | |___________|
| | | |
| | |
| |___________|
| |
|__________m|_T_______|
(m = fibaro motion sensor, T = fibaro thermostat, P = fibaro wall plug, pi = USB z-wave controller)
I haven’t checked the z-wave network signal strength on the devices yet, however I hoped that it would be good as the appartment is only 72m².
The USB controller is plugged into a raspberry pi model B. There seems to be no load on the device:
top - 11:26:58 up 1 day, 3:20, 1 user, load average: 0.08, 0.07, 0.08
Tasks: 106 total, 1 running, 105 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.3 us, 4.3 sy, 0.0 ni, 91.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 434.113 total, 14.793 free, 177.504 used, 241.816 buff/cache
MiB Swap: 887.996 total, 884.617 free, 3.379 used. 239.434 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
235 pi 25 5 179.0m 94.9m 21.2m S 0.0 21.9 5:09.69 node-red
369 homeass+ 20 0 139.2m 53.4m 12.1m S 1.0 12.3 38:24.69 hass
In the past I have those ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
errors approx every 15 minutes, but since I disabled the discovery service in HA those went away. So I can see nothing in HA logs what would indicate any errors.