mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +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))
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user