-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Feature Request: MQTT - only report valid data #49
Comments
I am attaching a patch that I believe fixes the reported behaviour in a neat way. |
thank you for contributing, I will check that. |
Hi, I think the mMqtt.loop(); should be called with with each ticker interval (and not only if new mqtt data is available), because otherwise the mqqt connection does not get refreshed: if(checkTicker(&mTicker, 1000)) { Thanks! |
good point I'll give it a try. I'll check the documentation about the loop function how often it must be called at least. |
Hi folks, This is a great piece of software. It comes very handy for my own little solar installation and it looks amazing in Domoticz. Thanks to all of you who got this started and contributed to it.
I believe there is a small issue with the MQTT implementation. Currently it reports data such as the frequency, voltage, individual panel power all night, even though this data is no longer valid. Also, it skips to report the zero on the current total power. Therefore the current total power reports some small number all night, which a home automation system then integrates to a small (wrong) number of Wh of solar power produced throughout the night hours. This spoils the statistics.
Expected behaviour:
a) if a zero is read from the inverter a zero should be reported on mqtt
b) if new data is read from the inverter it should be reported on mqtt
c) if there is no new data from the inverter, nothing should be reported on mqtt
d) Ideally, the last thing reported on mqtt in the evening is a zero value
Questions:
The text was updated successfully, but these errors were encountered: