Skip to content

Docker Installation

mak-gitdev edited this page Oct 26, 2023 · 5 revisions

Docker Installation

A docker image is now available for the development version.

Install Docker

Depending on your architecture, you can use:

docker pull makgitdev/ha_enoceanmqtt_dev-amd64

or

docker pull makgitdev/ha_enoceanmqtt_dev-aarch64

or

docker pull makgitdev/ha_enoceanmqtt_dev-armhf

Then:

  • Mount the /config volume and your enocean device.
  • Adapt the enoceanmqtt.conf.sample file in the /config folder to set parameters as well as devices to manage.
    See Normal Usage for more details.

The volume mount has to point to -v /local/path/to/configfile:/config. Or pass a docker volume created using the docker volume create command.

Example docker command:

sudo docker run --device=/dev/enocean -v my_docker_volume:/config makgitdev/ha_enoceanmqtt_dev-aarch64

You can also use docker-compose as in the example below (thanks to @wallenium):

<choose_a_service_name>:
    container_name: ha_enoceanmqtt_dev
    image: makgitdev/ha_enoceanmqtt_dev-aarch64
    restart: unless-stopped
    volumes:
      - ./volumes/ha_enoceanmqtt/config:/config
    devices:
      - /dev/enocean:/dev/enocean
    # This command is not needed if your conf file is located at /config/enoceanmqtt.conf as this is the default location
    command: /config/enoceanmqtt.conf

You can also run with below additional options:

  • --logfile /config/enoceanmqtt.log to have logs generated to /config/enoceanmqtt.log
  • --debug to have debug messages in the log