I am running a 2nd pi with a Python program, handling a modbus protocol from my Goodwe inverter. All the inverter data is written in a json file every 2 or 3 seconds.
I’d like to show this data on my 1st pi running HA.
I presume this question breaks down into 2 questions
a. how to read the json data from pi2
b. how to display the collected data into various gauges
I have moderate programming skills with Python but never worked with mqtt. If I understand right I have to use a mqtt server in the cloud or set up my own mqtt server?
I had hoped for a bit simpler solution.
This makes setting up your own mqtt server quite easy.
There is also a python Library “paho-mqtt”. I’ve never used this one, but have used other similar libraries. It looks quite simple to use. Here’s an example
I chose the mqtt path. With a cloud broker. A dozen lines of code in my Python program to publish a json string and the same amount of Yaml to subscribe to the topic and put the data on screen.
All thanks for the suggestions