Hass.io with additional docker container (for Homegear)

Hi,
i’m looking for a solution to use Homegear (https://forum.homegear.eu/c/English-Forums) inside Hass.io for connecting Homematic devices. Works like a charm in Home-Assistant, but not in Hass.io.

Homegear is already available as a docker container (https://hub.docker.com/r/homegear/homegear/), is there a way to connect Hass.io with this additional docker container?

Thanks in advance!

1 Like

There is no official add-on but you can create your own easily.

  1. Install samba addon (for ease)
  2. In the addons dir create a new folder “Homegear”
  3. In the Homegear dir create a file “config.json”, and paste this into in and save:
    {
      "name": "Homegear",
      "version": "latest",
      "slug": "homegear",
      "image": "homegear/homegear",
      "description": "Homegear",
      "url": "https://hub.docker.com/r/homegear/homegear/",
      "startup": "before",
      "boot": "auto",
      "ports": {
        "2001/tcp": 2001,
        "2002/tcp": 2002,
        "2003/tcp": 2003
      },
      "environment": {
      },
      "arch": ["amd64"],
      "options": {
      },
      "schema": {
      }
    }

You may need to change arch if on RPi - I am on x86
Save the file, open hassio store and you should see local addon.
Install it and start it…

Works for me at http://hassio.local:2001

1 Like

Hi did anyone manage to get homegear on a raspberry pi3 running?

I always get error:
standard_init_linux.go:187: exec user process caused "exec format error"

Using homegear/rpi-homegear instead of homegear/homegear works on my raspberry. (https://hub.docker.com/r/homegear/rpi-homegear/)

How would one mount Homegears configuration volumes with hassio?
The requiriered volumes are:

/etc/homegear 
/var/lib/homegear 
/var/log/homegear

I can think of two ways to get them:

  • bind mount them to /data inside the container
  • use some option for docker volumes outside of the container (like -v for docker)

I’d prefer the second option as it wouldn’t require me to build a derivative image.

To access homematic devices one would also need a physical serial port passed through.

To access homematic devices one would also need a physical serial port passed through.

You can add "devices": ["/dev/ttyAMA0:/dev/ttyAMA0:rwm"] to your config.json.

I’m still thinking about how to get /etc/homegear mounted from the host…

I’m also looking to add Homegear to my Hass.io.
Any update on this, regarding the volume /etc/homegear ?

I’ve packaged up what I have and published it here:

Let me know if that works for you!

1 Like

Ah! Thanks a lot, just installed it on a NUC HASSIO and seems to work