Publish calculated MPPT metrics (#475)
* VE.Direct MPPT MQTT: remove trailing whitespace * VE.Direct MPPT MQTT: publish P, IPV and E to MQTT those values are calculated by OpenDTU-OnBatery and are part of the web application live view, but were previously not published through MQTT. closes #376.
This commit is contained in:
parent
7fb26e1e81
commit
f7abbdbe06
@ -83,14 +83,26 @@ void MqttHandleVedirectClass::loop()
|
||||
value = VeDirectMppt.veFrame.I;
|
||||
MqttSettings.publish(topic + "I", value);
|
||||
}
|
||||
if (_PublishFull || VeDirectMppt.veFrame.P != _kvFrame.P) {
|
||||
value = VeDirectMppt.veFrame.P;
|
||||
MqttSettings.publish(topic + "P", value);
|
||||
}
|
||||
if (_PublishFull || VeDirectMppt.veFrame.VPV != _kvFrame.VPV) {
|
||||
value = VeDirectMppt.veFrame.VPV;
|
||||
MqttSettings.publish(topic + "VPV", value);
|
||||
}
|
||||
if (_PublishFull || VeDirectMppt.veFrame.IPV != _kvFrame.IPV) {
|
||||
value = VeDirectMppt.veFrame.IPV;
|
||||
MqttSettings.publish(topic + "IPV", value);
|
||||
}
|
||||
if (_PublishFull || VeDirectMppt.veFrame.PPV != _kvFrame.PPV) {
|
||||
value = VeDirectMppt.veFrame.PPV;
|
||||
MqttSettings.publish(topic + "PPV", value);
|
||||
}
|
||||
if (_PublishFull || VeDirectMppt.veFrame.E != _kvFrame.E) {
|
||||
value = VeDirectMppt.veFrame.E;
|
||||
MqttSettings.publish(topic + "E", value);
|
||||
}
|
||||
if (_PublishFull || VeDirectMppt.veFrame.H19 != _kvFrame.H19) {
|
||||
value = VeDirectMppt.veFrame.H19;
|
||||
MqttSettings.publish(topic + "H19", value);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user