Weather hat and MQTT to Home Assistant


I am trying to find instructions on how to set up the Pimoroni Weather hat to send meassages to Mqtt.
Is it possible to find the instructions somewhere?

It’s been a while since I used it, but this is the Python code I ran on my Pi to post my Weather HAT data into Home Assistant: Weather HAT - MQTT for Home Assistant · GitHub.

You’ll need to add your MQTT broker details (I used the Mosquitto add-on in HA as my broker) and install the MQTT integration in HA to be able to work with MQTT sensors. I think there are some decent guides online for setting up MQTT in Home Assistant if you need help with this?

I think this Python script works with Home Assistant’s auto-discovery, so if the MQTT stuff is up and running your new sensors should automatically appear in your Home Assistant overview…