From ecf2504edf5bca9d7676709d8dbbbb8c7672fc55 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:25:11 +0200 Subject: [PATCH] Fix invalid rule handling --- tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino b/tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino index 903262d5a..b095d3a6e 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_10_rules.ino @@ -918,7 +918,10 @@ bool RulesProcessEvent(const char *json_event) } bool RulesProcess(void) { - return RulesProcessEvent(XdrvMailbox.data); + if ((Settings->rule_enabled || BERRY_RULES) && !Rules.busy) { // Any rule enabled + return RulesProcessEvent(XdrvMailbox.data); + } + return true; } void RulesInit(void)