Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Z-Wave Lamp Control
#1
Hi All,

I setup z-wave lamp triggers at 10% between 9pm and 8am for the hall, kitchen and lounge so that if we woke up in the night we could zombie around the house without being woken up by bright lights.

I would like to advance this a bit. Examples,

1, If I get up in the middle of the night say 2am - 6am and go in to the lounge and crash out I don\'t want the lamp to come on after the first detection on the PIR. Also I don\'t want it to come on at a greater level than 10%.

However, if it is early evening say 9pm - 10pm and early morning say 7am - 8am I would like the lamp to come on at 10% after >3 PIR detections (so that the lamp is not coming on after every slight movement), but increase to 50% and then even 100% after greater number of detections.

I would also like to override the timer that turns the lamps off after 3 minutes after a PIR detection. Don\'t know if this could be done using the control menu?

I want to do something very similar in the kitchen and hall maybe at different times and under different levels of detection, but basically the same.

I have included my response for the lounge so you can see the approach I have been taking with counter, but if anyone has a better idea please share. What I am finding with my code is when the lamp has increased in brightness to say 50% and there is another PIR detection it drops to 10% and then immediately increases to 50% giving a irritating flash as it switches between levels.

Regards

Lee


PS Happy New Year All.
 

 

 



Attached Files Thumbnail(s)
   
Reply

#2
There is an error in your IF condition

If Hours >= 22 OR Hours <= 23

This is always true no matter what time it is

If Hours >= 22 AND Hours <= 23 makes more sense, but this means it is true from 9:00PM to 10:59 PM

To be true between 9PM to 9:59PM you should use
If Hours =22

Lamp goes to 50% and dims immediatelely to 10% and 50%
Your logic causes the lounge lamp to go to 10% after 5 counts and 50% after 8 counts.
However since the counter has not been reset, the next PIR trigger will cause the counter to go to 9 and the lamp will dim to 10% again as the count is still more than 5

I am sure you can figure out how to correct these logical problems


Also I cannot see the purpose of do null response after 600 seconds using Unbypass Lounge, as it does nothing except start the timer, unless you are testing UnbypassLounge Timer somewhere

Reply

#3
Hi All,

I am just doing a bit of recapping arround and / or commands and I dropped on to this post. I think its a typo but not sure.

Is this statment correct? If Hours >= 22 AND Hours <= 23 makes more sense, but this means it is true from 9:00PM to 10:59 PM

If so why does 22 = (9pm)?

Sorry I am still fault finding my z-wave commands and just double checking everything.

Cheers

Lee

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.