Steps to connect the AutoSleep status from your Apple Watch to your Homey user status. Then you can run automation flows based on whether you are awake or asleep.
- What do you need?
- Step 1: Prepare Homey
- Step 2: Prepare HomeKit
- Step 3: Create a virtual switch
- Step 4: Create scenes in HomeKit
- Step 5: Enable HomeKit in AutoSleep
- Step 6: Go to sleep
- Multiple users
What do you need?
- Homey Pro
- HomeKit router like Apple TV or HomePod
- Apple device like iPhone or Watch
- HomeKitty app on Homey
- AutoSleep app on your Apple Watch
Step 1: Prepare Homey
When you have gone through the basic setup Homey should be available in your network and connected to your Homey account and app.
- Go to Settings > Experiments
- Enable Virtual devices
- Go to Settings > Apps
- Install HomeKitty
- Go to the app
- Tap the settings cog icon
- Go to Advanced settings
- Toggle the devices you do or don’t want Homey to expose in HomeKit
Step 2: Prepare HomeKit
On your iPhone open the Home app
- Tap the
+
button - Add hub
- Find HomeKitty
- Enter the pairing code
11122333
Step 3: Create a virtual switch
First in the Homey app
- Tap the
+
button - Choose Virtual devices
- Choose Virtual switch
- Tap Continue
- Name: something like “HomeKit asleep”
Connect the switch to your Homey user
- Add a flow “HomeKit asleep”
- IF: device “HomeKit asleep” is on
- THEN: set user “Name” asleep
- Homey: Add a flow “HomeKit awake”
- IF: device “HomeKit asleep” is off
- THEN: set user “name” awake
Step 4: Create scenes in HomeKit
On your iPhone go to the Home app
- Create a scene named exactly AS Off
- Include “HomeKit asleep” device with on state
- Create a scene named exactly AS Done
- Include “HomeKit asleep” device with off state
Step 5: Enable HomeKit in AutoSleep
On your iPhone
- Open the AutoSleep app
- Tap Settings
- Tap HomeKit
- Enable HomeKit
On your Apple Watch
- Open the AutoSleep app
- Scroll to the bottom
- Enable the HomeKit toggle
Step 6: Go to sleep
Now to tell AutoSleep that you are going to sleep there are two options:
- Using the blue button with lamp icon.
- Or schedule an alarm and enable the Lights off toggle.
Both will run the AS Off scene. That will set the virtual switch to on and tell that to Homey. There the flow “HomeKit asleep” is triggered which will set your user status to sleeping.
When you wake up tap Done or the pink Sunrise button in AutoSleep. That will run the AS Done scene in HomeKit. Then the virtual switch will turn off and trigger Homey to run the “HomeKit awake” flow. Which will set your status to awake.

More detailed info in the manual >
From there you can have flows or conditions trigger on the sleep/awake events. In the AS
scenes you can include more devices, like turning all the lights off.
In my experience it is best to add the AutoSleep complication to your Watch face. That way the app will stay awake while you are asleep. 😉
Multiple users
AutoSleep does not let you specify the scene names, so it is not possible to distinguish users. However, you can repeat the steps with unique names for the virtual switches and flows. Then the users can hit the designated button in the Home app, lockscreen, control center, etc. to indicate their own sleep state.
Leave a Reply