mirror of https://github.com/arendst/Tasmota.git
Fix bug on rule variable %topic%
This commit is contained in:
parent
47c27481f2
commit
09871f8668
|
@ -711,7 +711,7 @@ bool RuleSetProcess(uint8_t rule_set, String &event_saved)
|
||||||
RulesVarReplace(commands, F("%UTCTIME%"), String(UtcTime()));
|
RulesVarReplace(commands, F("%UTCTIME%"), String(UtcTime()));
|
||||||
RulesVarReplace(commands, F("%UPTIME%"), String(MinutesUptime()));
|
RulesVarReplace(commands, F("%UPTIME%"), String(MinutesUptime()));
|
||||||
RulesVarReplace(commands, F("%TIMESTAMP%"), GetDateAndTime(DT_LOCAL));
|
RulesVarReplace(commands, F("%TIMESTAMP%"), GetDateAndTime(DT_LOCAL));
|
||||||
RulesVarReplace(commands, F("%TOPIC%"), SettingsText(SET_MQTT_TOPIC));
|
RulesVarReplace(commands, F("%TOPIC%"), mqtt_topic);
|
||||||
#if defined(USE_TIMERS) && defined(USE_SUNRISE)
|
#if defined(USE_TIMERS) && defined(USE_SUNRISE)
|
||||||
RulesVarReplace(commands, F("%SUNRISE%"), String(SunMinutes(0)));
|
RulesVarReplace(commands, F("%SUNRISE%"), String(SunMinutes(0)));
|
||||||
RulesVarReplace(commands, F("%SUNSET%"), String(SunMinutes(1)));
|
RulesVarReplace(commands, F("%SUNSET%"), String(SunMinutes(1)));
|
||||||
|
|
Loading…
Reference in New Issue