Easiest way to get data from a local sensor to the Home Assistant?

I have a CSS811 TVOC/Temperature sensor logging data via a py script on the same RPi that I’m running my Home Assistant.

What would be the simplest way to get this data to my Home Assistant?

It’s easier to get data from an external device.

I did look into creating a new component, however, could find a way to test it.

:slight_smile:

You can either use the python mqtt package to send MQTT messages, or use the python request package and use the HA rest api.