Skip to content

Should HomeKit devices be before or after the “if” condition?

Should HomeKit devices be before or after the “if” condition?

Should HomeKit devices be before or after the if condition

I’m trying to set up some automation. I’m home. But do I think that the control devices must be in the “if” condition? But it seems that if I put them on top, it shows the small vertical line to connect them together? Looks like I’m missing something simple here.

Basically, at 7 in the morning, I want to turn on a light switch if it’s off, otherwise a scene is running. Looks good?

https://imgur.com/a/r0NVajl