Adding Ikea Frytur shades to Apple Home

This is a quick tutorial on how I added Ikea’s Frytur smart shades to Apple Home (p.k.a Apple HomeKit) using Homebridge.

These are the items I used to make this work:

Having a working Homebridge implementation was very helpful as I didn’t have to setup another device and could just focus on getting the shades to work.

  1. Install and setup the Ikea Frytur shades
  2. Pair the remote with the shades and make sure they work
  3. Plug in the ConBee II to the Raspberry Pi via USB
  4. Install deCONZ software on the Raspberry Pi
    1. Connect to Raspberry Pi over SSH
    2. Set user USB access rights
      sudo gpasswd -a $USER dialout
    3. Import Phoscon public key
      wget -O - http://phoscon.de/apt/deconz.pub.key | sudo apt-key add -
    4. Configure APT repo for deCONZ
      sudo sh -c "echo 'deb http://phoscon.de/apt/deconz $(lsb_release -cs) main' > /etc/apt/sources.list.d/deconz.list"
    5. Update APT package list
      sudo apt update
    6. Install deCONZ
      sudo apt install deconz
    7. Reboot
      sudo restart -r now
  5. Once the Raspberry Pi is back online, connect to it via VNC
  6. Menu > Programming > deCONZ
  7. Go to the IP address of your Raspberry Pi from a web browser to access the Phoscon web app, the default port is 80
    http://<your-ip-here>/
  8. Follow the Phoscon setup instructions until you are able to access the ConBee II gateway
  9. Go to Devices > Lights under the hamburger menu
  10. Click on Add new lights
  11. On your Ikea shades, quickly press both front button simultaneously to put them in pairing mode
  12. After a few moments they will show up and be recognized in the Phoscon web app
  13. Login to Homebridge and click on Plugins and search for “Hue”
  14. Install the plugin named Homebridge Hue
  15. Configure the plugin with a name and address of the ConBee II, use localhost if your ConBee is plugged into your Homebridge device
  16. Restart Homebridge and your blinds will show up in Apple Home

Smarter Home 2022: Smart Lock

nest x yale smart lock

Recently I made a change to my daily driving vehicle, read about it here. My new vehicle doesn’t allow me to park inside my integrated garage which changes how I enter/exit my house. Previously, after parking in the garage, I could enter the house through the interior door to go inside. Now, I have to park out in the weather and go through my front door. Because of this change, I had to take a long hard look at the current smart lock on my front door.

When moving into my current house I purchased a smart lock that was the best available at the time. The Yale Assure SL had all the bells and whistles including HomeKit integration (via August), touch keypad, guest accounts, no key access, etc. Since then, I’ve had nothing but troubles with this lock which mostly was how fast the batteries would drain. The 4 AA batteries lasted between 7 and 21 days and more times than not, the door would be unlocked with dead batteries. When I was only parking in the garage, and not entering/exiting through the front door, this really didn’t impact me. At one point about year ago, I contacted Yale about the battery draining issue, and they sent me a new lock. The replacement lock didn’t help the issue and I was back to always having dead batteries.

Frustrated by this and using the front door more than ever, I set out to fix the problem. The latest and greatest technology for smart locks involves a new wireless standard called Thread but also a way to a better way unlock the door with your phone called Apple home key. The only available lock with this technology is the Schlage Encode Plus. Of course this lock cannot be found in stock anywhere and is not available to order (it’s also ugly). I needed a solution I could implement now and not wait for something to be manufactured.

I decided I would try a similar lock to the Yale Assure SL but had Google/Nest as the integration/backend. I went to my local Best Buy and picked up the Nest x Yale – Smart Lock with Nest Connect. The install and most of the parts were similar to my outgoing Yale lock so that made install a breeze. Setting up the lock in the Nest app was very easy and I was up and running within minutes, unlike the August implementation.

Door sensor with custom 3D printer bumper.

A couple of missing features that I was accustomed to on my previous lock were auto-unlock and a door sensor to detect if the the actual door was ajar or not. The August integration of the previous lock used your phone’s GPS to determine when you left or arrived your home, then lock or unlock your door. The idea behind this was great, but regularly failed. When the lock had battery power, upon arriving home, my door wouldn’t be unlocked. Due to the nature of Bluetooth and WiFi, my phone would also struggle to unlock the door, standing directly outside of it. That being stated, I was motivated to get these two features back, in another way.

The door sensor was pretty easy. I already have an Aqara Zigbee hub on my network so I can easily add their cheap sensors. I purchased a Aqara Door & Window Sensor and added it to my network and Apple Home. The sensor has two parts, one that goes on the moving object, in this case the front door, and the other piece goes on the static object, the interior wall. When the two pieces get close enough for a magnetic attraction, the sensor detects that it is closed. Upon installing the two sides on my door, I realized the door-side sensor was too far from the other sensor when closed. After a couple hours, I designed a 3D printed extension for the sensor, and now it lines up perfectly.

Next I had to tackle the auto-unlock feature. The Nest lock does have an auto-lock function, but it’s only time based. Once the door is unlocked, it will auto-lock in 15 minutes, or a preset time duration of your choosing. It doesn’t know if the door is open or closed, so if you leave the door open, it will still lock.

Previous to getting this lock, I purchased a Starling Home Hub that smartly integrates (almost) all Nest products into Apple Homekit. This is a much better solution than running a Nest plugin in Homebridge, plus you get a few extra features. When I added the new lock to my Nest account Starling Home automatically added it to Apple Home and I was able to control it immediately. This led me to using Apple Home and Apple Shortcuts to achieve my auto locking and unlocking goals.

First, I had to setup a plugin in Homebridge to allow me to have a dummy switch (read about why here). After that, I setup another dummy-type switch in Homebridge that triggers on a set time duration. This allowed me to constantly check if the door was open or closed, then act on it. All of this is done in Apple’s Home app with their built-in automation. It allows you to trigger actions based on your phone’s location, which is perfect for when I leave or arrive at home.

Name: ”AutoUnlock”
{
     Condition: ”When I arrive home”,
     Action: ”Trigger $DummySwitch”
}
Name: ”DummySwitch”
{
     Condition: ”When $DummySwitch turns on”,
     Action: ”Unlock $FrontDoor”
}

This unlocks my front door when my phone detects that I’m within range of my house. This usually happens as I’m pulling into the driveway.

Name: ”AutoLock”
{
     Condition: ”When I leave home”,
     Action: ”Trigger $DoorChecker”
}
Name: ”DoorChecker”
{
     Condition: ”When DoorChecker turns on”,
     Action: ”Run Shortcut”
          {
               If ($DoorSensor = ‘Closed’) {
                    Lock $FrontDoor
               }
     }
}

This locks my door when my phone detects that I’m out of range of my house. The DoorChecker automation also checks if the door is open/closed. If it’s open, it will not lock the door. In addition to when I leave my house, the DoorChecker automation runs every 15 minutes to ensure my door is always locked when closed.

Check out my other Smarter Home posts!