From 80773f74c7c20a6efb21a1777064ce87c61e9d31 Mon Sep 17 00:00:00 2001 From: to-scho Date: Sun, 12 Jan 2020 15:40:31 +0100 Subject: [PATCH] initialize shutters when interlock is changed --- tasmota/support_command.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasmota/support_command.ino b/tasmota/support_command.ino index 6812085c6..2149bd083 100644 --- a/tasmota/support_command.ino +++ b/tasmota/support_command.ino @@ -1394,6 +1394,11 @@ void CmndInterlock(void) SetDevicePower(power, SRC_IGNORE); // Remove multiple relays if set } } +#ifdef USE_SHUTTER + if (Settings.flag3.shutter_mode) { // SetOption80 - Enable shutter support + ShutterInit(); // to update shutter mode + } +#endif // USE_SHUTTER } Response_P(PSTR("{\"" D_CMND_INTERLOCK "\":\"%s\",\"" D_JSON_GROUPS "\":\""), GetStateText(Settings.flag.interlock)); uint32_t anygroup = 0;