November 09, 2024

Shelly devices as "native" Apple HomeKit accessories

Updated 2024-11-09

I have been using Shelly devices for quite some time both on our boat, off grid, and also as HomeKit (HK) accessories via Homebridge (HB)

I was really amazed when I found that some smart guys have created a software package that replaces the stock, official, Shelly firmware with the "Shelly-HomeKit" package which emulates a "native" Apple HomeKit accessory.

It's very nice done, really simple, and the flashing of the software is done over the air (OTA) with your ordinary WEB-browser.

Intro
Here is a list of supported devices and the Wiki.

How to
Update Shelly software
As said in the Wiki it's very important that you update the Shelly device to the latest software so my suggestion is that you connect the Shelly to your Wi-Fi and check for software updates.
Check out this blogpost and use the "WEB-server way". This way you don't even have to download the Shelly app.

Flash the Shelly device
Knowing the IP address of the Shelly you just apply it, in your WEB-browser, to this URL

http://nnn.nnn.nnn.nnn/ota?url=http://shelly.rojer.cloud/update

And then hit "Enter" which will give you something like 

{"status":"updating","has_update":false,"new_version":"20221027-091427/v1.12.1-ga9117d3","old_version":"20221027-091427/v1.12.1-ga9117d3","beta_version":"20230329-161525/v1.13.0-rc2-g1b3e5af"}

This example is flashing a Shelly 1. After a minute or so refresh the browser, with just the IP-adress, and you will see a new WEB-page with something like the picture above.

If the update don't work change to a URL that is specific to your model.
For my Shelly Plug S it was 

http://192.168.68.124/ota?url=http://rojer.me/files/shelly/shelly-homekit-ShellyPlugS.zip

Configure
Then go to "General settings" and follow the instructions.

Please note that with "HomeKit Settings" the manual isn't up to date. Instead you will see a page as shown to the right.

Click on "Setup" which will generate a new page with a QR code. Open your HK app and add the device, to your Home, scanning the QR code.

Easy wasn't it ?

So don't forget to DONATE ! to the current maintainer.

Remark
Please note that you have to upgrade to >= 2.13.1 via the newest stock software for Plus devices. 

8 comments:

  1. Hi, I like your work. Now I'm having trouble connecting Shelly through Home Assistant, where I was running the socket. I removed the original one with HA linking, it successfully disappeared from HK. (I tried it on Shelly Plug S (EU)).
    Replaced FW, loaded into HomeKit. All as per instructions, OK. The plug showed up in the HomeKit app on the iP, but it's in "No response" status... (Accessories not responding.)
    It's located about 2m from the Wi-Fi AP, I'm using a 64GB Apple TV, not 4K.
    I don't know how to proceed, any advice? Thank you, Majeroz0.

    ReplyDelete
    Replies
    1. HI ! If you in your browser use the Shellys IP adress, what happens ?

      Delete
    2. Hi, if I understand your question, I see your new FW interface for HomeKit where I can rename, setup and pair Shelly with HomeKit. Can I also send you the PrtScr...?

      Delete
    3. OK, nice. Did you use the QR code to add Shelly to HomeKit ?

      Delete
    4. Yes, and the pairing was successful with a positive result. But Shelly Plug S reports "No response" in the HomeKit app on the iPhone.
      When it was connected via Home Assistant, with the original FW, it was functional and turned on, off as needed. Thank you.

      Delete
    5. OK, strange because I did the same update with the same plug a month ago. Please create an issue at Github to get help from the developer.

      Delete
    6. Hi, thank you very much for your contact, I'll put a request on Github. Have a nice day.

      Delete

Feel free to leave a comment ! ... but due to a lot of spam comments I have to moderate them. Will reply ASAP !