-
-
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
MQTT reports zero values when no valid data is available #397
Comments
Proposed patch below, seems to resolve the issue for me.
|
@Argafal this is only preventing individual values being sent for inverters which are not (yet) available, which is a good thing [TM] and should address your point 4. I understand that both 1. & 2. can neither be easily fixed on Sending (our) nor Receiving (in your case Domoticz) end of the MQTT communication. But what is the result / warning / error in case of 1. Domoticz realising that the value is going down and not continuously rising ? Could you use NodeRed or some other intermediary to validate the data coming in single pieces and not as a concise JSON value for 2. ? @lumapu I believe we also had point 3. on our Todo list once in a while:
Should we create a separate issue for the "multiple MQTT values as one concise JSON topic" feature request ? |
|
@lumapu in order to prevent empty or uninitialized data to be sent via MQTT for each inverter, |
Running 0.5.32, 64fb587, with three inverters.
In a setup with more than one inverter, MQTT sends data for inverters that are not yet available. These data are zero. See inverter/Second in the example below.
This behaviour causes downstream issues: MQTT listeners such as Domoticz expect only valid data. Counters such as YieldTotal must be strictly increasing. Since zero values are reported in-between valid data, statistics break down on the receiving end.
Considerations:
The text was updated successfully, but these errors were encountered: