-
Notifications
You must be signed in to change notification settings - Fork 18
Docker Installation
mak-gitdev edited this page Jan 23, 2023
·
5 revisions
A docker image is now available for the development version.
You can now use HA_enoceanmqtt directly in Home Assistant as an addon, or standalone as an install on a Linux system or as a docker container (typically for those using Home Assistant container).
Depending on your architecture, you can now 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.
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