Page 1 of 1

Activate dummy switch with Python

Posted: Saturday 15 July 2017 16:38
by tapas
Hello, I tried to search the forum for this but could not find an answer: Is there a way to change dummy swich state (on/off) with Python code? My code checks presence of a device and if it is found, I'd like to activate a Dummy switch, that way I can link it to my blocky script.

Re: Activate dummy switch with Python

Posted: Saturday 15 July 2017 20:42
by moroen
@tapas...

Are you running the script externally or from a python-event file/python-plugin?

Regards,
M

Re: Activate dummy switch with Python

Posted: Sunday 16 July 2017 11:28
by tapas
Hi moroen, the script is run externally. Altough I'm not sure is there any problem running it from event file, haven't thought of that.