Guide: Install HomeBridge on Firewalla

Follow

Comments

51 comments

  • Avatar
    Michael Turchin

    Home Assistant would be nice to install as I do not have a HomePod or Apple TV to act as the base station for HomeKit.

    1
    Comment actions Permalink
  • Avatar
    sk0rp10

    Great guide! I have got it all working … almost! I am trying to workout why is that a plug-in I am trying to use is being denied opening a UDP socket (and thus fails). Any suggestions @firewalla? Are there particular restrictions that might cause this? (I am on firewalla gold)

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @sk0rp10 what plugin? 

    0
    Comment actions Permalink
  • Avatar
    sk0rp10

    Michael, it’s Nest SDM

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @sk0rp10 ah. I have other nest stuff, but not their cameras so I don't know how I can really test this. 

    0
    Comment actions Permalink
  • Avatar
    sk0rp10

    The plugin doesn't really matter, @Michael, the issue is generically described here, which was opened for a different one: https://github.com/Sunoo/homebridge-camera-ffmpeg/issues/1087 

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @sk0rp10 nothing shows in that github issue.

    I install ffmpeg in my homebridge startup.sh script if that's of any help. 

    if ! [ -x "$(command -v ffmpeg)" ]; then
    sudo curl -Lf# https://github.com/homebridge/ffmpeg-for-homebridge/releases/latest/download/ffmpeg-debian-$(uname     -m).tar.gz \
    | sudo tar xzf - -C / --no-same-owner
    else
    echo "ffmpeg is already installed."
    fi
    0
    Comment actions Permalink
  • Avatar
    sk0rp10

    Okay, basically it’s an issue with the get-port api. It’s discussed in the thread I linked . Nothing to do with ffmpeg either

    0
    Comment actions Permalink
  • Avatar
    sk0rp10

    @Michael if it helps, here's the GitHub Issue where we're discussing this problem with the author of the Nest SDM plugin: https://github.com/potmat/homebridge-google-nest-sdm/issues/31 

    0
    Comment actions Permalink
  • Avatar
    Patrick Burtchaell

    Thanks for the tutorial! Super easy to follow. Homebridge is running on my FWG and I'm able to access the Homebridge UI. However, it looks like there's some DNS issue blocking Homebridge from accessing the npm registry, making it so I can't install plugins.

    I'm getting this error in the Homebridge logs:

    Failed to check registry.npmjs.org for updates: "getaddrinfo EAI_AGAIN registry.npmjs.org" - see https://homebridge.io/w/JJSz6 for help.

    Do you know if this this caused my FWG config or something else?

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @patrick can you try the following from the device running homebridge? 

    dig registry.npmjs.org
    ping registry.npmjs.org
    0
    Comment actions Permalink
  • Avatar
    Patrick Burtchaell

    @Michael, those seem to be working. Response for dig:

    ; <<>> DiG 9.11.3-1ubuntu1.11-Ubuntu <<>> registry.npmjs.org
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1822
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 12, AUTHORITY: 0, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 512
    ;; QUESTION SECTION:
    ;registry.npmjs.org. IN A

    ;; ANSWER SECTION:
    registry.npmjs.org. 101 IN A 104.16.17.35
    registry.npmjs.org. 101 IN A 104.16.23.35
    registry.npmjs.org. 101 IN A 104.16.19.35
    registry.npmjs.org. 101 IN A 104.16.18.35
    registry.npmjs.org. 101 IN A 104.16.26.35
    registry.npmjs.org. 101 IN A 104.16.24.35
    registry.npmjs.org. 101 IN A 104.16.21.35
    registry.npmjs.org. 101 IN A 104.16.25.35
    registry.npmjs.org. 101 IN A 104.16.20.35
    registry.npmjs.org. 101 IN A 104.16.16.35
    registry.npmjs.org. 101 IN A 104.16.27.35
    registry.npmjs.org. 101 IN A 104.16.22.35

    ;; Query time: 7 msec
    ;; SERVER: 68.105.28.11#53(68.105.28.11)
    ;; WHEN: Wed Nov 16 12:44:18 CST 2022
    ;; MSG SIZE  rcvd: 239

    Response for ping:

    PING registry.npmjs.org(2606:4700::6810:1723 (2606:4700::6810:1723)) 56 data bytes
    64 bytes from 2606:4700::6810:1723 (2606:4700::6810:1723): icmp_seq=1 ttl=58 time=19.5 ms
    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @Patrick 

    Can you check a few settings?
    1. Network Manager [WAN name ] > Edit > Primary & Secondary DNS. These can be the DNS provider of your choice or empty. If empty, it goes to your ISP's DNS settings. If you set them this will be used for devices that aren't DoH, Unbound, or assigned to Family protect.
    2. Network Manager [LAN name ] > Edit > Primary & Secondary DNS The Primary DNS should be set to the LAN IP. So if your LAN is 192.168.0.1 set it to the same. Secondary can be empty. This says all DNS should go through Firewalla and let it decide.
    3. Make sure Settings > Advanced > Configurations > DNS Booster is turned on.
    4. Check ipinfo.com and see if it shows 68.105.28.11
    0
    Comment actions Permalink
  • Avatar
    Patrick Burtchaell

    @Michael, steps 1-3 done, but my ipinfo is not showing 68.105.28.11.

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @Patrick, Is 68.105.28.11 your ISP DNS? 

    0
    Comment actions Permalink
  • Avatar
    Patrick Burtchaell

    @Michael, correct. 68.105.28.11 is my ISP DNS and the primary DNS server under my WAN configuration.

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @Patrick can you try 

    ping registry.npmjs.org

    In the homebridge terminal 

    0
    Comment actions Permalink
  • Avatar
    Patrick Burtchaell

    I'm getting:

    root@firewalla:/var/lib/homebridge $ ping registry.npmjs.org
    ping: registry.npmjs.org: Temporary failure in name resolution
    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @Patrick, That would do it. Something is not set up correctly. The fastest thing would be to uninstall and install using a script that I wrote. 

    github.com/mbierman/homebridge-installer

     

     

    0
    Comment actions Permalink
  • Avatar
    Patrick Burtchaell

    That fixed it, thanks!

    1
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @Patrick,

    🎉 🥂 Excellent! enjoy. 

    0
    Comment actions Permalink

Please sign in to leave a comment.