Pull changes from Homematic IP Access Point / Cloud and push them into Thingsboard via REST API.
The latest build is avialable as a container running a cron job to push the values every 10 minutes.
If you need more freuquent updates you have to modify the crontab in the container or build your own image. Please be gentile to the Homematic IP API!
- Follow steps below to create a working
config.ini
- Create a volume to store the config
podman volume create thingsboard-homematic-client-config
- Copy the contents of the
config.ini
to the volumepodman run -it --rm -v thingsboard-homematic-client-config:/config ghcr.io/mpolitze/thingsboard-homematic-client:latest vi /config/config.ini
- Run the container as deamon
podman run -d --name thingsboard-homematic-client -v thingsboard-homematic-client-config:/config ghcr.io/mpolitze/thingsboard-homematic-client:latest
You can run the bridge in a local virtual environment, in a standard python container or use the lates released container image from ghcr.io/mpolitze/thingsboard-homematic-client:latest
. Setup for virtual environment is below.
podman run -it --rm -v${PWD}:/root/src python:alpine /bin/sh
python3 -m venv .env
(Windows)
.env\Scripts\activate
(Linux)
source .env/bin/activate
(Build dependencies for alpine)
apk add --update --no-cache --virtual .build-deps gcc musl-dev git
pip3 install -r requirements.txt
python3 .env/Scripts/hmip_generate_auth_token.py
[TB]
url = >>>thingsboard url here<<<
rootDeviceId = >>>root deivce id here<<<
username = >>>username here<<<
password = >>>password here<<<
python3 ./src/main.py