May 01, 2023

HomeKit bridge with Shelly/Shelly 1

Updated 2023-05-01 !

I really recommend flashing, via WEB-browser, the device with Mongoose software to avoid Homebridge.
 
HomeBridge is used for this setup and to make it appear in the Apple Home app.

The main advantage with the Shelly devices are that they are WiFi enabled and therefore You don't have to use a hub, this compared to z-way/zigbee and some other solutions. 

First install Shelly1(S1).


Installing HomeBridge plugin

Log on to the RPi, with Homebridge installed, and in a terminal/ssh session install the plugin.


npm install -g homebridge-shelly

Or use the nice install method via the UX interface and then edit the settings or manually check out the plugin help.

Checking the log "cat /var/log/syslog" I found

2020-05-05 19:35:40 [Shelly] 0 accessories loaded from cache
2020-05-05 19:35:40 [Shelly] Failed to launch the admin server: listen EADDRINUSE: address already in use :::8181

The plugin has, by default, an administration page at 

http://<IP-ADDRESS>:8181/

but in my case it was already occupied with NodeRed so changing the port, to 8085, solved the problem.

"platforms": [
{
"platform": "Shelly",
"admin": {
"enabled": true,
            "port": 8085
           }
}
]

Power up the S1, restart the HomeBridge server and it will autodetect the S1.
In the log


2020-05-05 20:53:40 [Shelly] New device discovered: SHSW-1 XX at 192.168.1.92

Check the result in Your Home app and use the Shelly device as an ordinary HomeKit device.

No comments:

Post a Comment

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