2014-03-01, 21:34
(2014-02-28, 19:51)giftie Wrote: I did some quick research and there seems to be an easy method using requests as seen on this module - https://github.com/EirikAskheim/pymoticz...ymoticz.py
Which is similar to the Insteon Hub.. When I get a chance this weekend I'll look into it. There is also this addon that methods could be pulled from - https://github.com/h4wkmoon/xbmc-domoticz
Thanks giftie, I really appreciate your help. I've been tearing my hair out over this as it seems so simple but just won't work.
I've created my own bastardized version of the pymoticz.py script purely for testing. I'm running this on OpenELEC so some of the libraries aren't available that are used in that script. Mine works perfectly, although I obviously have to change the settings myself in the script, but it shows that it works: http://pastebin.com/HBKWJvFY
So, I then created my own home_automation.py script (http://pastebin.com/SNtSpUEK) - it might not be finished, but you can see what I'm trying to get at.
In CE settings, I've got Home Automation enabled and a single trigger for Movie Start. When I start a movie with CE though, I can see the script running (see logs below) but the light level doesn't change. The script is obviously picking up the trigger, but it's like the code for that option isn't being run.
XBMC logs (irrelevant stuff removed): http://pastebin.com/DMes9crR
Can you suggest any further troubleshooting steps?
Many thanks