In fact, i just followed champ2410 (Guillaume) tuto :
to sum-up :
we need 3 files in the main folder of the app
1) Dockerfile
ARG BUILD_FROM
FROM $BUILD_FROM
# Install requirements for add-on
RUN \
apk add --no-cache \
python3 py3-virtualenv
RUN python3 -m venv /venv \
&& . /venv/bin/activate \
&& pip install --upgrade pip setuptools
ENV PATH="/venv/bin:$PATH"
RUN pip3 install pytz
RUN pip3 install paho-mqtt
# Copy data for add-on
COPY run.sh /
RUN chmod a+x /run.sh
COPY src/ /
CMD [ "/run.sh" ]
2) config.yaml
name: "Diematic 3"
description: "Diematic 3"
version: "2.0.1"
slug: "diematic_3"
init: false
arch:
- aarch64
- amd64
- armhf
- armv7
- i386
startup: before
3) run.sh
python3 Diematic32MQTT.py
/!\ run.sh needs to be created in linux environment (in windows with notepad, it was not recognized)
Then you go in Home Assistant
=> Setup
=> Apps
=> Install app
You should find “Diematic 3” in ‘local add-ons’
=> Install