From 47f1b2fcd01a58ddc6603d5714033d4645adb3d5 Mon Sep 17 00:00:00 2001 From: Staars Date: Sat, 26 Sep 2020 19:24:22 +0200 Subject: [PATCH] add 2 global accessible states for running and finished discovery --- tasmota/xdrv_12_home_assistant.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xdrv_12_home_assistant.ino b/tasmota/xdrv_12_home_assistant.ino index ea3245444..0bc1c9c32 100644 --- a/tasmota/xdrv_12_home_assistant.ino +++ b/tasmota/xdrv_12_home_assistant.ino @@ -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; } }