How to make HomeKit work for you automatically with scenes and automations

Posted:
in General Discussion edited October 2020
Yes, you can use your iPhone to turn on your bedroom light. But you could also have that light turn itself on at your bedtime -- and only in the winter, only when you're in the house. There is so much that HomeKit can do for you automatically, it just takes some planning.




You've decided HomeKit is right for you, got bought these smart devices like bulbs, door locks, thermostats -- and so far they haven't done anything.

True, you've been able to switch them on and off from your iPhone instead of at their switches, but you've spent a lot of money just to let yourself be lazy once in a while. The real value of having HomeKit comes when you let it do the work for you.

Take a moment to set it up, and HomeKit will become part of your life. Faster than you can imagine possible, you will forget where your light switches are. Instead, you'll just unthinkingly accept that lights switch themselves on wherever you go.

You can also get HomeKit to do multiple things and do them only under certain conditions. So when you unlock that front door, for instance, you could have all the downstairs lights switch on and the heater in the den start to warm up -- but only if you've come home after sunset and the temperature is low.






Whether it's a single light turning on, multiple devices throughout your house, or even a Siri Shortcut, there are always two elements you need to decide on. There's how you start it running, called the trigger, and there's what it does, called the action. When there are many actions, it's called a scene.

And when the trigger involves something more like the time of day or who is in the house, then it's full-on automation.

Make a scene

Say your bathroom is big enough that it has a couple of lights in it. The most basic thing you can do is open the Home app, find the first light and switch it on. Then you can find the second light and tap to turn that on as well.

Or you can make a scene. In the Home app, make sure you're on either the Home or the Rooms tab, and tap on the plus sign at top right. Choose Add Scene.

Give this new scene a name like "Bathroom Lights," and then app on Add or Remove Accessories.

You can define Scenes, which let you have one setting that controls many different devices at once
You can define Scenes, which let you have one setting that controls many different devices at once


In theory, this gets you a list of all the HomeKit devices in your home and in practice it's only nearly all. There are certain devices that won't appear on the list because they can't be controlled through a scene in the Home app. The most glaringly annoying one of these is HomePod.

For everything that can be added, though, there is a tile icon and they are arranged by the rooms you've got the devices in. Tap once on an icon to select it and you'll see a tick added. Now press Done and you go back to editing the scene.

It will now have the smart devices or accessories listed, but as yet they may not do anything. If the tile is white, then this device will switch on whenever you run the scene. If it's gray, it won't. Tap any gray tile to turn it white and vice versa.

Often, though, you want rather more than just on or off. You want some finer control such as a scene for the early mornings when you do want the kitchen light to come on, but not so brightly that it gives you a headache.

Press and hold on the tile and you'll get some options for it. With the bulb example, for instance, pressing that tile long enough turns the screen into a giant slider where you can set the brightness level to whatever you want.

There may then be another button at the bottom of the screen, though. It might just say Settings, but it's more likely to be specific about one particular type of setting. If that bulb of yours is one that can change color, for instance, then right under the brightness slider there will be a button marked Color.

Adjust the color, set the brightness, or choose anything that the particular device can do, then just tap anywhere on the screen away from the controls.

You add devices to your Scene and can also specify details such as how bright a light should be
You add devices to your Scene and can also specify details such as how bright a light should be


You'll return to editing the scene and can now do the same with every device you've added.

If this seems a bit fiddly, that's because it is. Apple has tried to make each part of this easy by being big and obvious. Rather than a menu item, you get a large tile. Rather than being able to type in a brightness you want, you get the entire iPhone screen turned over to an enormous slider.

That's no bad thing when you're starting out or when you're showing family how to use this. It's quite a bad thing when you're deep into it and you have to scroll the whole Home app just to get to the tile you want.

It's worth some fiddling to get set up, though, because thereafter, everything's easier. Rather than even tapping two buttons in Home to switch on those bathroom lights, you now just tap a button you've made called "Bathroom Lights" and they both switch on together.

Or you tap your "I've Just Got Home" button and the garage door unlocks, the heat turns on, the porch lights up. All from one button.

It's an amazing thing when you see it. And yet, it's not enough. Not when there's so much more that can be done for you automatically.

Automation rules

Say you have that "I've Just Got Home" button. Rather than pressing it, you could trigger it in another way.

This Home app knows the state of every HomeKit device in your house. That's whether it's on or off, how bright the light is, what temperature the thermostat is detecting, and whether the doors are locked or not. Change any of that, and you can set automation running.

