-Implement BLE retry after failed hybrid lockaction

This commit is contained in:
iranl
2025-01-04 21:24:12 +01:00
parent e1ca074b37
commit 9d7cd00d2d
2 changed files with 6 additions and 3 deletions

View File

@@ -1091,8 +1091,11 @@ LockActionResult NukiWrapper::onLockActionReceived(const char *value)
{
if(_preferences->getBool(preference_official_hybrid_actions, false))
{
_nukiOfficial->setOffCommandExecutedTs(espMillis() + 2000);
_offCommand = action;
if(_preferences->getBool(preference_official_hybrid_retry, false))
{
_nukiOfficial->setOffCommandExecutedTs(espMillis() + 2000);
_offCommand = action;
}
_network->publishOffAction((int)action);
}
else