-
-
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
OH3 callScript - scripts are not executed #1990
Comments
I am using openhabian. Just upgraded using the standard upgrade menu and have exactly the same issue. All my .script files are not found. Let us know if we can support to idetify the root cause, |
I only had one script, calculating holiday dates. I took the chance to eliminate that with calculations using Ephemeris, so I'm no longer affected, but obviously others depend much more on this functionality. And as it is a documented feature ist should work again. My thoughts: |
Thank you @kaikreuzer for fixing this. Though, the workaround does not do the trick. Same error message in the log, also after a restart. |
Same result in my setup, I confirm holgerfriedrich's test result |
It does work for me, however you need to use |
Thanks, @bern77! This works fine for now. |
Glad to hear that we have found a workaround! |
Fixes #1990 Signed-off-by: Kai Kreuzer <kai@openhab.org>
All the above is interestig, but being new to Openhabian 3 I am trying to do as much within the UI as I can as I see this to be the future. So rather than using .script files I've tried developing scripts within the UI and then using them. Unfortunately, callScript still does not work with scripts developed in this manner and the workaround above does not work because, as far a I can determine, there is no .script file to rename. So does anyone have any suggestions for a workaround when scripts are developed in the UI? |
Fixes #1990 Signed-off-by: Kai Kreuzer <kai@openhab.org>
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/help-needed-with-rule-in-openhab3/121780/1 |
Fixes openhab#1990 Signed-off-by: Kai Kreuzer <kai@openhab.org> GitOrigin-RevId: 1c3e431
Unfortunatelly - OH version 4.1.1 - the problem is come back :-( Regresion problem :-( My script is in "scripts" folder but I can not call him :-( callScript("scriptName.script") - "cannot be found" Windows 11 platform, OH 4.1.1 UPDATE: |
OH does not have any way to write to those files. So I would guess that you have something else going on. If you were running on an SD card I'd say weird stuff like this can happen from not shutting down nicely or the SD card wearing out. Since this is Windows presumably running off of an SDD or HDD it's a mystery. But if correcting that file to make it a proper script works I don't think this is a regression of this issue. |
Executing scripts via
callScript
seems to be broken:Script is located in the scripts folder, it worked before with OH25 before upgrade.
There seem to be other users affected, see
See also https://community.openhab.org/t/scripts-in-oh3/110843/5
Any hint appreciated. Can I tune the log level to obtain more information (I tried, but I have not been able to guess the right logger name).
The text was updated successfully, but these errors were encountered: