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

MQTT - only report if data has been actually received #55

Closed
Argafal opened this issue May 24, 2022 · 2 comments
Closed

MQTT - only report if data has been actually received #55

Argafal opened this issue May 24, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Argafal
Copy link
Contributor

Argafal commented May 24, 2022

Current behaviour: If one out of multiple inverters is offline (e.g. one inverter gets unplugged), ahoy shows all values of the unplugged inverter as zeros. Ahoy also sends those zeros on MQTT. This is probably caused by the data from the other (online) inverters setting the mMqttNewDataAvailable boolean to true.

Expected behaviour: Instead of showing zeros, ahoy should show that this one inverter is offline. At the very least, the displayed values should not be zero but "n/a" or -1 or the like, something that clearly shows that the values of this inverter are invalid. Nothing should be reported on MQTT in this situation. This will allow the downstream MQTT receiver to flag the inverter as offline/"no recent data received".

@lumapu
Copy link
Owner

lumapu commented May 24, 2022

ok understand. Then the flag must be dependent on the inverter.
The offline/online information is already there, I'll introduce a new MQTT field which shows the current online status.

I think there are other issues while disconnecting one of the defined inverters. For now I spent no time on debugging this.

@lumapu lumapu added the enhancement New feature or request label May 29, 2022
@lumapu
Copy link
Owner

lumapu commented May 29, 2022

fixed in 0.4.13

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

No branches or pull requests

2 participants