So say you walk up to your front door and tap your entry code into the HomeKit front door lock's control panel. The door opens, but you can have the Home app do all the lights, heaters and so on. All triggered by your opening the door.

Open the Home app and tap on the Automation tab. Then tap the plus sign at top right to start creating a new automated scene.

You have five different possible triggers. One is just whenever anything changes on a device -- you unlock the door, for example. The others are to do with when it's a particular time of day, which can be as specific as 13:41 on Tuesdays, or it can be sunset on any weekend day.

Our favorite feature. Set up a scene that only runs at certain times and when you're actually at home
Our favorite feature. Set up a scene that only runs at certain times and when you're actually at home


Then there's when a sensor detects something. You can get HomeKit motion sensors such as ones that Phillips sells alongside its Hue lights, and you can just place those inside a room. There are also temperature ones and security cameras can react when they detect certain things such as motion.

The best and simultaneously worst trigger options are two that are to do with when people come to your house or leave. What's brilliant is that you could do all this triggering of an "I've Just Got Home" scene without doing anything at all. Just walk up to your house with your iPhone in your pocket and Home will do the rest.

That's superb, and so long as you don't lose your phone, it's also great when you come home carrying a lot of shopping and the front door unlocks for you automatically.

That's hard to beat. Only, it would be easy to make it substantially better. For when we say you can do this and you can have HomeKit trigger automation for you, we really do mean you. Specifically you.

When you're setting this up, the Home app describes the trigger as being when Anyone Arrives or Anyone Leaves, but it's just not true. It's when one person comes or goes and usually that's you.

It works through detecting where your iPhone is and when it's on your Wi-Fi network. You can set it so that it's detecting someone else's iPhone instead, but that's your only choice. You or your partner can be the one whose presence triggers all this, it can't be both of you. Not yet, anyway.

Nicely, though, you don't have to have this location-based trigger be based on when you get home or leave again. You can have it set to monitor any location. So you could set it so that when you leave work and begin that long commute, a smart plug at home could switch on the slow cooker in your kitchen.

Right now, the Home app is designed to let you do these things -- but not much more. However, HomeKit itself is capable of much finer automatic control than Apple provides.

The $14.99 third-party iOS app, Home 3, is significantly more powerful in how it lets you set up many, many conditions so that the light comes on when you're home but the garage door is locked, the heater is off and you've just thrown salt over your shoulder.

Go slightly further

If you only want to turn your bedroom light on, you can just press the button in the Home app. Or you can ask Siri to turn it on. You don't have to bother with scenes and automation.

When you want more than one thing to happen, like turning on several lights, then you can use scenes and again tap a button or ask Siri.

Then when you want all of this to just get on with it, when you want the lights in your home office to be on after sunset Mondays through Thursdays and not when you're away, that's when you use automation.

There is one more thing you can do, though, and it's promising but currently very limited. You can create Siri Shortcuts to take advantage of HomeKit.

Siri Shortcuts includes an option called Run Home Scene and that's exactly what it does. That and nothing else. You can switch a scene on but you can't even switch it off. Instead, you need an 'on' scene and an 'off' scene. Then you can tell Siri Shortcuts to run the on or the off scene.

It would be so good to be able to have finer control over HomeKit devices within Siri Shortcuts, but at least you can include this Run Home Scene command in a longer shortcut.

We wish you could get finer HomeKit control in Siri Shortcuts. But here it is included in a workflow for when you're leaving the office
We wish you could get finer HomeKit control in Siri Shortcuts. But here it is included in a workflow for when you're leaving the office


You could write a Shortcut so that when you tap one button, it calculates your drive time home, then texts a partner to say when you'll be back, and then runs the HomeKit scene that switches on the heater in your den.

It's useful enough that it makes you want more, but then that's possibly a decent description of the entire HomeKit idea. Even though you still need to plan ahead, even though you need experience and even though it's oddly hard to pick out compatible devices, HomeKit is somehow still a marvel. And you will want more and more devices once you start.



Keep up with AppleInsider by downloading the AppleInsider app for iOS, and follow us on YouTube, Twitter @appleinsider and Facebook for live, late-breaking coverage. You can also check out our official Instagram account for exclusive photos.

