Install Homegear Docker Image using podman and Homegear LAN Gateway

Useful Homegear Container Links

TopicLink
Homegearhttps://homegear.eu/
Podmanhttps://podman.io/
Homegear / Dockerhttps://hub.docker.com/r/homegear/homegear/
Dockerhttps://www.docker.com/

Podman

This project uses podman instead of docker. First of all, due to recent docker licensing. Second, podman uses the same command set and is fully compatible with docker, while at the same time deamon-less, eliminating some single point of failures and daemon issues.

Install Podman

Here is a link to the installation of podman on various platforms : https://podman.io/getting-started/installation
I use Ubuntu for the project.

Homegear docker image using podman

Homegear user

Create a home directory /home/homegear
Create a group for homegear – in my case I use the group named „openhab“ because I also use OpenHAB.
Create a user „homegear“ for homegear with the group and home above, set password
Add homegear user to additional groups : tty, dialout, docker

Homegear Docker image

Get homegear docker image, create container and run it.

su - homegear
mkdir homegear-data

podman pull homegear/homegear

podman container create --stop-timeout 300 --restart always -v /home/homegear/homegear-data/etc:/etc/homegear:Z -v /home/homegear/homegear-data/lib:/var/lib/homegear:Z -v /home/homegear/homegear-data/log:/var/log/homegear:Z -e TZ=Europe/Berlin -e HOST_USER_ID=1201 -e HOST_USER_GID=1200 -p 2000-2004:2000-2004 --name homegear homegear/homegear

podman start homegear

Configure Homegear for Homegear RS485 LAN Gateway

Cleanup your families folder and configure only what you need.

In my case, I have only the LAN RS485 Gateway and the CCU.

Connect to homegear and search actors

podman exec -i homegear homegear -r

Use homegear interactive commands to search for actors and configure homegear.
Enter „help“ for help.

See homegear documentation in the links table at the top of this article.

Schreibe einen Kommentar