Allow rule processing on single Status command

Allow rule processing on single Status command only
This commit is contained in:
Theo Arends 2020-05-10 11:10:55 +02:00
parent 89b130b45a
commit 02f61a5259
1 changed files with 5 additions and 0 deletions

View File

@ -561,6 +561,11 @@ void CmndStatus(void)
#ifdef USE_SCRIPT_STATUS
if (bitRead(Settings.rule_enabled, 0)) Run_Scripter(">U",2,mqtt_data);
#endif
if (payload) {
XdrvRulesProcess(); // Allow rule processing on single Status command only
}
mqtt_data[0] = '\0';
}