DIY Apple AirPrint/Play & Homekit on Rasperry Pi
Our HomePi was originally cobbled together to integrate older/non-complaint devices into the world of Apple AirPlay/Print. The little gizmo has evolved over time as devices change in/out around the house and now supports Apple HomeKit to integrate non-compliant 'smart' devices.
The HomePi has worked like a champ for years. This recipe is basically a retrace of my steps for future rebuilds, but may be useful to others.
Migrated to new site spring 2021 - original site/recipe @
HomePi: Apple Air Print/Play & Homekit Services
Original: May 2017
Last Update: Nov 2020 (Much Easier!)
Background & Capabilities
Many of the techno problems around our home tend to revolve around integrating older equipment with modern devices or attempting to deal with the deluge of new 'smart' devices, each with its own App or interface. Our 'vintage' stereo and network printer were prime examples of the old world - simply not iPhone/iPad compatible in terms of streaming music or printing.
On the other end of the spectrum, we seemed to be constantly fumbling with a variety of apps provided with our newfangled smart home (lights, switches, appliances, etc) - Waaay too complicated!
The Raspberry Pi was originally dropped onto our network to fill the Air Gap by emulating Apple AirPlay and AirPrint services and ultimately added HomeKit services so Siri could begin helping out around the house.
HomePi V1 (2014): Raspberry Pi 1 Model B used to integrate an old network printer into the Apple AirPrint world (Cups).
HomePi V2 (2015): Added AirPlay services (Shareport-sync) services to allow iPads/iPhones to stream music to Bose Wave Radio.
HomePi V3 (2018): Homekit services (homebridge) added to pull together our 'smart' home. Integrates non-compliant smart devices into Apple Homekit world. V3 also involved simplified OS (DietPi) and RPi 3 Model B hardware.
Home Pi V4 (2020): V4 involved an OS (Buster) upgrade and more simplification. AirPrint services were dropped due to new network printer that no longer needed help.
Level of Difficulty & Prep Time
A cheap, easy and fun little project - no programming required but Raspberry Pi/Linux knowledge will come in handy. 1-2 hours to get things installed and running.
Our current HomePi hardware profile:
*Affiliate Links - Please note: I may get a kickback from Amazon!
Dietpi is now used for the HomePi foundation. It provides a lite version Raspbian and includes a library of optimized Pi software packages.
Step By Step
Notes to self on OS Prep (DietPi IS Raspbian) and some handy optimized packages ...
Our old printer finally passed away, so HomePi no longer provides AirPrint services, but here's the original raspbian recipe ... Last used on Stretch (cups 2.2.1) but it should be close, CUPS is pretty solid and common. Install/setup takes ~30 Mins. Here's the original guide, it may be updated for Buster and beyond.
Install avahi - required for network discovery
sudo apt-get install avahi-discover
HomeBridge is still not part of DietPi software library ... manual install required, but it's a LOT easier than it used to be!
This will still take some time, count on an hour with minimal plugin playtime!
Homepage/info @ homebridge.io, github.com/homebridge/homebridge & Raspberry Pi specifics @ .../wiki/Install-Homebridge-on-Raspbian
Touch-ups & Tweaks
Spring 2022 Update Notes
Spring cleaning during the winter ... some leftover HomePi updates. Should be good for a long while!
DietPi update from 7.5.2 to 8.1.2 ... no issues. Just let dietpi-update do it's thing!
Homebridge update v1.3.6 to 1.4.0 ... no issues
HomebridgeUi update from v4.41.2 to 4.42
Homebridge Deebotecovacs update from v1.4.6 to 1.4.7 ... hmmm some odd chatter during update
Homebridge-hue update from v0.13.22 to v013.36
plugin recommends running on Node.js v16.13.2 or later ... Easy enough:
From Homebridge "How to Update Node.js" article, did one of these: hb-service update-node
Homebridge Nest update from v4.6.3 to 4.6.4
Homebridge Platform Wemo v3.3.1 - Replace with Homebridge-wemo v4.7.0
Platform Wemo was deprecated/replaced quite a while ago but w/out auto migration. Just hadn't taken time to deal w/ ramifications of automations and such - some old/original smart-stuff here
Step-by-step based on info @ https://www.npmjs.com/package/homebridge-platform-wemo
Backup Homebridge (... Backup/Restore)
Saved a copy of json from HB Config editor (not much there)
Disabled current Wemo-Platform Plugin and restarted HB
Uninstalled Wemo-Platform Plugin
Installed homebridge-wemo Plugin and accepted config as presented (json looked just like old)
Had to move Wemo stuff to correct room assignments and re-setup Automations ... not too bad
Homebridge Bravia Tvos - v5.0.1 to v5.0.8
Homebridge Nest - v4.5.4 to v4.6.4
Homebridge Smartthings - v2.3.8
Fall 2021 Update Notes
Loooong time since last update
DietPi update from 7.0.x to 7.5.2 ... with one little bump in the road ...
Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
To fix, did one of these:
apt-get update --allow-releaseinfo-change
... Then let dietpi-update do it's thing. All else seemed well
Homebridge now v1.3.4
Some of the Homebridge Plugins were complaining about needing Node.js v14.17.2 or later ...
From Homebridge "How to Update Node.js" article, did one of these:
HomebridgeUi - no issues going to v4.41.2
Homebridge-hue - no issues during update, now v0.13.22
Homebridge-platform-wemo - project apparently moved to homebridge-wemo, but will change some other time. No update issues, now v3.3.1
Homebridge Bravia Tvos (not used) - v5.0.1
Homebridge Nest - v4.5.4
Homebridge Smartthings - v2.3.8