[astro] Add option to force event to occur (#14132)

* fix issue 11424

Signed-off-by: lsiepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel
2023-01-29 22:15:38 +01:00
committed by GitHub
parent 9001ee7426
commit 15a25db130
7 changed files with 173 additions and 14 deletions

View File

@@ -130,6 +130,12 @@ OR
sunset is 22:10 but `latest` is set to 20:00 so the event/datetime value is moved 20:00.
**Force event:** For each trigger channel and `start`, `end` datetime value, you can force the `earliest`, `latest` time of the day, when the event is actually not taking place (e.g. astronomic dawn during summer in Sweden)
e.g `sun#astroDawn earliest=6:00, latest=20:00 forceEvent=true`
astronomic dawn start is null but `earliest` is set to 06:00 so the event/datetime value is set to 06:00.
## Full Example
Things: