-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
OH4.1 M5 Failed to process script #1617
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-1-milestone-discussion/149502/156 |
Just to be sure:
|
2.yes on every start and when I use the device |
@J-N-K & @florian-h05 Would any of you have an idea why the ProfileFactory isn't found here anymore? |
I have seen that yesterday as well when upgrading to the latest snapshot. I have just checked my log from snapshot 3777, I guess it was build on 14.12.2023 (since I usually only have openHAB restarts after an upgrade and always upgrade to the latest snapshot), I cannot find that log message in the log from back then, so the problem must have been introduced afterwards. The JS Scripting add-on hasn’t changed since weeks, except for the upgrade of the openHAB JavaScript library, but that does not affect availability of the add-on. I think this is probably related to the slow start-up from #1616. |
@florian-h05 Unlikely, because according to the forum post it also happens on subsequent restarts which don't suffer from the slow startup issue. |
IIRC my log message was related to Item state transformations, but it only occured once and never again, I have now tested several recent milestones until the latest one 3792, and at least the Item state transformation works. |
When I used it this is written in the log
I will rename it later and maybe it will be found than I have another idea.... There is/was maybe an error in the docu....and someone updated sth. in another code https://community.openhab.org/t/inverted-settings-window-covering-device/150990/13?u=milo I will try and keep you posted later |
@miloit So you want to tell that it is solved? At least I cannot reproduce your issue, for me everything works fine. |
yes, it's solved depending what is correct now? the documentation or the code? @florian-h05 |
For me |
but in the past I needed the |
I guess back then it was
(https://github.com/openhab/openhab-distro/releases/tag/4.0.0) |
getting this error now
Failed to process script 'JS:rollershutter.js': Could not get script for UID 'JS:rollershutter.js'. [WARN ] [.thing.internal.CommunicationManager] - No ProfileFactory found which supports profile 'transform:JS' for link 'Window_covering_device_2__TZ3000_wptayaqr_Position -> deconz:windowcovering:000000000000:a4c1385ebde6490601:position'
But in OH4.1M4 no issue
/transform/rollershutter.js
(function(position) { var newposition = 100 - position; return newposition; }) (input)
item
Rollershutter myLivingShutter "Wohnzimmerd " { channel="deconz:windowcovering:000000000000:a4c1385ebde6490601:position"[profile="transform:JS", toItemScript="JS:rollershutter.js", toHandlerScript="JS:rollershuttertothing.js"] }
The text was updated successfully, but these errors were encountered: