Turn Lights on?


#1

1) Give a description of the problem
Piston to turn lights to different levels depending on the time of day

2) What is the expected behavior?
(PUT YOUR INFO HERE)

3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage

Can someone let me know if this is the best way to do this, or is this completely wrong?


#2

If it works it works, there is no good or bad way :wink: Just do it the way you want.
Only thing im seeing is that you’re using the inactive of the motion twice.
Not sure what you’re planning to do there but it looks like it will just turn off the lights after 20 minutes.
Don’t know why you would add another one to wait 30 minutes because it will be switched off by then.


#3

Thanks.

The two different inactive are because depending on the ‘home status’ depends on how long I want it to wait before the lights go off.
Will that not work like that?
Should I split it into multiple pistons?


#4

It will work but it will always turn off after 20 minutes, not 30 minutes (depending if there wont be any motion). Some comments:


#5

Oh thanks that makes sense, so multiples will just cancel each other out?

If I wanted different times, should they be multiple pistons, or can it all be done in one?


#6

Will this do the correct job?


#7

Yep that will do it


#8

Thanks :slight_smile:


#9

Oh wait not totaly haha Because it can be possible there is still motion when it goes to the if statement for the timer.


#10

maybe consider using this for your rooms and stuff: Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy

But this piston should do it:


#11

Thanks for supplying this, although won’t this turn the light off regardless of movement in the room?

What about using some sort of Only When for the checking for no motion, like an only when motion is inactive for 30 minutes? Or is it maybe better to have two pistons one for the ON and one for OFF


#12

Oh yea sorry, i will look at it tomorrow :wink:


#13

I think this should do it:


#14

That works perfectly, thank you :slight_smile: