mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-16 07:16:30 +00:00
Added %utctime% as rules variable
Was in the docs but not implemented
This commit is contained in:
parent
936d7844d4
commit
2224e56e1b
@ -476,6 +476,7 @@ bool RuleSetProcess(uint8_t rule_set, String &event_saved)
|
||||
RulesVarReplace(commands, stemp, SettingsText(SET_MEM1 +i));
|
||||
}
|
||||
RulesVarReplace(commands, F("%TIME%"), String(MinutesPastMidnight()));
|
||||
RulesVarReplace(commands, F("%UTCTIME%"), String(UtcTime()));
|
||||
RulesVarReplace(commands, F("%UPTIME%"), String(MinutesUptime()));
|
||||
RulesVarReplace(commands, F("%TIMESTAMP%"), GetDateAndTime(DT_LOCAL));
|
||||
RulesVarReplace(commands, F("%TOPIC%"), SettingsText(SET_MQTT_TOPIC));
|
||||
|
Loading…
x
Reference in New Issue
Block a user