But now i have another one, what is input channel used for?
I thought it would act as command arguments, but it doesn’t (at least in the way i tested it).
The things (exec:command:licht_on and light_off) mentioned above are the representatives to execute the script.
To be able to switch the light (or Sony TV) on AND off with one switch the two things (channel “run” which executes the script) are monitored by the rule and set the third switch according to the usage of the on and of things.
The Switch licht_sofa is just a switch without a direct funtion. It only works if the rule is in place.
So it actually looks like this (icon and group are optional):
Switch licht_sofa (Group)
Hello Gerland,
Thanks for answering.
That answers the first question
Im now wondering what is the use of the input channel in the exec 2.0 ?
My initial thought was to use it as a command arguments.
For example my script is called sonyRemote.exe and it is waiting for ON or OFF in the arguments,
command shall be : sonyRemote.exe
Input shalle be: “ON” or “OFF” based on a selection on the sitemap for example.
That´s not how it works, as NCO already stated . You need to trigger run, not input. And you need two things, one for ON and one for OFF. In the things you put the matching argument for the script.