Open DraycD opened 2 years ago
I designed it to send all the data into a single topic in JSON format, because it is much easier to process for me rather than having 30 messages all in separate topic. If you want that, you need to re-write the ReadInputRegisters()
method. There is a section with a comment saying Generate the modbus MQTT message
. As you can see I put all the data into a JSON there. You can break that up, and send each of them into a separate MQTT topic.
I hope that will be enough, as there will be a lot of MQTT communication done in that method. It may take too long time and the ESP may crash not having enough time to perform other housekeeping tasks.
I split it now direct in iOBroker. Is there a Json path in browser? something like http://192.168.2.43/cm?cmnd=status%208
sorry i m a noob
Hey @DraycD , can you please share your Iobroker code (your javascript; your blockly) to split the json?
I forked the project and changed the mqtt transfer from json to single data points. I also added a Webinterface and API for controlling the inverter limits. see https://github.com/hendrikhoffmann/growatt2mqtt
I forked the project and changed the mqtt transfer from json to single data points. I also added a Webinterface and API for controlling the inverter limits. see https://github.com/hendrikhoffmann/growatt2mqtt
Thanks for sharing this. Great job!
Hi, first of all thank you for all your work.
i have the issue that in iobroker is only one datapoint were is all in, but not seperate points: do you have any idea how it can send seperate?