Search found 3 matches

by heintjep
Monday 13 July 2020 9:54
Forum: dzVents
Topic: Switch garden lights with motion sensor and on time [Solved]
Replies: 7
Views: 2271

Re: Switch garden lights with motion sensor and on time [Solved]

Well,

See here the version that I managed to get going:


return {
on = {
devices = {
'PIR*'
},
},

logging =
{
level = domoticz.LOG_DEBUG,
-- level = domoticz.LOG_INFO,
marker = 'PIR',
},

execute = function(domoticz, pir)
domoticz.log('Device ' .. pir.name .. ' was changed to ...
by heintjep
Saturday 11 July 2020 20:27
Forum: dzVents
Topic: Switch garden lights with motion sensor and on time [Solved]
Replies: 7
Views: 2271

Re: Switch garden lights with motion sensor and on time [Solved]

Thanks! Now it works!
Next step is to trigger the script on all PIR sensors and switch the appropiate light...

Thanks again. See if i can figure that out.
by heintjep
Saturday 11 July 2020 19:27
Forum: dzVents
Topic: Switch garden lights with motion sensor and on time [Solved]
Replies: 7
Views: 2271

Re: Switch garden lights with motion sensor and on time [Solved]

Hi all,

I'm pretty new to dzVents scripting. I watched the video, searched the wiki and this forum, but I'm getting more and more frustrated, not getting a simple script with a PIR motion sensor to work. I'm not even so far to actually swith a light. I cannot detect in the script if the sensor is ...