aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-03-09 21:20:55 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-03-09 21:20:55 +0100
commit4a299877d9e21f7d5d3ed860a4e8ba0bee74c226 (patch)
treee44543c948fd37c1ad1dd77e77aff2e27af044a3 /README.md
parentcf1425a33a857d386bb3dec8fb6b57fe2bc3ef92 (diff)
downloadautomato-4a299877d9e21f7d5d3ed860a4e8ba0bee74c226.tar.gz
add repeat and cooldown options to action
repeat: Specifies wether the condition needs to cycle through false to run agian cooldown: time in seconds the action won't run again after executing
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4058db8..54e6566 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,10 @@ but still inherit the globally set ones.
An *If-This-Then-That* style set of *triggers* and *commands*.
If all *triggers* are in a triggered state, the commands are executed.
+If `repeat` is `False`, the evaluation must cycle through `False` to run again.
+`cooldown` specifies the time in seconds the action will wait after running again,
+even if conditions are met.
+Both `repeat` and `cooldown` are optional and their defaults are `True` and `0`.
## Configuration
@@ -75,6 +79,8 @@ conditional:
`actions.yml`
```yaml
send-hello:
+ repeat: False
+ cooldown: 30
trigger:
- conditional:
interval: 30