diff --git a/tasmota/xdrv_10_rules.ino b/tasmota/xdrv_10_rules.ino index 31b8e9f46..4a6d3c9c1 100644 --- a/tasmota/xdrv_10_rules.ino +++ b/tasmota/xdrv_10_rules.ino @@ -720,7 +720,7 @@ bool RuleSetProcess(uint8_t rule_set, String &event_saved) if ((ucommand.indexOf(F("IF ")) == -1) && (ucommand.indexOf(F("EVENT ")) != -1) && (ucommand.indexOf(F("BACKLOG ")) == -1)) { - commands = F("backlog ") + commands; + commands = String(F("backlog ")) + commands; } RulesVarReplace(commands, F("%VALUE%"), Rules.event_value);