Using TP-Link HS-100 smart plugs with HomeKit

I got some of these TP-Link wifi smart plugs on Amazon (US version / EU version), primarily to try out their Amazon Alexa integration. They work well enough and thanks to their terrible security, I was also able to rig up a Raspberry Pi script to control them with Amazon Dash buttons.

But since my wife and I both have iPhones, i was also keen to see if I could get them to work with HomeKit.

Enter Homebridge: it’s an open-source platform that uses NodeJS and lets you add unsupported devices to HomeKit. You run Homebridge on a Raspberry Pi (or Mac or other suitable server on your local network) and it appears as an accessory bridge in the Home app: