Hi,
I have a few rules in which I have accessed “doubleValue” so far.
var Number dev = Math::abs((IGLR2_ValveOpening.deviationSince(now.minusMinutes(30))).doubleValue)
After the update to 4.2, I get the following error in these places:
2024-07-15 15:03:07.575 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'heat_eg_wohn-7' failed: 'doubleValue' is not a member of 'org.openhab.core.types.State'; line 300, column 32, length 69 in heat_eg_wohn
How do I rewrite the code for 4.2 correctly?