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
OH #1518: issues with "now" implementations #553
Comments
Same issue here. Tried a number of things, really, it looks like a great deal of Joda seems to be broken. This issue completely breaks the rules for heating/cooling my house so it's quite a problem. Temporary workaround for me (really I just need the current epoch time) is to revert to some deprecated stuff.
|
For me I resolved it by reverting to snapshot 1512. |
@maggu2810 I assume this must be in some way related to the fact that Jodatime is not part of model.persistence anymore. I can see that Jodatime is installed as a separate bundle and there are import-package statements in model.persistence, so I don't see any obvious problem. Do you have an idea, why this broke? |
@nesys I fixed your initial comment. Please use triple backticks for multiline preformatted text. |
I don't have the time to dig into the models. Wasn't the intention to get rid of Joda time at all? |
Yes, but that hasn't been implemented yet, so I guess we have to fix this regression first... |
I had a look at the ESH manifests. joda time has been added to the persistence model bundle. Perhaps an import gets lost. |
Yes, that's also what I saw and mentioned above:
The model.persistence bundle is fully resolved and active, so it does not seem to miss anything. I am still struggling to get the app.bndrun working, so I currently cannot test & debug in the IDE... Will try to get that working first. |
Strange, why is this issue closed if I commit to a repository of mine? |
guys thanks for your support here. @maggu2810 understood and will do next time |
Because you say it fixes this issue and you have write access to this repo here - that's how the Github auto-closing feature works :-) |
Fixes: #553 Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
If I commit to branch "fit-xyz" into my repository the issue get's not closed. Otherwise I will never be able to create PRs without already closing the issue. But that's annoying. |
Many thanks for the fix, @maggu2810, I can confirm that "now" now works smoothly in the latest distro 1522! |
Hi team,
after updating to #1518 I've encountered issues in all my rules where I implement solutions with persistence (eg. lastUpdate.isAfter(now.minusSeconds(6)) or averageSince(now.minusMinutes(2)) )
Let me share an example:
2019-02-09 12:14:43.879 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'presence.rules', using it anyway:
The method createTimer(Object, Procedure0) from the type ScriptExecution refers to the missing type Object
The method lastUpdate(Item) from the type PersistenceExtensions refers to the missing type Object
The method lastUpdate(Item) from the type PersistenceExtensions refers to the missing type Object
The method lastUpdate(Item) from the type PersistenceExtensions refers to the missing type Object
My rule is:
When the rule is triggered, I see this error in my logs (and the rule not works):
2019-02-09 12:18:22.223 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Welcome home my dear': The name 'now' cannot be resolved to an item or type; line 28, column 75, length 3
Any suggestion? is that related to ESH bundles?
I've also a community topic open:
https://community.openhab.org/t/issues-in-rules-after-upgrading-to-1518/67136/5
Thanks for your support
Kind Regards
Andrea
The text was updated successfully, but these errors were encountered: