Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robmarkcole/bme680-mqtt
Publish bme680 data via MQTT
https://github.com/robmarkcole/bme680-mqtt
home-assistant mqtt pimoroni
Last synced: 14 days ago
JSON representation
Publish bme680 data via MQTT
- Host: GitHub
- URL: https://github.com/robmarkcole/bme680-mqtt
- Owner: robmarkcole
- License: mit
- Created: 2017-10-28T06:15:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-28T06:59:49.000Z (about 7 years ago)
- Last Synced: 2024-10-03T13:42:43.623Z (about 1 month ago)
- Topics: home-assistant, mqtt, pimoroni
- Language: Python
- Size: 58.6 KB
- Stars: 16
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bme680-mqtt
Modifies example by [Pimoroni](https://github.com/pimoroni/bme680/blob/master/examples/indoor-air-quality.py) to publish [bme680](https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-bme680-breakout) data via MQTT.To add the MQTT output to [Home-assistant](https://home-assistant.io/), we use an [MQTT-switch](https://home-assistant.io/components/switch.mqtt/). Assuming you have your Home-assistant [config split](https://home-assistant.io/docs/configuration/splitting_configuration/) into seperate files, in your sensors.yaml file, add the following:
```yaml
- platform: mqtt
name: 'bme680-temperature'
state_topic: 'bme680-temperature'
unit_of_measurement: '°C'
- platform: mqtt
name: 'bme680-humidity'
state_topic: 'bme680-humidity'
unit_of_measurement: '%'
- platform: mqtt
name: 'bme680-pressure'
state_topic: 'bme680-pressure'
unit_of_measurement: 'hPa'
- platform: mqtt
name: 'bme680-air_qual'
state_topic: 'bme680-air_qual'
unit_of_measurement: '%'
```I then created a group, in groups.yaml:
```yaml
BME680:
entities:
- sensor.bme680temperature
- sensor.bme680pressure
- sensor.bme680humidity
- sensor.bme680air_qual
```Finally you may want to [customise](https://home-assistant.io/docs/configuration/customizing-devices/) the look of the sensors in the Home-assistant front end.