Activate dummy switch with Python
Moderator: leecollings
-
tapas
- Posts: 16
- Joined: Thursday 18 May 2017 23:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Activate dummy switch with Python
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
@tapas...
Are you running the script externally or from a python-event file/python-plugin?
Regards,
M
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
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.