I'm using a ESP8266 connected via a RJ12 to my soladin 600 (grid tie inverter)
I'm using a sketch and library from: https://github.com/vChrisR/esp8266-pv-logger
It reads the data from the soladin inverter and posts it to thingspeak.
The library that is used for communicating with the soladin inverter is called soladin.h and is capable of reading many variables such as device temperature, grid voltage, total power, etc but the only value I'm interested in is 'gridpower' as this shows the output of the solar panels.
Rather than having the data sent to thingspeak I'd like it sent to my local MQTT broker (mosquitto) running on a Raspberry Pi so I can incorporate the data into my home assistant setup.
Gridpower is the only value I wish to publish to MQTT
I know the ESP8266 supports MQTT with the library: PubSubClient.h
If you're still reading I'm sure you've guessed I have no idea how to write a sketch beyond the basics. I've been trying to research how to do this myself but it's beyond my capabilities. I'm willing to pay someone for their time.
Summary: Convert sketch that posts data to thingspeak so that it publishes to MQTT instead.