StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
544 stars 199 forks source link

Listen to event and publish to MQTT #2

Closed tuanha2000vn closed 2 years ago

tuanha2000vn commented 2 years ago

image It's possible to listen to data change and publish the update via mqtt?

A mqtt publish will give a real-time data instead of 30 second passive querry result in a more precise data.

I'm not sure if it's supported by the inverter-logger, jusk ask for the possibility. Thank for the hard work.

StephanJoubert commented 2 years ago

Although the collector can be set-up to update a secondary webhook (main one is solarman), I have tried and don't get any information posted to my server. At this time we are polling at the specified interval so, if we post to MQTT at the same time, the interface will have the same response.

It may be useful to add MQTT for node-red or other integrations so I'm keeping this on my list.