mirror of https://github.com/arendst/Tasmota.git
Allow rule processing on single Status command
Allow rule processing on single Status command only
This commit is contained in:
parent
89b130b45a
commit
02f61a5259
|
@ -561,6 +561,11 @@ void CmndStatus(void)
|
||||||
#ifdef USE_SCRIPT_STATUS
|
#ifdef USE_SCRIPT_STATUS
|
||||||
if (bitRead(Settings.rule_enabled, 0)) Run_Scripter(">U",2,mqtt_data);
|
if (bitRead(Settings.rule_enabled, 0)) Run_Scripter(">U",2,mqtt_data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (payload) {
|
||||||
|
XdrvRulesProcess(); // Allow rule processing on single Status command only
|
||||||
|
}
|
||||||
|
|
||||||
mqtt_data[0] = '\0';
|
mqtt_data[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue