Tutorial: add Homebridge to Hass.io using Portainer

My homebridge docker has Node.js Version v14.15.4 and Npm Version v6.14.10.
I have only updated homebridge when prompted through the web gui.
I am on homebridge v1.2.5.

yes sure, description above:


version: '2'
services:
  hoobs:
    image: hoobs/hoobs:latest
    restart: always
    network_mode: host
    environment:
      - PGID=0
      - PUID=0
    volumes:
      - /mnt/data/supervisor/homeassistant/hoobs:/hoobs
1 Like

you have to pull the latest image, to update the complete docker, to the new node and npm version. description above…

Thanks @thecem and @Hackashaq666 for your reaction.

@thecem, you mentioned to recreate the homebridge image. Will the config-file and existing plugins stay or do I have to install/config them again?
Just check before all data is gone :wink:

If you have your config for homebridge in config/homebridge in HA, nothing will be lost.
If you would like to be double secure backup your config via homebridge UI. Additional copy your config (all files without folder node_modules) out of config/homebridge to your backup place.

I do this since I’ve onboarded hb to HA via portainer, and really never had any problem!
Also this is the fastest way to build up a hb or hoobs.
hoobs is nice but more for rasps not really for docker.
I love the oznu/homebridge docker with UI fast slim nice…

2 Likes

If you change the volumes section of the docker-compose to point to the share folder, it will be backed-up with home assistant snapshots, but these will be larger snapshots, mine are >100 mb:

version: '2'
services:
  homebridge:
    image: oznu/homebridge:latest
    container_name: homebridge
    restart: always
    network_mode: host
    environment:
      - TZ=America/New_York
      - PGID=1000
      - PUID=1000
      - HOMEBRIDGE_CONFIG_UI=1
      - HOMEBRIDGE_CONFIG_UI_PORT=8080
    volumes:
      - /mnt/data/supervisor/share/homebridge:/homebridge
2 Likes

Hi, i followed all the step, but i got an issue with the host.

when i start Homebridge, i got " hostname: hassio not found "
Did i miss something?
thx for your help.

try using homeassistant as the hostname.

I assume portainer has changed since this was written, i cant seem to find the option to deploy a stack. Has it been renamed?

It’s still there.
Select “Stacks” then press “Add Stack” and scroll down to the the “Deploy the stack” button

Thank you. I found I have to click on the container first the stacks option was not showing up at all for me. Then I found what I was looking to do has since been intergrated to ha anyway. So much fun learning these things. Reminds me why I picked the network path over software dev path in college.

Followed the setup…and I’m familiar with Portainer…but whenever I try to “deploy the stack” I get image

Hi, could you please help me to remove HomeBridge from Home Assistant?
I’ve been runnning HomeBridge on Home Assistant for about 4 months now.
The only problem is that Home Assistant supervisor complains that the installation is unsupported.
I would really appreciate if you could help me how I will uninstall it?
Thanks a lot

If you don’t need homebridge:

Go to portainer, remove the homebridge stack, then remove the homebridge image. Reboot ha, supervisor should be clean.

Is there another way to add HomeBridge to the same Raspberry Pi running HA now that Portainer is discontinued?

1 Like

Wait - wouldn’t the Home Assistant supervisor complain that the installation is unsupported? Same as with @Mr.ToR, I ran into this a couple of months ago:

So… Has that changed since? Are we good to do portainer and homebridge in HAOS these days without the “unsupported” alert?

You’ll definitely get the unsupported installation alert by doing this.

HomeBridge Installation inside Home Assistant (Docker)

Today I was helping a friend and I did a fresh install of Home Assistant Operating System on a Raspberry Pi 4, and installed Portainer and Homebridge on Docker.

I used that docker-compose code to spin up homebridge:

version: '2'
services:
  homebridge:
    image: oznu/homebridge:latest
    restart: always
    network_mode: host
    environment:
      - PGID=1000
      - PUID=1000
      - HOMEBRIDGE_CONFIG_UI=1
      - HOMEBRIDGE_CONFIG_UI_PORT=8581
    volumes:
      - /homebridge

Here are additional useful links:

Base tutorial video (needs modifications):

Add-on repo for Portainer and doc:

Homebridge Docker image details:
https://hub.docker.com/r/oznu/homebridge/

what does that entail?