Number:Time not correctly send?

I’m trying to create a small script to allows me to open a valve through the gardena binding. The setup is that you send first x-minutes to give water, and then open the valve. The device is smart enough to stop by itself after the x-minutes.

But when I run it (fe force 1 minute, then open valve), it starts fine.
But after a few seconds, my ‘1 minute’ is put on 60 minutes? Seems he’s recieving these 60 minutes from Gardena. Looks like Gardena didn’t catch the 1 minute?

Is it possible that my ‘1’ is wrong when I send this to the ‘Number:Time’ item?

items:

Number:Time VictorValveDur     "Besproeingstijd [%d m]"               	<stopwatch>        { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve#duration" }
Number:Time VictorValveDurCmd  "Data [%d]"                                                 { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve_commands#commandDuration" }
Switch      VictorValveStart   "Start [%s]"                                                { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve_commands#start_seconds_to_override" }
Switch      VictorValveStop    "Stop [%s]"                                                 { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve_commands#stop_until_next_task" }
Switch      VictorValvePause   "Data [%s]"                                                 { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve_commands#pause" }
Switch      VictorValveConti   "Data [%s]"                                                 { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve_commands#unpause" }

rule:

rule "Moestuin Besproeien voor x-minuten"
when
	Item  VictorStartXmin changed to 1
then
	VictorValveDurCmd.sendCommand(1)
	VictorValveStart.sendCommand(ON)
end

events.log:

2020-05-06 08:07:54.031 [ome.event.ItemCommandEvent] - Item 'VictorStartXmin' received command 1
2020-05-06 08:07:54.032 [vent.ItemStateChangedEvent] - VictorStartXmin changed from NULL to 1
2020-05-06 08:07:54.535 [ome.event.ItemCommandEvent] - Item 'VictorValveDurCmd' received command 1
2020-05-06 08:07:54.542 [ome.event.ItemCommandEvent] - Item 'VictorValveStart' received command ON
2020-05-06 08:07:54.549 [nt.ItemStatePredictedEvent] - VictorValveDurCmd predicted to become 1
2020-05-06 08:07:54.555 [nt.ItemStatePredictedEvent] - VictorValveStart predicted to become ON
2020-05-06 08:07:54.566 [vent.ItemStateChangedEvent] - VictorValveDurCmd changed from 60 to 1
2020-05-06 08:07:54.567 [vent.ItemStateChangedEvent] - VictorValveStart changed from OFF to ON
2020-05-06 08:08:00.835 [vent.ItemStateChangedEvent] - VictorValveStart changed from ON to OFF
2020-05-06 08:08:01.735 [vent.ItemStateChangedEvent] - VictorValveAct changed from CLOSED to MANUAL_WATERING
2020-05-06 08:08:01.735 [vent.ItemStateChangedEvent] - VictorValveActTime changed from 2020-05-06T07:39:57.237+0200 to 2020-05-06T08:07:58.789+0200
2020-05-06 08:08:01.735 [vent.ItemStateChangedEvent] - VictorValveDur changed from 0.0 m to 60.0 m
2020-05-06 08:08:01.736 [vent.ItemStateChangedEvent] - VictorValveDurCmd changed from 1 to 60
2020-05-06 08:08:11.714 [vent.ItemStateChangedEvent] - VictorValveAct changed from MANUAL_WATERING to CLOSED
2020-05-06 08:08:11.715 [vent.ItemStateChangedEvent] - VictorValveActTime changed from 2020-05-06T08:07:58.789+0200 to 2020-05-06T08:08:10.099+0200
2020-05-06 08:08:11.716 [vent.ItemStateChangedEvent] - VictorValveDur changed from 60.0 m to 0.0 m

openhab.log is spitting out an error, something about DecimalType towards QuantityType?

log/openhab.log <==
2020-05-06 08:07:54.550 [WARN ] [internal.handler.GardenaThingHandler] - org.eclipse.smarthome.core.library.types.DecimalType cannot be cast to org.eclipse.smarthome.core.library.types.QuantityType
java.lang.ClassCastException: org.eclipse.smarthome.core.library.types.DecimalType cannot be cast to org.eclipse.smarthome.core.library.types.QuantityType
	at org.openhab.binding.gardena.internal.handler.GardenaThingHandler.handleCommand(GardenaThingHandler.java:177) [bundleFile:?]
	at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
	at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [bundleFile:?]
	at com.sun.proxy.$Proxy146537.handleCommand(Unknown Source) [?:?]
	at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:74) [bundleFile:?]
	at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:48) [bundleFile:?]
	at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_172]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_172]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]

It doesn’t know if you mean 1 minute or 1 century.
I’ve never messed with Number:Time, but it ought to be
VictorValveDurCmd.sendCommand("1 min")
or maybe
VictorValveDurCmd.sendCommand(1 | "min")

VictorValveDurCmd.sendCommand("1 min") did the trick.

I tried it before, but without the quotes.
This also explains why I recieved an error on the (1 min). :wink:

Thanks !!!