get mqtt working with bem 280 sensor
This commit is contained in:
parent
2ee960c723
commit
05c470197f
9 changed files with 157 additions and 13 deletions
41
notes.txt
Normal file
41
notes.txt
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
|
||||
## Helpful links
|
||||
- https://docs.circuitpython.org/projects/minimqtt/en/latest/examples.html
|
||||
- [how to use settings.toml](https://learn.adafruit.com/circuitpython-octoprint-controller-and-monitor/create-your-settings-toml-file)
|
||||
- [adafruit-circuitpython-esp32spi docs](https://docs.circuitpython.org/projects/esp32spi/en/latest/)
|
||||
- [pico pinout](https://pico.pinout.xyz/)
|
||||
- [home assistant mqtt guide](https://www.home-assistant.io/integrations/mqtt/#testing-your-setup)
|
||||
- [home assistant device classes](https://www.home-assistant.io/integrations/sensor/#device-class)
|
||||
|
||||
## Home assistant debugging
|
||||
|
||||
homeassistant/sensor/balcony_weather_station/test_bme_280
|
||||
homeassistant/sensor/balcony_weather_station/test_bme_280
|
||||
{
|
||||
"name": "BEM 280 Temperature",
|
||||
"device_class": "temperature",
|
||||
"unit_of_measurement": "°C",
|
||||
"value_template": "{{ value_json.temperature}}",
|
||||
"state_topic": "homeassistant/sensor/balcony_weather_station/test_bme_280/state",
|
||||
"unique_id": "balcony_weather_station_bme_280_test_temperature",
|
||||
"device": {
|
||||
"identifiers": "balcony_weather_station_001",
|
||||
"name": "Balcony Weather Station"
|
||||
}
|
||||
}
|
||||
|
||||
homeassistant/sensor/balcony_weather_station/test_bme_280/state
|
||||
{ "temperature": 23.20, "humidity": 50 }
|
||||
|
||||
{
|
||||
"name": "BEM 280 Humidity",
|
||||
"device_class": "humidity",
|
||||
"unit_of_measurement": "%",
|
||||
"value_template": "{{ value_json.humidity}}",
|
||||
"state_topic": "homeassistant/sensor/balcony_weather_station/test_bme_280/state",
|
||||
"unique_id": "balcony_weather_station_bme_280_test_humidity",
|
||||
"device": {
|
||||
"identifiers": "balcony_weather_station_001",
|
||||
"name": "Balcony Weather Station"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue