-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
[Feature Request] Update/migrate lucid #51
Comments
Let me know if some help is needed there |
I have the bulk of it migrated, but there are a lot of customizations in rule.py that I'm vacillating on what to do with them. Same with the utils.py. I'll get some specifics together for discussion. Testing help will be much appreciated. You can check progress here (but not ready for testing yet). |
Great, let me know if needed for testing / helping |
Hi there @openhab-5iver As I wrote on our slack channel I've been quite busy but I'm slowly getting a little bit more time that I can spend on my HA system.
Cheers! |
Anyway, I've started to work with this today. :) |
Strange... I saw your first post and thought I had replied! I've committed most (all? I need to check my local repo) of my changes to the lucid-migration branch. When I saw you posting in the forum about upgrading OH, I cringed because this was not done yet. I'm working on a Jython addon, but will put that down and move this to first in my queue. IIRC, everything but some of the utils.py and rules.py were left. My plan was to make /community/lucid/ directories for any modules and scripts that did not fit into core. Autoremote, ClickaTel and Sonos should be complete, and IdeAlarm should be close. Here are my current priorities for this repo:
I'll get back to work on lucid tonight. Give me... 2 days, and then you should take a look at it (or whenever you're available 😄), and provide your feedback. Hopefully, it will be in a state for testing. If you don't like how it's looking, we can make changes or start over. My main concern has been backwards compatibility, but since people will have to modify their scripts and modules to work with the API changes anyhow, I'm not sure how big of a concern this really is. |
I'm so happy to know about the progress and your plans. I'm sure it will be really great. I believe that as long as there will be a "release notice" users won't mind any breaking changes. After all, major benefits are introduced. I will prioritize testing and contributing (whenever I am able to) and it seems that I'll have the time to do it the coming days. Please just say where you think that I can be of any kind of help. I,ve set up my environment here and I have 2 OH installations that I can switch between. I have also reinstalled the Slack app on my cellphone so I'll get instant notifications when communicating on openHAB Jython Scripting on Slack 2 questions. (Can also be discussed on Slack if you wish)
Thanks for all the work you are doing Scott. Cheers! |
The community configuration files are done like this and use the name
Yes, but please submit a PR so we can discuss the content... I don't think the jar and personal notes need to be in there. I've synced the lucid-migration branch with master and have committed my changes from the last couple days. I need to take a break and run over to help a friend setup OH(!). I'll keep working on this tomorrow. I have not tested much, but most things should be functional. If you have time, your testing and feedback would be very much appreciated! Check out the PR too... #91. |
Thanks. I've submitted a PR. I've removed the personal notes file but I've kept the jar file for now. |
I'm a bit tired after migrating my production scripts the whole day. I couldn't go all the way to OH 2.5M1 due to that cron triggers are not working. I had to downgrade. Anyway now on OH 2.4 stable. I might have found a bug. When using the system started trigger, the script won't trigger at all
Am I right? Another question, the |
Correct.
I just tested and it is working correctly. However, you will need S1566 or newer for 'System started', since openhab/openhab-core#520 did not get merged until after M1. That's why I had been waiting to put it in. I had been thinking that the package renaming was going to be breaking and so I'd put it in with those changes. I'm glad you brought this up, since I have not put that requirement into the documentation yet. Sorry if you spun your wheels on this! If you don't want to use a snapshot, just add the function to the script... helloWorldCronDecorators(None). |
Thanks for the answers @openhab-5iver Since I'm updating my production environment I'll try to find any OH version that's working. I can't do with the 2.5M1 due to the cron bug. Maybe it's possible to install a snapshot that has been proven to be quite stable.... Maybe you can recommend a version? Is this a good place for me to bring up various questions now when I'm continuing my testing or is there a better place? Cheers! |
What cron bug?
Actually, the current one has been good for me... 1597. I'm using it in production.
How about a forum post? Others may learn from it too! Maybe a call out to the other lucideers? |
The proper name of the bug is Scheduler errors on startup
Thanks. I'll try it.
Of course. I'll try to do that unless it's related to the update/migration of Lucid and the latest changes in openhab-helper-libraries. In the latter case, I'll just post here then. Thanks! ;) |
I tried snapshot 1597 and things started to work well except for RFXtrx stuff that I'll have to investigate later. I have converted almost all my personal jython scripts and things are running extremely well. I haven't really found anything that's not working. I realize how much hard work you've put into this project @openhab-5iver . This will be very valuable for the community and together with the new documentation it wouldn't surpise me if jython scripting it will be the first choise for someone interested to start with openHab. I have thought of a few improvements, just on the idea stage ... Just ideas not yet ready to propose as enhancements. You don't have to response to these. I just write them down here.
Wishing you a nice weekend! |
I planned to look into this when adding/updating more ModuleTypes, including adding startup trigger into OHC. Returning event.triggerType would be nice too, so I'll see if I can't get that approved too. Thank you for the kudos!
This is also reported in #59 and I have an open PR that will hopefully help with this. I'll need to test again, but I was pretty sure this is already resolved for errors in modules that are called from inside a rule that is created with the rule decorator.
I like that idea... core.utils would be a good place for it. I've opened #134 for this. |
No description provided.
The text was updated successfully, but these errors were encountered: