So here is the deal ..
I bought a Third Reality Multi-Function Night Light < LOVE IT.
I would like to make a rule that will tell the nightlight to do different colors for different things.
At Night / Bed time Color of nightlight is orange. Using LUX ?
When garage doors open = red
When front door open = blue
when all doors garage and front closed = green
Problem is need it to check all options using motion ?
So it always shows ANY of the 4 options at ANY given time ?
So if its red and the front door opens it turns blue but garage doors still open
so after front door closes it should go back to red .. once garage doors close it turns to green
You'll need a fifth state to capture when both front and garage doors are open. With that said, it is possible to condense this down to two rules. First you need a rule to define the default state of the nightlight when both doors are closed based on Lux.
Basically if the doors are closed, your night light will be Green if Lux is above 10 and Orange if it is below 10. It has a Required Expression of the PB being True is which is used in your door open rule. This prevents a Lux reading from over-riding your doors.
It sets the Lux rule's PB to false preventing it from running during this rule. Then, it sets the color based on three states: Both doors open, front door open only, and garage door open only. From there, it waits for one of the doors to close and then re-checks the two door states and sets the light according to whichever door might still be open. If both doors are closed, it sets the Lux rule's PB to True allowing it to run again and it additionally runs that rule's actions. This last step will set the nightlight to either Orange or Green depending on the Lux value.
Edit: I noticed an error in my sample. The Wait for Event says open when it should say closed.
These all are great ideas .. I am way to stupid to make them work I guess.
1st tried room lighting like suggested. ( Got Lost right away lol )
2nd Rule machine also ( got lost trying that )
I will Venmo some $$ if someone can make this work and save the file / export it.
to a google drive .. so i can download it then import it to the hub !!!!