I have the following problem to change my oh2 rule to oh3. This is the code line and I don’t know what to change.
var PercentType brightval = currentState.getBrightness()
And this is the log message.
2021-01-19 22:51:35.589 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘lichtwecker-8’ failed: An error occurred during the script execution: Could not invoke method: org.openhab.core.library.types.HSBType.getBrightness() on instance: 5 in lichtwecker
I think the command has changed… can somebody point me in the right direction?