i have some (etiger es-d1a) motion sensors, wich are recognized by rfxcom/domoticz as a x10 motion sensor.
Now, i just want to turn on a light (when it is DARK, so after the sun is down) for some minutes with it.
1) it does turn on the (dummy) light, but it doesnt turn it off
2) i try things with blocky, but thats also not working at all.
3) wich script do i need to use, and specially how did i do?
i have try to find it out in the wiki, but i dunno how to use that script/xyz..
"-- ~/domoticz/scripts/lua/script_device_pirs.lua
-- Each of the motion sensors in Domoticz follow this name convention:
-- PIRxyzSwitchName or PIRxyzGroupName
-- x speicifies when the PIR controls - a=all day, n=nighttime, d=daytime, s=Dummy switch set in Domoticz which
-- has to be on for the PIR to operate - Dummy-SwitchName or Dummy-GroupName
-- custom-timers can be set by creating a timed dummy switch in Domoticz
-- y specifies what the PIR is controlling - r = room (single Domoticz) switch and g = group
-- z specifies how long the ligth will stay on for in minutes, so z =5 turns the switch or the group on for 5 minutes
-- N.B. be carefully as currently there is little error checking so wrongly named PIRs in Domoticz may cause an error
-- N.B. one wrongly named PIR may stop the script, check log for any issues"
How to setup this lua?
I have 3 motion sensors, wich are seen by domoticz, and also 3 (dummy) switches to test with.
Thanks!
Barry