Fix #387: Allow a little bit more loss before HASS shows unavailable
This commit is contained in:
parent
f171555de8
commit
40203f7316
@ -120,7 +120,7 @@ void MqttHassPublishingClass::publishField(std::shared_ptr<InverterAbstract> inv
|
|||||||
createDeviceInfo(deviceObj, inv);
|
createDeviceInfo(deviceObj, inv);
|
||||||
|
|
||||||
if (Configuration.get().Mqtt_Hass_Expire) {
|
if (Configuration.get().Mqtt_Hass_Expire) {
|
||||||
root[F("exp_aft")] = Hoymiles.getNumInverters() * Configuration.get().Mqtt_PublishInterval * 2;
|
root[F("exp_aft")] = Hoymiles.getNumInverters() * Configuration.get().Mqtt_PublishInterval * 3;
|
||||||
}
|
}
|
||||||
if (devCls != 0) {
|
if (devCls != 0) {
|
||||||
root[F("dev_cla")] = devCls;
|
root[F("dev_cla")] = devCls;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user