Search found 15 matches

by robbert1977
Friday 29 May 2020 12:39
Forum: dzVents
Topic: Sunset in function [Solved]
Replies: 2
Views: 1166

Re: Sunset in function [Solved]

thnx that helps :)
Yes it definitely helps..
mine had a flaw that it only worked on whole numbers ..
could solve that easily with decimals checked but this is much easier :P
by robbert1977
Friday 29 May 2020 8:33
Forum: dzVents
Topic: Sunset in function [Solved]
Replies: 2
Views: 1166

Sunset in function [Solved]

Hi all, Just to check if there is an easier way. I have triggers (devices) and based on their state there are several different actions. One of them is if switch triggered and Lux < maxlux then postpone switching the lights till XX minutesAfterSunset. As far as I know the sunset time is in a ...
by robbert1977
Monday 25 May 2020 17:24
Forum: dzVents
Topic: switch and sensor combination [Solved]
Replies: 23
Views: 7711

Re: switch and sensor combination [Solved]

Final code with Lux and based on motion keep light on. In the code above if motion kept activated till end of timer the switch off command took place. Solved in this one by starting the counter after motion sensor goes in OFF state, if reactivated on motion counter reset till next OFF state No ...
by robbert1977
Sunday 24 May 2020 22:29
Forum: dzVents
Topic: switch and sensor combination [Solved]
Replies: 23
Views: 7711

Re: switch and sensor combination [Solved]

ur totally right dunno why it didn't work earlier..
by robbert1977
Sunday 24 May 2020 21:45
Forum: dzVents
Topic: switch and sensor combination [Solved]
Replies: 23
Views: 7711

Re: switch and sensor combination [Solved]

Maybe not the nicest way to trouble shoot but added lines with 000, 111 and 222 but helps me understand where I am :P if item == motion then if switch.state == 'On' and item.state == 'On' and dz.data.sensorTurnedOnLights then dz.log('00000000000000000000000000000000000000000: ',dz.LOG_DEBUG) switch ...
by robbert1977
Sunday 24 May 2020 21:43
Forum: dzVents
Topic: switch and sensor combination [Solved]
Replies: 23
Views: 7711

Re: switch and sensor combination [Solved]

Waaren, Thnx for your fast reply! Thnx for the tostring... nice searched long for that :) ok starting with a single motion, funny enough it starts with value Off: 2020-05-24 21:30:23.868 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 11 (0x0b) 2020-05 ...
by robbert1977
Sunday 24 May 2020 17:36
Forum: dzVents
Topic: switch and sensor combination [Solved]
Replies: 23
Views: 7711

Re: switch and sensor combination [Solved]

Hey all, I tried integrating above code into my (test) script. However the global data doesn't seem to work?! When I switch manually and then let activate the PIR the 60 seconds count down starts anyway... When I try to log the value of the sensorTurnedOnLights (see below) it ignores the total ...
by robbert1977
Tuesday 12 May 2020 16:11
Forum: Other questions and discussions
Topic: Every second 2 text lines from P1 smart meter in domoticz.log
Replies: 11
Views: 2901

Re: Every second 2 text lines from P1 smart meter in domoticz.log

Hi, Maybe not the ultimate solution but I tried the above rate solution and it worked for some time for me but setting the log argument to debug in domoticz.sh is working better for me as I only see what i want to see no updates of P1 anymore especially when I try to debug something.. If really ...
by robbert1977
Sunday 03 May 2020 23:46
Forum: Switches and Scenes
Topic: Neo coolcam light/motion pir
Replies: 2
Views: 671

Re: Neo coolcam light/motion pir

Hey Geitje, Thank you for your reply! Picture not showing... thats dissapointing :S Idea is that it's easier to just have an device activated on lux+motion instead of having a dzvent script running everytime there is motion and then see the lux is still to high. The parameters in the manual (see ...
by robbert1977
Sunday 03 May 2020 12:22
Forum: Switches and Scenes
Topic: Neo coolcam light/motion pir
Replies: 2
Views: 671

Neo coolcam light/motion pir

Hi, Quite new on Domoticz and testing and trying to learn :) I bought a Neo Coolcam Z-WAVE PLUS 2 Inclusion went fine, devices went fine, motion detection, lux parameter, temperature all ok. However when I read the manual if parameter 8 is enabled it should listen to parameter 5. (see pictures below ...
by robbert1977
Saturday 18 April 2020 23:51
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: sunset does not work
Replies: 7
Views: 599

Re: sunset does not work

ok so..

'on 1/1-1/5 at 23:50' works

'on 1/1-1/5 at 178 minutes after sunset' doesn't work

'at 188 minutes after sunset on 1/1-1/5' works

that's where I really went wron as time at the end works but sunset at the end doesn't

thanks for your time!
by robbert1977
Saturday 18 April 2020 23:45
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: sunset does not work
Replies: 7
Views: 599

Re: sunset does not work

actually on certain months for a certain amount of time:

'at 179 minutes after sunset',
'at 182 minutes after sunset on 1/1-1/5',
'on 1/1-1/5 at 178 minutes after sunset'

looking for the right syntax I guess :P
by robbert1977
Saturday 18 April 2020 23:27
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: sunset does not work
Replies: 7
Views: 599

Re: sunset does not work

It worked :P return { on = { timer = { 'on at nighttime every 2 minutes', 'at 163 minutes after sunset', 'at 164 minutes after sunset', 'at 165 minutes after sunset', 'at sunset', 'on 18/4 at 22:51', }, }, execute = function(domoticz, item) domoticz.log('sunset in minutes works: ' ..domoticz.time ...
by robbert1977
Saturday 18 April 2020 23:17
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: sunset does not work
Replies: 7
Views: 599

Re: sunset does not work

Hi, Thanks for your fast reply and help :P return { on = { timer = { 'on at nighttime every 2 minutes', -- WORKED (the on is ignored 'at nighttime every 1 minute', 'at 124 minutes after sunset', -- DIDN't WORK at 20:37 'at sunset', -- DIDN't WORK at 20:42 'on 18/4 at 22:51', -- WORKED }, }, execute ...
by robbert1977
Saturday 18 April 2020 22:20
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: sunset does not work
Replies: 7
Views: 599

sunset does not work

Hi all, Ok I tried my first easy lua script today for switching garden lights at sunset and switch them off a few hours after. When during testing I used a time it worked perfectly. When I us trigger 'at sunset' it doesn't work. If I use ' at nighttime' is does work. So for the ease I made a short ...