diff --git a/docs/MQTT_Topics.md b/docs/MQTT_Topics.md index 138c8191..32337487 100644 --- a/docs/MQTT_Topics.md +++ b/docs/MQTT_Topics.md @@ -55,11 +55,11 @@ serial will be replaced with the serial number of the inverter. ### Inverter limit specific topics -cmd topics are used to set values. Settings topics are updated from values set in the inverter. +cmd topics are used to set values. Status topics are updated from values set in the inverter. | Topic | R / W | Description | Value / Unit | | ----------------------------------------- | ----- | ---------------------------------------------------- | -------------------------- | -| [serial]/settings/limit | R | Current applied production limit of the inverter | % of total possible output | +| [serial]/status/limit_relative | R | Current applied production limit of the inverter | % of total possible output | | [serial]/cmd/limit_persistent_relative | W | Set the inverter limit as a percentage of total production capability. The value will survive the night without power | % | | [serial]/cmd/limit_persistent_absolute | W | Set the inverter limit as a absolute value. The value will survive the night without power | Watt (W) | | [serial]/cmd/limit_nonpersistent_relative | W | Set the inverter limit as a percentage of total production capability. The value will reset to the last persistent value at night without power | % | diff --git a/src/MqttPublishing.cpp b/src/MqttPublishing.cpp index b56a913e..04a9874d 100644 --- a/src/MqttPublishing.cpp +++ b/src/MqttPublishing.cpp @@ -63,7 +63,7 @@ void MqttPublishingClass::loop() if (inv->SystemConfigPara()->getLastUpdate() > 0) { // Limit - MqttSettings.publish(subtopic + "/settings/limit", String(inv->SystemConfigPara()->getLimitPercent())); + MqttSettings.publish(subtopic + "/status/limit_relative", String(inv->SystemConfigPara()->getLimitPercent())); } uint32_t lastUpdate = inv->Statistics()->getLastUpdate();