Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only one datapoint is in ioBroker #1

Open
DraycD opened this issue Jan 17, 2022 · 8 comments
Open

only one datapoint is in ioBroker #1

DraycD opened this issue Jan 17, 2022 · 8 comments

Comments

@DraycD
Copy link

DraycD commented Jan 17, 2022

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
Copy link
Owner

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
Copy link
Author

DraycD commented Mar 4, 2022

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
Copy link

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

@hendrikhoffmann
Copy link

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
Copy link
Owner

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!

@hoschiking
Copy link

hoschiking commented Aug 1, 2024

@nygma2004
@hendrikhoffmann
what´s the right way to compile your fork of the project?
the original project growatt2mqtt I compiled and it works fine.
I´m not able to do this.
I have the impression that some code is missing.
Do I have to replace parts of the original code with your code?
It woukd be finem if you would desribe it step by step.
Thank you in advance

@hendrikhoffmann
Copy link

Thanks for letting me know & Fixed.
Either update the project or comment out
//#define useModulPower
in settings.h

@hoschiking
Copy link

hoschiking commented Aug 8, 2024

Your bugfix is working, now I´m able to compile it. thanks !!!
your fork would be absolutely perfect if the MQTT configuration was not implemented in the code, but could be configured via the Web API. Like with Wifi.
If the environment changes, you have to recompile every time.
The same with the optional IP-configuration.
It would be fine :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants