Raspberry pi docker image for HTU21D and with MQTT client
$ docker run --privileged -it --rm -v /dev/i2c-1:/dev/i2c-1 -e TEMP_BROKER_ADDRESS=192.168.0.221 -e TEMP_ROOM_NAME=living_room -e TEMP_BROKER_DELAY=5 elmariofredo/raspberrypi-tempstation-htu21d-mqtt:arm32v7-1.0
sensor:
- platform: mqtt
state_topic: 'living_room/temperature'
name: 'Living room Temperature'
unit_of_measurement: '°C'
device_class: temperature
- platform: mqtt
state_topic: 'living_room/humidity'
name: 'Living room Humidity'
unit_of_measurement: '%'
device_class: humidity