Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 743 Bytes

File metadata and controls

25 lines (18 loc) · 743 Bytes

Raspberry pi tempstation

Raspberry pi docker image for HTU21D and with MQTT client

1. On raspberry pi 3 start docker image

$ 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

2. Add sensor config to homeassistent configuration.yaml file

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