mirror of https://github.com/arendst/Tasmota.git
Add command ``RuleTimer0`` to access all RuleTimers at once
Add command ``RuleTimer0`` to access all RuleTimers at once (#10352)
This commit is contained in:
parent
2f120d86a0
commit
619e4bbfb5
|
@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
|
|||
- Command ``VirtualCT`` to simulate or fine tune CT bulbs with 3,4,5 channels (#10311)
|
||||
- Command ``SetOption118 1`` to move ZbReceived from JSON message and into the subtopic replacing "SENSOR" default (#10353)
|
||||
- Command ``SetOption119 1`` to remove the device addr from json payload, can be used with zb_topic_fname where the addr is already known from the topic (#10355)
|
||||
- Command ``RuleTimer0`` to access all RuleTimers at once (#10352)
|
||||
|
||||
### Breaking Changed
|
||||
- Replaced MFRC522 13.56MHz rfid card reader GPIO selection from ``SPI CS`` by ``RC522 CS``
|
||||
|
|
|
@ -59,6 +59,7 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota
|
|||
## Changelog v9.2.0.2
|
||||
### Added
|
||||
- Command ``CTRange`` to specify the visible CT range the bulb is capable of [#10311](https://github.com/arendst/Tasmota/issues/10311)
|
||||
- Command ``RuleTimer0`` to access all RuleTimers at once [#10352](https://github.com/arendst/Tasmota/issues/10352)
|
||||
- Command ``VirtualCT`` to simulate or fine tune CT bulbs with 3,4,5 channels [#10311](https://github.com/arendst/Tasmota/issues/10311)
|
||||
- Command ``SetOption118 1`` to move ZbReceived from JSON message and into the subtopic replacing "SENSOR" default [#10353](https://github.com/arendst/Tasmota/issues/10353)
|
||||
- Command ``SetOption119 1`` to remove the device addr from json payload, can be used with zb_topic_fname where the addr is already known from the topic [#10355](https://github.com/arendst/Tasmota/issues/10355)
|
||||
|
|
|
@ -2124,9 +2124,10 @@ void CmndRule(void)
|
|||
|
||||
void CmndRuleTimer(void)
|
||||
{
|
||||
if (XdrvMailbox.index > MAX_RULE_TIMERS)
|
||||
return;
|
||||
int i = XdrvMailbox.index, max_i = XdrvMailbox.index;
|
||||
if (XdrvMailbox.index > MAX_RULE_TIMERS) { return; }
|
||||
|
||||
uint32_t i = XdrvMailbox.index;
|
||||
uint32_t max_i = XdrvMailbox.index;
|
||||
if (0 == i) {
|
||||
i = 1;
|
||||
max_i = MAX_RULE_TIMERS;
|
||||
|
@ -2135,7 +2136,7 @@ void CmndRuleTimer(void)
|
|||
float timer_set = evaluateExpression(XdrvMailbox.data, XdrvMailbox.data_len);
|
||||
timer_set = (timer_set > 0) ? millis() + (1000 * timer_set) : 0;
|
||||
#else
|
||||
unsigned long timer_set = (XdrvMailbox.payload > 0) ? millis() + (1000 * XdrvMailbox.payload) : 0;
|
||||
uint32_t timer_set = (XdrvMailbox.payload > 0) ? millis() + (1000 * XdrvMailbox.payload) : 0;
|
||||
#endif // USE_EXPRESSION
|
||||
if (XdrvMailbox.data_len > 0) {
|
||||
for ( ; i <= max_i ; ++i ) {
|
||||
|
|
Loading…
Reference in New Issue