Piston design assistance


#1

Hi
I am hoping someone can advise or point me in the right direction.
Basically what I would like to do is creaet a piston around two dates
and then have certain lights come on a certain times to replicate someone being home.
so example would be living room light on a t 6pm and off at 10pm
colour light to flash different colours ( option) randomly
bathroom lights to follow living room
then bedroom lights etc
then have a choice of light come on again during the night

Does anyone know if this has been done? I have seen apps for random lights on a 30 min times, I just don’t think this meets my requirement.


#2

Here is a snippet from one that I have that has my En Suite Light turn on when my upstairs hall light turns on when we are away. (If that makes sense). :slight_smile:
TCP should be ‘never’ BTW. Missed that.

image


#3

This turns my porch light on and off between certain times.
Just amend the times accordingly. Maybe sunset to 22:00.
What I would do would be to change the wait to wait randomly. You can then put in-
Wait Randomly between 5 and 30 minutes. This way it doesn’t look like the lights are going off at exactly the same time every evening.

image


#4

This turns on and off my upstairs hall light when we are away at random times and for a random interval.
Ignore the ‘only when’ switch 6 and switch 7. These allow me to test or turn off my away mode lights.


#5

Thanks everyone for the input
enough to start fleshing something out.

rather than rely on “away” mode as i have a system that monitors for this
that apparently i cant tie into smart things ( uk version of digital ilfe)
and knowing either me or my wife will forget to set this, hence i was looking to try and input the dates/times

apologies, but really appreciate the input so far


#6

Think I might be getting somewhere, do you think this might work, I could join a few together regarding other light groups


#7

well, that didn’t work


#8

Ok… maybe its just me … but lets keep it simple get rid of all the date cruft for testing … just do simply

(pseudocode inbound )
If Its 5pm and I am Away
With Living Room Left & Living Room Right
do
Whatever you want to do
Else
Turn off
End iff

see if that works @ 5pm then get crazier ?


#9

cant use $currentEventDate. instead use this if condition and change to your date and times: