ESP8266 DHT22 sensor data logging via MQTT server

Hi guys-

I recently configured an ESP8266 + DHT22 to report temp / humidity to Home Assistant which is currently running on a Raspberry Pi 3 ala this tutorial: https://home-assistant.io/blog/2015/10/11/measure-temperature-with-esp8266-and-report-to-mqtt/

I would like to ask the community if there is a good way to log and graph this data for the last hour / day / week / month / year. Presumably this would be done by querying MQTT server?

Any ideas / pointers very much appreciated!

-R

You could play around with Grafana and InfluxDB, good blog article here:

Edit: forgot about this more recent post assuming you have history turned on also:

1 Like

Wow very cool! Thanks so much :slight_smile:
it turns out I do have history on as I’ve discovered. thanks again!

1 Like