nygma2004 / growatt2mqtt

Growatt Solar Inverter Modbus Data to MQTT Gateway
MIT License
136 stars 33 forks source link

only one datapoint is in ioBroker #1

Open DraycD opened 2 years ago

DraycD commented 2 years ago

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?

Bildschirmfoto 2022-01-17 um 13 59 01
nygma2004 commented 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.

DraycD commented 2 years ago

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

AlexanderSch90 commented 1 year ago

Hey @DraycD , can you please share your Iobroker code (your javascript; your blockly) to split the json?

hendrikhoffmann commented 4 months ago

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

nygma2004 commented 4 months ago

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!