possibility to start script when switch is pushed
Posted: Sunday 12 March 2017 10:35
Hi,
does someone know if it is possible to start a script when a switch is pushed, with a variable in the end (just like the evohome hardware)
for example:
dimmer slider is set to 60% "script://dimmer.sh" 60 is started.
another example from the evohome hardware:
so is it possible for switch/dimmer hardware to send e.g. level, data, idx
does someone know if it is possible to start a script when a switch is pushed, with a variable in the end (just like the evohome hardware)
for example:
dimmer slider is set to 60% "script://dimmer.sh" 60 is started.
another example from the evohome hardware:
Code: Select all
script:///usr/local/bin/settemp.sh {deviceid} {mode} {setpoint} {until}
Code: Select all
script:///home/pi/dimmer.sh {level} {data} {idx}