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)
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.