From 4bda286b4de1bac2b28a9579537a201ca96548c3 Mon Sep 17 00:00:00 2001 From: Flole998 Date: Fri, 2 Dec 2022 21:11:47 +0100 Subject: [PATCH] Document timeOnly option for DateTimeTrigger (#1936) This feature was added in openhab-core#3051 Signed-off-by: Flole Signed-off-by: Flole --- configuration/rules-dsl.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configuration/rules-dsl.md b/configuration/rules-dsl.md index ea5088f27..3f515ac9b 100644 --- a/configuration/rules-dsl.md +++ b/configuration/rules-dsl.md @@ -167,12 +167,12 @@ So in Rules where the Rule needs to know what the command was, use the `received ### Time-based Triggers -You can either use some pre-defined expressions for timers or use a [cron expression](https://www.quartz-scheduler.org/documentation/quartz-2.2.2/tutorials/tutorial-lesson-06.html) instead: +You can either use some pre-defined expressions for timers or use a [cron expression](https://www.quartz-scheduler.org/documentation/quartz-2.2.2/tutorials/tutorial-lesson-06.html) or an item instead: ```java Time is midnight Time is noon -Time is +Time is [timeOnly] Time cron "" ``` @@ -188,6 +188,8 @@ A cron expression takes the form of six or optionally seven fields: You may use the generator at [FreeFormatter.com](https://www.freeformatter.com/cron-expression-generator-quartz.html) to generate your cron expressions. +When using an item and you want to ignore the date-portion of that item the `timeOnly` option can be used. + ### System-based Triggers System-based triggers are provided as described in the table below: