Skip to content

KayGundhardt/raspberrypi-tempstation-htu21d-mqtt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Raspberry pi docker image for HTU21D and with MQTT client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 59.4%
  • Dockerfile 40.6%