openwrt-node-packages icon indicating copy to clipboard operation
openwrt-node-packages copied to clipboard

Homebridge

Open ANARHIST1984 opened this issue 3 years ago • 7 comments

I compile Homebridge and install to the router, but in apple home app I didnt found device to add in to Homekit. I saw one solution. Need to install Avahi and it has to be configured. But I haven't succeed. Spend few days on this( Next, I try use docker image and have same problem, bonjour/mdns dosnt work. But Homebrige start and work After I install Homebridge 1.2.4 from OpenWrt repo and its work fine! I can see "device" in home kit app. Nest, when I open this https://github.com/openwrt/packages/tree/38f01ad2c9738c6c5a5dbda85019bb9cf5bc10f8/lang/node-homebridge and I saw, this makefile made by you! What different between "official" package and openwrt-node-packages/node-homebridge? BTW I use node and node-npm from this repo for start node-homebridge

ANARHIST1984 avatar Jan 10 '22 20:01 ANARHIST1984

@ANARHIST1984

I saw one solution. Need to install Avahi and it has to be configured.

There are several mDNS packages available for OpenWrt. It is up to the user to decide which one to choose. (umdns / avahi-dbus-daemon / mdnsresponder)

I think this thread will help you to figure out how to solve the mDNS related problem. https://github.com/nxhack/openwrt-node-packages/issues/526

The version is different from the official OpenWrt community package. Please give me feedback if you can identify the problem.

nxhack avatar Jan 11 '22 04:01 nxhack

Update HB from this repo, HB have internet and check updates working fine, but not working mdns install HB from OWRT repo, always have check updates! mdns working

ANARHIST1984 avatar Jan 11 '22 09:01 ANARHIST1984

Update "mdns": { "interface": "192.168.1.1" } or "mdns": { "interface": "eth0" } successfully paired and working!

ANARHIST1984 avatar Jan 11 '22 18:01 ANARHIST1984

@ANARHIST1984

Thank you! for the report.

I checked it out and it seems that the behavior has changed since v1.3.0. https://github.com/homebridge/homebridge/releases/tag/v1.3.0

This wiki is an example of using the Homebridge UI. https://github.com/homebridge/homebridge/wiki/mDNS-Options

nxhack avatar Jan 11 '22 23:01 nxhack

Hi, I’m super noob here, But I manage to run Homebridge and Homebridge UI in openwrt. Adding mdns in config.json works well, and I successfully paired my device. However, in system log it complains that the mdns option in config.json being deprecated. But when I used advertiser and bind option, it complains dbus don’t have /usr/share/dbus-1/org.freedesktop…. File and then crashed. Is dbus package in openwrt somehow has limited functionality?

SooHandsome avatar Jan 14 '23 09:01 SooHandsome

@SooHandsome

OpenWrt's avahi package does not install that file. Attempting to install that file manually seems to circumvent the error.

https://github.com/lathiat/avahi/blob/master/avahi-daemon/org.freedesktop.Avahi.Server.xml

nxhack avatar Jan 15 '23 08:01 nxhack

@nxhack ok, I have tried it, it doesn't complain anymore when using avahi in advertiser option in bridge section after putting the introspection file. Also, I remove the mdns section and the homebridge is still discoverable. Thx

SooHandsome avatar Jan 16 '23 10:01 SooHandsome