Guide: Install HomeBridge on Firewalla

Follow

Comments

83 comments

  • Avatar
    Firewalla

    If you can, please use /data for docker and docker images.  We have seen people storing a lot of stuff in ~/. so please be careful 

    2
    Comment actions Permalink
  • Avatar
    Sergio Lopez

    Michael,

    Thank you! ":set paste" and copying the code worked! I ran the diff command and saw some "23c23" in the old file (not visible, but I guess is there somewhere?) - Anyway, Thank you again!

    1
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @cybermaster69 there's an uninstall at github.com/mbierman/homebridge-installer

    1
    Comment actions Permalink
  • Avatar
    Patrick Burtchaell

    That fixed it, thanks!

    1
    Comment actions Permalink
  • Avatar
    cybermaster69

    thanks, i would like to know if is possible to install home assistant and if there is a guide available. thanks

    1
    Comment actions Permalink
  • 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
    Tiago Buffon

    @Micheal

    Worked, thanks

    1
    Comment actions Permalink
  • Avatar
    Danny Natale

    Okay - we are jamming.  It's hard to say what fixed it, but I did have to clean up some space and remove some docker images.  Thanks for your help!

    1
    Comment actions Permalink
  • Avatar
    Sergio Lopez

    @Michael Thanks. I tried that command you suggested and this is what I get:

    pi@firewalla:~ (Firewalla Gold) $ sudo docker ps
    Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

    Could it be a different problem that doesn't require reinstalling since the issue also happens with my other PiHole docker?

    0
    Comment actions Permalink
  • Avatar
    Tiago Buffon

    How do I update Node.js?

    I have the following message, and I want to make sure I'm following the proper procedures:

    Homebridge v1.7.0 requires Node.js v18.15.0 or later. You are currently running Node.js v18.13.0.

    Please upgrade Node.js before updating Homebridge.

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @sergio, 

    You could do:

    sudo docker ps 

    And see if it is running. However, unless you want to learn how to debug docker in general and this one specifically, the easiest thing to do is re-install it either using this guide or a script I wrote, github.com/mbierman/homebridge-installer 

    You may want to uninstall first just so nothing is left behind that might cause issues. There's an uninstall script in my installer as well. 

    0
    Comment actions Permalink
  • Avatar
    Sergio Lopez

    Hello,
    I'm having issues and I don't even know where to begin or what information to provide to help in troubleshooting.

    I had homebridge running fine on my Firewalla. A few months ago, I noticed I could no longer use it or even login in the UI. I finally got around to ssh into the Firewalla. Everything is there without modification, but I can't not see the docker running. A similar issue is happening with my Pi-Hole (the only two dockers I have installed).  Could it be something happenign with the Firewalla?

    What can I do to troubleshoot why my dockers aren't running?

    0
    Comment actions Permalink
  • Avatar
    Mark Besecker

    Hi Michael,

    Thanks for reviewing. I’m miffed because I was able to get this working with a SmartThings hub when I had an Android phone but with the different ecosystem there’s no crossover compatibility and you need the Apple equivalent hub now. It makes sense it would still need a hub. I bit the bullet last night and bought a HomePod mini to be delivered this week. Thanks again!

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    Hey Mark, 

    Ah! So I haven't tried it, but I don't think homebridge alone is sufficient for that. Also, I don't think Bonjour does well over VPN. Apple expects any homekit environment to have at last one hub: 

    • Apple TV
    • Apple iPad
    • HomePod mini or HomePod
    0
    Comment actions Permalink
  • Avatar
    Mark Besecker

    Understood, I was trying to do this without an official hub and direct connect to the firewalla that was hosting the homebridge, but it looks like it still communicates to the Apple app via mDNS/Bonjour or some method that isn't transferrable through VPN normally.

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    HomeKit doesn’t require VPN. Your hub will take care of this.

    0
    Comment actions Permalink
  • Avatar
    Mark Besecker

    Hi Michael,

    Thank you for responding. I have a garage door opener set up on HomeBridge and I wanted to add it to the Apple Home app in order to open and close it once logged in via VPN.

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    Hi Mark,

    Not sure I follow your question. What are you trying to do exactly?

    0
    Comment actions Permalink
  • Avatar
    Mark Besecker

    Hello, 

    Is it possible to add the HomeBridge to your Apple Home app via VPN?  I have been messing around for a couple hours today with the firewalla having HomeBridge installed directly on it, VPNed to the firewalla, on paper I'd imagine this should be able to communicate since you're connecting directly to the server (originally I was trying to do it with HomeBridge hosted on my NAS and I was thinking the subnet difference was causing communication issues).  However I can't for the life of me have it detect the HomeBridge hosted hub.  

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @Patrick,

    🎉 🥂 Excellent! enjoy. 

    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

    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 can you try 

    ping registry.npmjs.org

    In the homebridge terminal 

    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
    StackIOI

    @Michael Bierman thank you for the reply.. sadly I have the same result.. did try your installer, and as before, the container spins up but internally fails, and starts to loop the "Re-installing homebridge..." errors. Seems something is broken with Node in the latest image.

    0
    Comment actions Permalink
  • Avatar
    Jarrod True

    Hello - I have everything working right now but, in regard to the homebridge-linux-temperature plugin, turns out the sensor path on my Firewalla Gold Pro is /sys/bus/platform/devices/coretemp.0/hwmon/hwmon4/...  No idea why it's hwmon4 rather than hwmon1 like the guide suggests. Again, once I figured that out, everything is working but just curious why that is. Is that normal for Firewalla Gold Pro and is the guide maybe a tad dated? Thanks, Jarrod

    0
    Comment actions Permalink
  • Avatar
    mmyrberg

    What's the preferred way of keeping the homebridge components up to date?  I realize I can log into homebridge and see whether the different components are up to date but I was wondering if there was an automated way to keep everything up to date. 

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @Sergio, 

    Try 

    cd /home/pi/.firewalla/run/docker/homebridge
    sudo docker container stop homebridge && sudo docker rm homebridge
    sudo docker-compose up -d
    sudo docker ps  
    0
    Comment actions Permalink
  • Avatar
    Sergio Lopez

    @Michael - thanks for the suggestion, I went and checked a homebridge forum and they mentioned their problems when away in V1.8.X - it seems like mine Firewalla is running v1.6.1, so I need to try to update it.  I'm going to do some digging thorugh here to see if I find the instructions to upgrade to the latest version and see if that resolves my problems.

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    @Sergio this seems like more of a homebridge question than firewalla. There are some great discussion groups. In this case, I'd suggest checking with the plugin owner/team. 

    0
    Comment actions Permalink

Please sign in to leave a comment.