I want to make a piston that turns on a light if my presence changes to present and a door is opened.
Presence should be the first evaluation and then the door contact. I tried using And-If but it didn’t work. I thought about using Then-If but I don’t have the option of selecting “changes to” for the door contact.
I would think I’d want when presence changes to present and if contact changes to open then turn on light. Or if presence changes to present then if contact changes to open then turn on light.
These conditions don’t happen at the same time. I’m coming home, parking then coming in the door. I’d rather not be bound by a time span between presence and contact.
I do have a smart lighting app that turns on my outside lights when I come home. So when I used the “And-If” piston I knew the system knew I was home but the lights didn’t turn on when the door opened.
Thanks for the help.