Help with shortcuts for scripts - Automatic lights

Cupertino, November 21, 2021

I recently started transferring from google / alexa products to homekit and now i have connected all the lights to homekit. I have a motion sensor at the top of the stairs and a door sensor on the door at the bottom of the stairs. What I wanted to do was that when the door sensor is triggered first and then the motion sensor at the top, all the lights will come on. However, when the motion sensor is detected first and then the door sensor, the lights will go out. So, basically, I wanted to know how to do it, so that when I enter the room the lights come on and when I go out to go out. I tried to mess with all the scripts in the shortcut app, but I couldn't figure it out. I was wondering if anyone here could have a better idea of ​​how to do this or even if it was possible. Thanks 🙂

Best selling & Top trending HomeKit product in our shop at this moment

HomeKit.Blog is in no way affiliated with or endorsed by Apple Inc. or Apple related subsidiaries.

All images, videos and logos are the copyright of the respective rights holders, and this website does not claim ownership or copyright of the aforementioned.

All information about products mentioned on this site has been collected in good faith. However, the information relating to them, may not be 100% accurate, as we only rely on the information we are able to gather from the companies themselves or the resellers who stock these products, and therefore cannot be held responsible for any inaccuracies arising from the aforementioned sources, or any subsequent changes that are made that we have not been made aware of.

HomeKit.Blog Is A Participant In The Amazon Services LLC Associates Program, An Affiliate Advertising Program Designed To Provide A Means For Sites To Earn Advertising Fees By Advertising And Linking To Amazon Store (, Or,,, Or

The opinions expressed on this website by our contributors do not necessarily represent the views of the website owners. 

Copyright © 2022 HomeKit Blog
. All rights reserved
United States