-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[Automation] Absolute datetime module type #683
Comments
Can't it be done by a CRON trigger without wildcards? |
For usability reasons. |
David, could you provide more description for what an AbsoluteDateTimeTrigger would be? Is it just a specific time of day, does it recurring, every day or certain days of the week, etc.? I recall there was a PR a while back for a time/date related trigger (or enhancement). Possibly related? |
I can even show you the description json: https://github.com/openhab/openhab2-addons/pull/5243/files?file-filters%5B%5D=.json#diff-bd55a2a4a53c76f4d2e35465addd43b3 I have implemented this trigger (and other module types) for the hue emulation service. Another time related trigger is https://github.com/openhab/openhab2-addons/pull/5243/files?file-filters%5B%5D=.json#diff-3cc0fa19ac95bd0550c20d712c8adf31 (Timer Trigger) |
This is what I was thinking of, but it was a condition. Are you planning on a new handler, or maybe using TimeOfDayTriggerHandler? As far as functionality, this is very much needed! As for ModuleTypes, it would be nice to have as many time-based triggers consolidated into the same one, where the ParameterOptions would become visible/accessible based on previous selections. At least, that is the direction I'm hoping we end up going! That way, the initial dropdown/selection is a short list of triggers or conditions (Time, Item events, Channel Events, Thing events, system events, etc.) that open up with more options. Not something that can be achieved with a resource bundle. |
Unfortunately our current config description system doesn't know about dependent parameters. So to not confuse the user with dozen parameters for a few module types I would rather say we have many module types that do exactly one job right with only a few parameters. The module types of the hue emulation service can be moved to core at some point when they have proven to be useful. Check the code. it's not only a resource bundle, but actual Java code. |
I looked for it briefly, but couldn't find handlers. |
Would be happy about more comments from the automation experts? |
The implementation is done and available in the hue emulation service in openhab2-addons. If others find it useful, we can move that part to core (the package names are already hue emulation service independent). So might make sense to close this issue here? |
As long as no one claims that he needs it / find it useful we can perhaps close this one. |
Do we have any of those?!
Sorry I missed this earlier today. No, this shouldn't be closed! This is core functionality that is needed and putting it into an addon would be the wrong thing to do. Same for the HTTPAction that has been added to hueemulation. This should be an update to the existing core HTTP action, which will need to be done anyway. IMO, the PR should not be merged until these are removed. I brought this up 2 weeks ago, with no response from maintainers (other than David).
Yes, please! |
|
No... don't recall ever hearing that. So, I take it that what you were asking was as facetious as my response? 🙂 |
I will be really happy if there are more comments from automation "experts" or let's say from guys with knowledge (not necessary an expert one) of this subsystem. I did not realize that your question has been facetious, sorry. https://www.linguee.de/deutsch-englisch/uebersetzung/auf+die+goldwaage+legen.html |
Sometimes you just need things done. |
I hear what you are saying, but there could be more usage and testing of them if they went directly into core. And since this is where they would end up anyhow, it is also less technical debt to have to clean up later. |
Signed-off-by: Yannick Schaus <github@schaus.net>
There is currently a "GenericCronTrigger" for recurring events, but the core is missing an "AbsoluteDatTimeTrigger".
Do you think it makes sense to add one?
The text was updated successfully, but these errors were encountered: