publishh autodiscovery topics after reconnect

This commit is contained in:
technyon
2023-02-09 19:31:14 +01:00
parent 5c18b3233f
commit ac629b4e35
9 changed files with 52 additions and 3 deletions

View File

@@ -168,6 +168,10 @@ void NukiWrapper::update()
setupHASS();
}
}
if(_hassEnabled && _configRead && _network->reconnected())
{
setupHASS();
}
if(_rssiPublishInterval > 0 && (_nextRssiTs == 0 || ts > _nextRssiTs))
{
_nextRssiTs = ts + _rssiPublishInterval;