Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmariofredo/raspberrypi-tempstation-htu21d-mqtt
Raspberry pi docker image for HTU21D and with MQTT client
https://github.com/elmariofredo/raspberrypi-tempstation-htu21d-mqtt
htu21d mqtt-client raspberry-pi
Last synced: about 2 months ago
JSON representation
Raspberry pi docker image for HTU21D and with MQTT client
- Host: GitHub
- URL: https://github.com/elmariofredo/raspberrypi-tempstation-htu21d-mqtt
- Owner: elmariofredo
- License: mit
- Created: 2018-12-26T14:14:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T13:25:22.000Z (about 1 year ago)
- Last Synced: 2023-12-12T14:35:32.746Z (about 1 year ago)
- Topics: htu21d, mqtt-client, raspberry-pi
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```yaml
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
```