Comments

  • Reply 1 of 12
    mike1mike1 Posts: 3,442member
    How do all of the location-based features described when somebody else actually lives in the house?
    cornchip
  • Reply 2 of 12
    mistergsfmistergsf Posts: 244member
    I'm not really into Automations and used to simple Routines instead. I've tried Automations before using "specific times" but it got too messy and confusing because you can't rename them to something easily identifiable. My list ends up like this: "7:00 PM, Daily, 2 accessories", "9:30 PM, Daily, 2 accessories". To make it worse, you have to make separate "turn on" and "turn off" routines. I mean, "Automations". Unless I'm doing it wrong, it's not very user friendly.
    edited May 2019 stompy
  • Reply 3 of 12
    thewbthewb Posts: 80member
    The part about the automation rule applying to only one specific person (yourself) arriving is incorrect.

    My Home app is setup with two users (tap the little house icon in the upper left to get to the screen where you can invite other people to control your home, and note that each invited user has two toggle settings to allow them to control things when they are not present in your home (maybe a bad idea) and to allow them to edit your setup (almost definitely a bad idea), so configure these at your discretion when inviting people who don't live with you).

    When making a new rule, the When People Arrive options allow me to choose one or more users. If I select only one then the wording is "When ____ arrives", but if I select both users then the wording changes to "When Anyone Arrives". There is also a "When The First Person Arrives" option which triggers the rule only when no other users are already at home.

    There are further conditions which can be added to the trigger, such as only during the day or night or a specific range of time, and you can also change the location in question. You can have rules that trigger when arriving or leaving any specific location and not necessarily your home, for example I have a rule to change the thermostat when I depart work in the afternoon rather than when I get home, so that my HVAC has more of a head start on reaching the target temperature by the time I arrive.
    cornchipmatt1coreylolliverwatto_cobra
  • Reply 4 of 12
    ivanhivanh Posts: 597member
    mike1 said:
    How do all of the location-based features described when somebody else actually lives in the house?
    Time of sunrise and sunset change the Color of lightbulbs, for instance.
    watto_cobra
  • Reply 5 of 12
    cornchipcornchip Posts: 1,954member
    You or your partner can be the one whose presence triggers all this, it can't be both of you. Not yet, anyway.

    Im not bothering investing in any HomeKit junk until this problem is solved. We’re not all single code-monkeys Apple!

    EDIT: Unless what @thewb says is correct.
    edited May 2019
  • Reply 6 of 12
    ivanhivanh Posts: 597member
    The only “smart” devices I have with Apple HomeKit are a few Philips Hue lightbulbs. I don’t find Apple Home, Apple TV Hub and Siri together useful if I don’t declare the idea a failure.

    But once I added a Google Home Hub and gradually a few Google Home Mini speakers in the “public” areas at home (but not private places like bedrooms due to security concerns), I couldn’t wait to add some smart plugs, more smart lightings, smart speakers, motion sensors, Comcast Ultra. I don’t even need to touch my phone anymore because Google Assistant is there. I could play Netflix, YouTube on any connected devices like TV and speakers at volume I specified at will, dimmed the strength of certain lights, change the humidity, turn on /off heater in another room, etc. then I forgot Apple HomeKit was there. 
  • Reply 7 of 12
    thewb said:
    The part about the automation rule applying to only one specific person (yourself) arriving is incorrect.

    My Home app is setup with two users (tap the little house icon in the upper left to get to the screen where you can invite other people to control your home, and note that each invited user has two toggle settings to allow them to control things when they are not present in your home (maybe a bad idea) and to allow them to edit your setup (almost definitely a bad idea), so configure these at your discretion when inviting people who don't live with you).

    When making a new rule, the When People Arrive options allow me to choose one or more users. If I select only one then the wording is "When ____ arrives", but if I select both users then the wording changes to "When Anyone Arrives". There is also a "When The First Person Arrives" option which triggers the rule only when no other users are already at home.

    There are further conditions which can be added to the trigger, such as only during the day or night or a specific range of time, and you can also change the location in question. You can have rules that trigger when arriving or leaving any specific location and not necessarily your home, for example I have a rule to change the thermostat when I depart work in the afternoon rather than when I get home, so that my HVAC has more of a head start on reaching the target temperature by the time I arrive.
    This is correct - while it's true that the HomeKit API is far more feature-rich than Apple's Home app would lead one to believe, this can be done in Apple's Home app, and is actually the default behavior, if you have multiple people in your home -- I can confirm after having used it with my family for the last few years.  If you're seeing different behavior, it might be that one of the devices in your home is misconfigured, or needs their Geolocation config reset -- https://homemadeautomation.wordpress.com/2019/03/21/homekit-location-troubleshooting/ might be able to help.
    cornchipcornchiplolliverwatto_cobra
  • Reply 8 of 12
    Love this -- as suggested, the HomeKit system itself is super powerful, possibly the best on the market -- the problem is that you'd never know if you just used Apple's Home app.  The Eve app and Controller for HomeKit are both great options as well -- you can use them in combination with the Home app to do some cool stuff, including changing the brightness and/or color of any HomeKit compatible bulb, based on the time of day:  https://homemadeautomation.wordpress.com/2019/03/17/make-any-dimmable-homekit-light-follow-the-sun/
    cornchipwatto_cobra
  • Reply 9 of 12
    cornchipcornchip Posts: 1,954member
    Great news, thanks guys!
    matt1corey
  • Reply 10 of 12
    LordeHawkLordeHawk Posts: 168member
    ivanh said:
    The only “smart” devices I have with Apple HomeKit are a few Philips Hue lightbulbs. I don’t find Apple Home, Apple TV Hub and Siri together useful if I don’t declare the idea a failure.

    But once I added a Google Home Hub and gradually a few Google Home Mini speakers in the “public” areas at home (but not private places like bedrooms due to security concerns), I couldn’t wait to add some smart plugs, more smart lightings, smart speakers, motion sensors, Comcast Ultra. I don’t even need to touch my phone anymore because Google Assistant is there. I could play Netflix, YouTube on any connected devices like TV and speakers at volume I specified at will, dimmed the strength of certain lights, change the humidity, turn on /off heater in another room, etc. then I forgot Apple HomeKit was there. 
    I do the same things with HomeKit and never pick up my phone either.  Except I use Apple Music, not YouTube and I usually watch movies not Netflix or Comcast.  There was one time I had to ask Siri to open my garage when I was at work, but I just used my Apple Watch.
    cornchipwatto_cobra
  • Reply 11 of 12
    JC CraftsmanJC Craftsman Posts: 4unconfirmed, member
    Having three locations now on HomeKit. The scene automations and scripts in HomeKit are great with one HUGE limitation. You cannot backup any of your fine creations. And worse it can be expected your HomeKit will get reset or wiped out for no apparent reason, and despite opening up Apple support tickets you will find you are completely out of luck and without recourse. Added 71 devices 20 scenes, and multiple other features are gone, just gone, look it up it’s — frequent and ugly. It’s now happened to me five times over two years, different configurations different devices, variables, and locations.

    Imagine all of the work one has done for a scripted database, or the configuration of a network or a router being wiped out. Well you will probably say that hasn’t and won’t happen because of your backups. Excellent. But none of your safety net applies to HomeKit, hard to believe Apple would do this. I’ve spent probably 20 hours over the past year with Apple support. They can’t solve it, as there is no backup — so when resets goes to default what could they do?

    The solution? Now I simply use the native app (Lutron or Hue or such) to set up the Scripts outside of HomeKit. I have  found all the apps that work with HomeKit devices allow script creation the same way HomeKit does -  it’s not in one place of course.  But none of those individual apps have wiped out my configurations. Use HomeKit on top of those if you wish as I do, and HomeKit only as a temperamental convenience.

    I can’t speak to Alexa or Google the versions because I don’t use those and they’re not an option for me given their privacy issues,

    Why does this reset happen to HomeKit ?  Sometimes the wipeout seems to surround a HomePod but most the time it seems to be caused when the Apple TV overrules the existing HomeKit configuration to send it back to default. . But we never ever count on your hard work in a HomeKit configuration being there tomorrow. When I’ve reported this before some apple fans freak out with misplaced anger at the messenger  - but instead call Apple and demand they fix the problem or at least allow us to back our HomeKit work up, now!
    watto_cobra
  • Reply 12 of 12
    CheeseFreezeCheeseFreeze Posts: 1,344member
    A node-based editor where you can add conditions and branches based on those conditions would make more sense I feel.
    You’d select a node to edit its parameters.
     
    e.g complex interactions like if my wife is home but not me (and integration with the concept of ‘family accounts’ Apple already has) would work much better with nodes.

    Lastly, full scenes and automations from users would be great to pick from a ‘user marketplace’ to avoid reinventing the wheel. 

    edited May 2019
Sign In or Register to comment.