mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-22 18:26:30 +00:00
add 2 global accessible states for running and finished discovery
This commit is contained in:
parent
217addc2bb
commit
47f1b2fcd0
@ -967,6 +967,7 @@ void HAssDiscovery(void)
|
||||
|
||||
if (Settings.flag.hass_discovery || (1 == hass_mode))
|
||||
{ // SetOption19 - Control Home Assistantautomatic discovery (See SetOption59)
|
||||
hass_mode = 2;
|
||||
// Send info about buttons
|
||||
HAssAnnounceButtons();
|
||||
|
||||
@ -985,6 +986,7 @@ void HAssDiscovery(void)
|
||||
// Send info about status sensor
|
||||
HAssAnnounceDeviceInfoAndStatusSensor();
|
||||
masterlog_level = 0; // Restores weblog level
|
||||
hass_mode = 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user