I have a channel which can be triggered. I tested it with a button and Telegram addon: every time I press the button a messge is sent to me via telegram… works like a charm.
Now I also want to execute a litle scipt once the button is pressed. I wrote it in python and created a thing via the EXEC binding. Now my question is: How can I start this script out of a rule? I just want it to run once.
rule "Pump reset" when Channel "button:press" triggered then ??? end
I have no idea what to put in the [then] block! Can anyone help me here?