App guides
Automate Locks and Climate Around Your Sleep
WakeUp 2day can lock your door when you fall asleep and set the heating or air conditioning when your alarm rings. It works with Nuki, Home Assistant, Apple Home and Homey locks, and with LG ThinQ, Home Assistant, Apple Home and Homey climate devices. These automations are part of WakeUp Pro.
Key takeaways
- Locks: Nuki, Home Assistant, Apple Home and Homey. Climate: LG ThinQ, Home Assistant, Apple Home and Homey.
- Fall Asleep, Wake Up and Timer events run actions around your sleep; alarms can carry their own.
- Lock and climate automations need WakeUp Pro.
- Apple Home actions run only while WakeUp is open; use a Home app automation for anything else.
- Automate locking freely, but think carefully before automating an unlock.
What lock and climate automations do
Instead of getting up to check the door or reaching for the thermostat, you tie those actions to your sleep. Three events drive them:
- Fall Asleep: runs when sleep tracking detects that you have fallen asleep, for example to lock the door or turn the AC off.
- Wake Up: runs when an alarm rings, for alarms that have no automations of their own, for example to set a comfortable temperature.
- Timer: runs a delayed action, a set time after you start sleep tracking.
Each alarm can also carry its own climate and lock actions, and schedules handle anything that should happen at a fixed time. It suits people who sleep best in a cool room but hate getting up in a cold one, and anyone who lies in bed wondering whether the door is locked. For the temperature side, see the best bedroom temperature for sleep.
What you need
| System | Locks | Climate | What WakeUp asks for |
|---|---|---|---|
| Nuki | Yes | No | An API token from the Nuki Web portal |
| LG ThinQ | No | Yes | A Personal Access Token from LG’s developer portal, and your country |
| Home Assistant | Yes | Yes | Your Home Assistant URL and a long-lived access token |
| Homey | Yes | Yes | Homey’s local address and an API key, entered under Smart Lights |
| Apple Home | Yes | Yes | Permission to access your Home data |
You also need WakeUp Pro, and sleep tracking on nights you use Fall Asleep or Timer; see tracking your sleep with just an iPhone. Home Assistant and Apple Home are controlled on your local network, while Nuki, LG ThinQ and Homey may use their own cloud services.
How to set up locks and climate
- Go to Settings > Smart Home > Smart Locks or Climate Control and turn it on.
- Under Lock System or Climate System, choose your system and connect:
- Nuki: paste your API Token from Nuki Web and tap Connect.
- LG ThinQ: paste your Personal Access Token, select your Country and tap Connect.
- Home Assistant: enter your URL and token, or reuse the connection you made under Smart Lights.
- Homey: connect it under Smart Lights first; Smart Locks and Climate Control share that connection.
- Apple Home: tap Connect to Apple Home and allow Home access.
- Select the devices to control. Leave the selection empty to control all connected devices.
- Turn on the events you want (Fall Asleep, Wake Up, Timer) and tap Add Action under each. Lock actions are Lock or Unlock; climate actions are Turn On, Turn Off or Set Temperature. For Timer, choose the delay under After.
- For alarm-specific actions, open an alarm, go to Automations and turn on Climate Action or Lock Action. Add Action builds a sequence, and actions run in order.
- Use Lock Schedules and Climate Schedules for fixed times that have nothing to do with your alarms.
When do the actions actually run?
Where WakeUp is when the alarm goes off matters:
- WakeUp open on screen, for example while it tracks your sleep: actions run as the alarm rings.
- Alarm on the Lock Screen: climate actions run as you stop or snooze it. The Wake Up lock settings run only when the alarm rings in WakeUp, while an alarm’s own Lock Action runs either way.
- Apple Home: Apple Home doesn’t let apps control accessories in the background, so these actions run only while WakeUp is open. For anything that must happen while WakeUp is closed, create an automation in Apple’s Home app; your home hub runs it.
Tips
- Start with locking. Add a Lock action to Fall Asleep and leave mornings manual for the first week.
- Use Timer as a backup. If you sometimes lie awake for a long time, a Timer lock soon after you start tracking locks the door even before you fall asleep.
- Warm the room before you get up. Alarm actions start when the alarm rings, so if you want the room comfortable by then, add a Climate Schedule a little before your usual wake time.
- Check device selection. An empty selection controls every connected device, which may include a lock or AC unit in another room.
- Glance before sleep. The Smart Lock widget lets you check and control the lock from your Home Screen.
Troubleshooting
- “Invalid or expired token”: generate a new token in Nuki Web or LG’s portal and paste it again.
- Connected, but no locks or AC devices found: make sure the device is set up in its own app and account (an LG unit must be registered in the LG ThinQ app), then tap Refresh Devices.
- The app asks you to configure Homey in Smart Lights first: connect Homey under Settings > Smart Home > Smart Lights, then return.
- Fall Asleep did nothing: it needs sleep tracking that night, and runs once tracking detects that you are asleep.
- Apple Home devices did not respond: WakeUp was probably closed; see the Apple Home point above.
- A morning lock action did not run: the alarm rang on the Lock Screen and the action came from the Wake Up settings. Add it to the alarm itself.
Where to start tonight
Connect your lock or climate system, add one Lock action to Fall Asleep or one Set Temperature action to Wake Up, and start sleep tracking at bedtime. Check in the morning that it ran, then build from there. If you run Home Assistant, one connection covers lights, climate and locks; see using WakeUp 2day with Home Assistant. For a complete routine, read how to build a morning routine that starts with your alarm.
Frequently asked questions
Can my door lock automatically when I fall asleep?
Yes, if your lock works with Nuki, Home Assistant, Apple Home or Homey. In WakeUp 2day, connect it in Settings > Smart Home > Smart Locks and add a Lock action to the Fall Asleep event. It runs when sleep tracking detects that you are asleep, so start tracking when you go to bed. Lock automations need WakeUp Pro.
Can an alarm turn on the heating or air conditioning?
Yes. With LG ThinQ, Home Assistant, Apple Home or Homey connected, an alarm’s Climate Action can turn devices on or off or set a target temperature when it rings. Alarms without their own action use the Wake Up event in Climate Control. If the alarm rings on the Lock Screen, climate actions run as you stop or snooze it.
Is it safe to unlock the front door automatically in the morning?
It can be convenient, but an automatic unlock opens your door when the event fires, whether or not you are awake or even at home. Many people automate only the lock at night and unlock by hand. If you do automate it, tie it to one alarm you trust, check the lock’s status and keep the lock’s own security features on.
Why didn’t my Apple Home lock or thermostat respond?
Apple Home does not let apps control accessories in the background, so WakeUp’s Apple Home actions run only while WakeUp is open. Keep the app on screen overnight, for example by tracking your sleep, or create the automation in Apple’s Home app instead, where your home hub runs it even when WakeUp is closed.