Activate dummy switch with Python

Python and python framework

Moderator: leecollings

Post Reply
tapas
Posts: 16
Joined: Thursday 18 May 2017 23:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Activate dummy switch with Python

Post 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.
moroen
Posts: 408
Joined: Sunday 15 January 2017 11:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: Activate dummy switch with Python

Post by moroen »

@tapas...

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

Regards,
M
tapas
Posts: 16
Joined: Thursday 18 May 2017 23:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Activate dummy switch with Python

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest