Hello everybody,
Im doing this : https://www.openhab.org/addons/bindings/exec/
I would like to replace a rule by an item definition :
This rule :
Rule "begin your execution"
when
Item YourTrigger changed
then
if(YourTrigger.state == ON){
yourcommand_Args.sendCommand("Additional Argument to command line for ON")
}else{
yourcommand_Args.sendCommand("Additional Argument to command line for OFF")
}
yourcommand_Run.sendCommand(ON)
end
By an item like this :
Switch yourcommand_Args {channel="exec:command:yourcommand:input", Additional Argument to command line for ON, Additional Argument to command line for OFF}
I would like to run it directly when input change by on or off switching button.
Is it possible ?
My thing is something likes that :
Thing exec:command:yourcommand [ command="<YOUR COMMAND> %2$s", interval=0, autorun=false ]
Thanks a lot
Yann