mr-manuel / venus-os_dbus-mqtt-pv

This Venus OS driver gets the data from MQTT and displays it as pv inverter.
MIT License
55 stars 12 forks source link

float is not iterable #9

Closed tritechks closed 1 year ago

tritechks commented 1 year ago

Hello, after installation i became this error message (see below). I try to send data from my trucki2shelly gateway information to emulate my SUN1000G2 as a Victron Inverter.

@4000000064c258cb15b4444c DEBUG:root:MQTT payload: '194.40' @4000000064c258cd059976cc ERROR:root:Exception occurred: argument of type 'float' is not iterable

Greetings Thomas

mr-manuel commented 1 year ago

Did you check the README.md? From the log it seems, that you are not passing a JSON payload via MQTT but only a float number.

tritechks commented 1 year ago

Ok, but I dont know how to convert the float to a jason payload.

mr-manuel commented 1 year ago

Unfortunately I don't know the product you are using, but you can use Node-RED to read and convert the payload. Therefore install the Venus OS large firmware. You can select it in Venus OS remote console/GUI under Firmware.