• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Execute python script from Generic Switch?
#1
Hi,

thank you for a very promising project.

To start simple, I want a generic switch as ON/OFF switch for my AV Receiver.

The Python script that controls the receiver is already there and it works. It can also parse the receiver reply and update the switch status through the pilight API.

The question is, how can I trigger the python script execution (with parameter) when the switch status changes?
 
Reply
#2
See the documentation for the program protocol. That should help you out.
 
Reply
#3
Thank you. I'll try it this weekend.
 
Reply
#4
Any progress on this?
I would like to use something similar.

An imaginary switch (intertechno_old protocol) is already implemented into my config to flip a GPIO pin (relay protocol) by rule.

Now I would like to run the program instead of switching the relay.
The program is already running fine from the gui.

Curious about your suggestions Smile
 
Reply
#5
Just dive into the rules. Switch action has been supported since the beginning.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Wrong time after switch from DST Rschnauzer 2 346 10-29-2018, 06:00 PM
Last Post: Rschnauzer
  Missing generic protocol to store A value rorie 6 544 10-16-2018, 11:42 AM
Last Post: curlymo
  Possible problem leaving ports open when connecting with python Tommybear1979 1 1,205 06-10-2016, 12:00 PM
Last Post: pilino1234
  Running script one time. yabapolido 8 4,925 12-03-2015, 01:48 PM
Last Post: Prutsky
  How to configure one switch with two units hoshy42 9 3,864 06-04-2015, 07:16 AM
Last Post: curlymo
  Use pilight to run a script on binary receive? scorpydude 6 4,513 01-15-2015, 01:51 PM
Last Post: curlymo
  Combining kaku dimmer and switch psbest 13 7,439 10-13-2014, 10:12 PM
Last Post: curlymo
  switch with any remote psbest 1 1,599 09-28-2014, 12:16 PM
Last Post: curlymo
  Start command/script on pulse receive wous 10 9,920 12-24-2013, 09:39 PM
Last Post: bultje76
  Configure wall remote to switch relais Martin Law 6 3,959 11-23-2013, 09:41 PM
Last Post: Martin Law

Forum Jump:


Browsing: 1 Guest(s)