add 2 global accessible states for running and finished discovery

This commit is contained in:
Staars 2020-09-26 19:24:22 +02:00
parent 217addc2bb
commit 47f1b2fcd0

View File

@ -967,6 +967,7 @@ void HAssDiscovery(void)
if (Settings.flag.hass_discovery || (1 == hass_mode)) if (Settings.flag.hass_discovery || (1 == hass_mode))
{ // SetOption19 - Control Home Assistantautomatic discovery (See SetOption59) { // SetOption19 - Control Home Assistantautomatic discovery (See SetOption59)
hass_mode = 2;
// Send info about buttons // Send info about buttons
HAssAnnounceButtons(); HAssAnnounceButtons();
@ -985,6 +986,7 @@ void HAssDiscovery(void)
// Send info about status sensor // Send info about status sensor
HAssAnnounceDeviceInfoAndStatusSensor(); HAssAnnounceDeviceInfoAndStatusSensor();
masterlog_level = 0; // Restores weblog level masterlog_level = 0; // Restores weblog level
hass_mode = 3;
} }
} }