Thanks!
I have tried to read up on the CAPI in the manual, but I find it somewhat hard to understand, especially for the non-programmers
I would love to see some example uses in the help file, and better explanations of the core concepts. 
Anyways, I found tenscripting3 and tenscriptAid that helped alot. tenScripAid gave the following snippet that works:
Dim cc As HomeSeerAPI.CAPI.CAPIControl = hs.CAPIGetSingleControl(2236, True, "On for: (value) mins", False, False)
cc.ControlValue = 15
Dim cr As HomeSeerAPI.CAPI.CAPIControlResponse = hs.CAPIControlHandler(cc)
this will turn on the sprinkler (refid:2236) for 15 min.
I have tried to read up on the CAPI in the manual, but I find it somewhat hard to understand, especially for the non-programmers


Anyways, I found tenscripting3 and tenscriptAid that helped alot. tenScripAid gave the following snippet that works:
Dim cc As HomeSeerAPI.CAPI.CAPIControl = hs.CAPIGetSingleControl(2236, True, "On for: (value) mins", False, False)
cc.ControlValue = 15
Dim cr As HomeSeerAPI.CAPI.CAPIControlResponse = hs.CAPIControlHandler(cc)
this will turn on the sprinkler (refid:2236) for 15 min.
Comment