Python script to dummy device

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
no0b
Posts: 2
Joined: Tuesday 27 June 2017 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python script to dummy device

Post by no0b »

Hi all,
totall rookie to all this but doing my best to learn and need some advice on how to go forward.
Am trying to connect my Lifx bulbs to a dummy switch (which will later on be switched to a KAKU switch). So far I managed to piece together a short python script to turn on and off my bulbs. However I have no clue how to run the script from domoticz. I tried creating a dummy (x10?) and added the script as
script://home/pi/testing/on.py

I get no error message in the log but als nothing happens. When running the script from putty it does work.
Any ideas where I am going wrong? Probably missed something obvious...

Thanks!
no0b
Posts: 2
Joined: Tuesday 27 June 2017 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python script to dummy device

Post by no0b »

some more info...

python script has been made executable and looks like follow...

#!/usr/bin/env python

from lifxlan import Light
light = Light("mac","ip")
light.set_power("on")

Really don't get where I'm going wrong as script works outside domoticz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest