nygma2004 / growatt2mqtt

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

unable to use setMaxOutput #30

Closed MichaLUE closed 1 year ago

MichaLUE commented 1 year ago

Hi, what must i change in code to use

topicroot/write/setMaxOutput | subscribe | 0-100 | set the output level of the growatt in percent

as described in documentation?

Micha.

nygma2004 commented 1 year ago

What do you mean? You need to send a value from 0 to 100 to topic /write/setMaxOutput. That's all. Nothing needs to be enabled.

MichaLUE commented 1 year ago

Hi, so I have to create "topicroot/write/setMaxOutput" in my MQTT server and set MaxOutput with a char? Then the D1 reads it and sends it to the inverter?

Sorry I'm not that smart on this topic.

nygma2004 commented 1 year ago

Yes, there is a roottopic variable in settings.h which is set to growatt be default. So the topic would be growatt/write/setMaxOutput. And yes send in the number 0-100, it is received by D1, and is sent to the inverter.

MichaLUE commented 1 year ago

Wow, it works!!! Many thank for your answers. :-)