Making my first plugin from Python and RPi for Home Assistant

Hi everyone!

I made a indoor pollution station (temperature, humidity, MQ9 and MQ135 sensors) running on a PI with Python3.

As a result, informations are displayed on a webpage reachable on my local network (

Now, I would like to display those information under home assistant so I could automate some tasks when humidity level is too low for example.

The problem is that I have no idea where to start… Any idea please?

Thank you.


I would use MQTT to send the data to HA. That would be the easiest route IMO.