docker build . -t jakzal/mitemp2
docker run -it --rm --net=host \
-e MITEMP_DEVICE=AA:C1:38:E7:22:11 \
-e MITEMP_DEVICE_NAME=guest-room \
-e MQTT_HOST=localhost \
-e MQTT_USERNAME=homeassistant \
-e MQTT_PASSWORD='pa££w0rd' \
jakzal/mitemp2
or:
docker run -it --rm --net=host \
-e MQTT_HOST=localhost \
-e MQTT_USERNAME=homeassistant \
-e MQTT_PASSWORD='pa££w0rd' \
jakzal/mitemp2 \
python LYWSD03MMC.py -d AA:C1:38:E7:22:11 --name guest-room -r -b 100 --skipidentical 50 -deb
Create configuration files:
- /usr/share/hassio/homeassistant/.storage/mitemp2/common
- /usr/share/hassio/homeassistant/.storage/mitemp2/office
- /usr/share/hassio/homeassistant/.storage/mitemp2/toilet
Enable services:
systemctl enable [email protected]
systemctl enable [email protected]
Start services:
systemctl start [email protected]
systemctl start [email protected]
If you prefer to use timers, enable *.target units instead of *.service (i.e. [email protected]
instead of [email protected]
).