Variable Timer Integration with Bathroom Heater

Hi all, I’m trying to set up a variable timer for my bathroom heater using OpenHAB. Previously, I used a fixed timer, but now I want to make it adjustable. I’ve created an item called Heattimer and set up a slider in my sitemap to adjust the minutes between 1 and 150. Here’s my rule setup:

plaintext
var variable_timer val Integer TIMER_TIME = TestTimer.state as Number

rule “Alexa Test”
when Item MySmartphone changed from OFF to ON
then
Echo_Livingroom_Speak.sendCommand(“Hello”)
variable_timer = createTimer(now.plusMinutes(TIMER_TIME), [|
Echo_Livingroom_Speak.sendCommand(“Again Hello”)
])
end

However, I’m encountering an error: Rule 'Alexa Test': An error occurred during the script execution: Could not invoke method: org.joda.time.DateTime.plusMinutes(int). I’m wondering if I need to import a specific library or if there’s an issue with how I’m handling the timer creation. Any insights or suggestions would be greatly appreciated!