diff --git a/PresenceDetection.cpp b/PresenceDetection.cpp index 6a21002..c384433 100644 --- a/PresenceDetection.cpp +++ b/PresenceDetection.cpp @@ -40,7 +40,11 @@ void PresenceDetection::update() vTaskDelay( 5000 / portTICK_PERIOD_MS); if(_timeout < 0) return; - if(_devices.size() == 0) return; + if(_devices.size() == 0) + { + _network->publishPresenceDetection(";;"); + return; + } memset(_csv, 0, presence_detection_buffer_size); _csvIndex = 0; diff --git a/Version.h b/Version.h index 3a47e2c..0d6b3c3 100644 --- a/Version.h +++ b/Version.h @@ -1,3 +1,3 @@ #pragma once -#define nuki_hub_version "2.5" \ No newline at end of file +#define nuki_hub_version "2.6" \ No newline at end of file diff --git a/webflash/nuki_hub.bin b/webflash/nuki_hub.bin index 7f20226..566e1a1 100644 Binary files a/webflash/nuki_hub.bin and b/webflash/nuki_hub.bin differ