diff --git a/Timers.md b/Timers.md index 4bb7d507..c7195b42 100644 --- a/Timers.md +++ b/Timers.md @@ -1,4 +1,4 @@ -  » v5.13.1 +**» v5.13.1** To control a device locally 16 timers are programmable. They can be configured with the `Timer` command followed by a JSON payload with optional parameters. For example: @@ -17,13 +17,15 @@ When `Mode 1` or `Mode 2` is used, `Latitude` and `Longitude` become available. Timer1 {"Arm":1,"Mode":2,"Time":"-2:23","Window":0,"Days":"11TW11S","Repeat":1,"Output":1,"Action":1} ``` +### Commands Command|Parameters :---|:--- Latitude|`` = set latitude Longitude|`` = set longitude -Timers|Timers control
  » v6.2.0
`0` = disable all timers
`1` = enable all timers
`2` = toggle all timers
-Timer\|Parameters for Timer\ where x = `1..16`
  » v6.2.0
`0` = clear parameters for Timer\
`1..16` = copy Timer\ parameters to Timer\
`{ "name":value ; .. }` = set all or individual parameters using JSON payload with names and values of data pairs from the table below +Timers|Timers control
`0` = disable all timers  » v6.2.0
`1` = enable all timers
`2` = toggle all timers
+Timer\|Parameters for Timer\ where x = `1..16`
`0` = clear parameters for Timer\  » v6.2.0
`1..16` = copy Timer\ parameters to Timer\
`{ "name":value ; .. }` = set all or individual parameters using JSON payload with names and values of data pairs from the table below +### JSON payload anatomy JSON Name|JSON Value :---|:--- Arm|`0` = disarm or disable timer
`1` = arm or enable timer @@ -33,4 +35,4 @@ Window|`0..15` = add or subtract a random number of minutes to `Time` Days|`SMTWTFS` = set day of weeks mask where `0` or `-` = OFF and any different character = ON Repeat|`0` = allow timer only once
`1` = repeat timer execution Output|`1..16` = select an output to be used if no rule is enabled -Action|`0` = turn output OFF
`1` = turn output ON
`2` = TOGGLE output
`3` = RULE/BLINK
  • If the Tasmota [Rules](#rules) feature has been activated by compiling the code (activated by default in all pre-compiled Tasmota binaries), a rule with `Clock#Timer=` will be triggered if written and turned on by the user.
  • If Rules are not compiled, BLINK output using [BlinkCount](#BlinkCount) parameters.
\ No newline at end of file +Action|`0` = turn output OFF
`1` = turn output ON
`2` = TOGGLE output
`3` = RULE/BLINK
If the Tasmota [Rules](#rules) feature has been activated by compiling the code (activated by default in all pre-compiled Tasmota binaries), a rule with `Clock#Timer=` will be triggered if written and turned on by the user.
If Rules are not compiled, BLINK output using [BlinkCount](#BlinkCount) parameters. \ No newline at end of file