-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DateTime
trigger
#154
Add DateTime
trigger
#154
Conversation
This adds support for the DateTime trigger, which was added in openhab/openhab-core#2726. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
c729e79
to
5d67dba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Only one small question on docs, but other then that looks good to merge.
@@ -22,8 +23,8 @@ | |||
* @property {string} oldStatus only for {@link triggers.ThingStatusChangeTrigger}: Previous state of Thing that triggered event | |||
* @property {string} newStatus only for {@link triggers.ThingStatusChangeTrigger}: New state of Thing that triggered event | |||
* @property {string} status only for {@link triggers.ThingStatusUpdateTrigger}: State of Thing that triggered event | |||
* @property {string} eventType for all triggers except {@link triggers.PWMTrigger}, {@link triggers.PIDTrigger}: Type of event that triggered event (change, command, time, triggered, update) | |||
* @property {string} triggerType for all triggers except {@link triggers.PWMTrigger}, {@link triggers.PIDTrigger}: Type of trigger that triggered event (for `TimeOfDayTrigger`: `GenericCronTrigger`) | |||
* @property {string} eventType for all triggers except {@link triggers.PWMTrigger}, {@link triggers.PIDTrigger}, time triggers: Type of event that triggered event (change, command, time, triggered, update) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when we say "time triggers", do we mean TimeOfDayTrigger
and DateTimeTrigger
? If so, should we just call those out directly ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We mean all three time triggers that we have:
TimeOfDayTrigger
GenericCronTrigger
DateTimeTrigger
Therefore, it is saving some space to just say time trigger, and if there are added any more time triggers in the future, we do not have to update the docs.
@digitaldan |
sorry, yes i'm fine, thanks! |
Fixes #153.
This adds support for the DateTime trigger, which was added in
openhab/openhab-core#2726.