Juntek / Junctek KG-F - Publish MQTT from BT or RS$*%

I have a Renogy Rover and a Juntek KG-F, but was not happy with the various solutions. I currently have a RPi reading the Renogy over BT, and the Junctek over RS485 (Wayyy more reliable, the USB to RS485 was cheap and 100% worth it).

I have created a Python script (heavily inspired from ard00d’s work on the Renogy Rover) that can read the Junctek data (over BT, not recommended, or RS-485), and publishes the data to MQTT for Home Assistant.

First time with Python and it’s a quick’n’dirty 11PM job, but it works fantastic. Feel free to edit/fork or whatever!