Node.js utility that connects to any Voltronic-protocol compatible inverter (via USB HID interface) and publishes its telemetry data to an MQTT broker.
I suspect that many of these inverters tend to share the same methods of throwing out telemetry data (UPD: they do!), so it might even be that this script would work on other models or even brands (UPD: it does!).
My inverter currently uses a microUSB connector and advertises itself as a HID, so there should be some minor adaptation (UPD: Nope! it just works.) to be done in case yours has some other type of interfacing, like RS232 or RS485 (UPD: just use a FTDI converter)
- Just clone the project, run it and it will automatically create an .env file for you.
- Fill out the fields in the .env file
- Re-run the script, pick the HID device you want to connect to.
- At this point you can choose whether to add it to your .env file anwering the [Y/n] prompt.
If you choose to do so, it will automatically pick that same device next time you run the script. - Profit (?)