As always, please tell me about bugs, requests, questions and so on.Changelog for ver. 0.3.6.2 wrote:- Fixed bugs in "cloneLight", "cloneLight2Group" and "cloneGroup". Thanks to yokel22 for pointing me to this.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Philips Hue plugin
Re: Philips Hue plugin
Bugfix update now availeble in first post. Clonelight, clonegroup and clonelight2group funictions were broken. They are now fixed, as a bonus they now handle "hue lux" lights correctly.
It's the only way to make this plugin better. Thank you. 
Re: Philips Hue plugin
Great plugin!!! Thanks for the hard work!
I added a correction to an error line (1512).
I guess this correction should be to other error lines as well (str(r['state']['on'])) ?
I added a correction to an error line (1512).
I guess this correction should be to other error lines as well (str(r['state']['on'])) ?
- Attachments
-
- __init__.py
- (117.24 KiB) Downloaded 193 times
Re: Philips Hue plugin
Thanks for that tip, bxr.bxr wrote:I added a correction to an error line (1512).
I guess this correction should be to other error lines as well (str(r['state']['on'])) ?
Instead of downloading your attachment, I simply modified the code as you explained where I was having the problem. Does your edited code have just the change on line 1512, or did you update it on the other problematic lines, as well?
Re: Philips Hue plugin
Thanks for the tips bxr!
I have uploaded a new version (in the first post, as always) witch corrects this mistake. It should be the only place it occures.
Please post here if you find any other errors!
I have uploaded a new version (in the first post, as always) witch corrects this mistake. It should be the only place it occures.
Please post here if you find any other errors!
Re: Philips Hue plugin
At line 2427, the print statement should be:Aquila wrote:Please post here if you find any other errors!
Code: Select all
print 'Info: ' + str(r)Re: Philips Hue plugin
Hi
Im trying to switch from using python only to this plugin, so the bridge is already registered with something on my system.
When I try to add the addin I get this
14:58:27 Traceback (most recent call last) (1710):
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
14:58:27 self.Configure(*args, **kwargs)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 165, in Configure
14:58:27 treeItem.Configure(*args)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 101, in Configure
14:58:27 return self.executable.Configure(*args)
14:58:27 File "C:\Program Files (x86)\EventGhost\plugins\PhilipsHue\__init__.py", line 312, in Configure
14:58:27 autoRestore = panel.Choice(autorestore.index(auto), choices=['On','Off'])
14:58:27 NameError: global name 'autorestore' is not defined
14:58:27 Unhandled exception in WorkerThread <ActionThread>:
14:58:27 Traceback (most recent call last) (1710):
14:58:27 Callers stack:
14:58:27 File "threading.pyc", line 504, in __bootstrap
14:58:27 File "wx\_core.pyc", line 14669, in <lambda>
14:58:27 File "threading.pyc", line 532, in __bootstrap_inner
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Core.py", line 197, in Notify
14:58:27 File "threading.pyc", line 484, in run
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 354, in __MainLoop
14:58:27 listener(value)
14:58:27 self.__DoOneEvent()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 844, in OnNodeSelected
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 328, in __DoOneEvent
14:58:27 path = node.GetPath()
14:58:27 action.PrintUnhandledException()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\TreeItem.py", line 377, in GetPath
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 92, in HandleAction
14:58:27 path.append(parent.childs.index(item))
14:58:27 pluginInfo.treeItem.Refresh()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 69, in __call__
14:58:27 AttributeError: 'NoneType' object has no attribute 'childs'
14:58:27 self.processed.set()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginItem.py", line 125, in Delete
14:58:27 self.info = None
14:58:27 Traceback (most recent call last) (1710):
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
14:58:27 self.HandleAction(action)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 87, in HandleAction
14:58:27 action()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
14:58:27 self.returnValue = self.func(*self.args, **self.kwargs)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginItem.py", line 119, in DoIt
14:58:27 info.Close()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 231, in Close
14:58:27 self.instance.__close__()
14:58:27 File "C:\Program Files (x86)\EventGhost\plugins\PhilipsHue\__init__.py", line 253, in __close__
14:58:27 if not self.stopThreadEvent.isSet(): self.stopThreadEvent.set()
14:58:27 AttributeError: 'PhilipsHue' object has no attribute 'stopThreadEvent'
And nothing appears in the configuration list.
Any ideas?
thanks
Im trying to switch from using python only to this plugin, so the bridge is already registered with something on my system.
When I try to add the addin I get this
14:58:27 Traceback (most recent call last) (1710):
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
14:58:27 self.Configure(*args, **kwargs)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 165, in Configure
14:58:27 treeItem.Configure(*args)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 101, in Configure
14:58:27 return self.executable.Configure(*args)
14:58:27 File "C:\Program Files (x86)\EventGhost\plugins\PhilipsHue\__init__.py", line 312, in Configure
14:58:27 autoRestore = panel.Choice(autorestore.index(auto), choices=['On','Off'])
14:58:27 NameError: global name 'autorestore' is not defined
14:58:27 Unhandled exception in WorkerThread <ActionThread>:
14:58:27 Traceback (most recent call last) (1710):
14:58:27 Callers stack:
14:58:27 File "threading.pyc", line 504, in __bootstrap
14:58:27 File "wx\_core.pyc", line 14669, in <lambda>
14:58:27 File "threading.pyc", line 532, in __bootstrap_inner
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Core.py", line 197, in Notify
14:58:27 File "threading.pyc", line 484, in run
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 354, in __MainLoop
14:58:27 listener(value)
14:58:27 self.__DoOneEvent()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 844, in OnNodeSelected
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 328, in __DoOneEvent
14:58:27 path = node.GetPath()
14:58:27 action.PrintUnhandledException()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\TreeItem.py", line 377, in GetPath
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 92, in HandleAction
14:58:27 path.append(parent.childs.index(item))
14:58:27 pluginInfo.treeItem.Refresh()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 69, in __call__
14:58:27 AttributeError: 'NoneType' object has no attribute 'childs'
14:58:27 self.processed.set()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginItem.py", line 125, in Delete
14:58:27 self.info = None
14:58:27 Traceback (most recent call last) (1710):
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
14:58:27 self.HandleAction(action)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 87, in HandleAction
14:58:27 action()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
14:58:27 self.returnValue = self.func(*self.args, **self.kwargs)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginItem.py", line 119, in DoIt
14:58:27 info.Close()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 231, in Close
14:58:27 self.instance.__close__()
14:58:27 File "C:\Program Files (x86)\EventGhost\plugins\PhilipsHue\__init__.py", line 253, in __close__
14:58:27 if not self.stopThreadEvent.isSet(): self.stopThreadEvent.set()
14:58:27 AttributeError: 'PhilipsHue' object has no attribute 'stopThreadEvent'
And nothing appears in the configuration list.
Any ideas?
thanks
Re: Philips Hue plugin
New version, 0.3.6.4 available in the first post.
Changelog:
0.3.6.4 by Aquila 2016-02-19
- Cleaned up test code that broke the plugin.
- Fixed bug in info output in "getGroupStatus". (Thanks to RiseUp for pointing me to this.)
As always any requests or bugreports are welcome.
Changelog:
0.3.6.4 by Aquila 2016-02-19
- Cleaned up test code that broke the plugin.
- Fixed bug in info output in "getGroupStatus". (Thanks to RiseUp for pointing me to this.)
As always any requests or bugreports are welcome.
Re: Philips Hue plugin
The error is some code I have been trying out that was not cleaned up before I published the last version. I had a fixed version ready, so I put it up now in the first post.Phil wrote:Hi
Im trying to switch from using python only to this plugin, so the bridge is already registered with something on my system.
When I try to add the addin I get this
14:58:27 Traceback (most recent call last) (1710):
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
14:58:27 self.Configure(*args, **kwargs)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 165, in Configure
14:58:27 treeItem.Configure(*args)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 101, in Configure
14:58:27 return self.executable.Configure(*args)
14:58:27 File "C:\Program Files (x86)\EventGhost\plugins\PhilipsHue\__init__.py", line 312, in Configure
14:58:27 autoRestore = panel.Choice(autorestore.index(auto), choices=['On','Off'])
14:58:27 NameError: global name 'autorestore' is not defined
14:58:27 Unhandled exception in WorkerThread <ActionThread>:
14:58:27 Traceback (most recent call last) (1710):
14:58:27 Callers stack:
14:58:27 File "threading.pyc", line 504, in __bootstrap
14:58:27 File "wx\_core.pyc", line 14669, in <lambda>
14:58:27 File "threading.pyc", line 532, in __bootstrap_inner
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Core.py", line 197, in Notify
14:58:27 File "threading.pyc", line 484, in run
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 354, in __MainLoop
14:58:27 listener(value)
14:58:27 self.__DoOneEvent()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 844, in OnNodeSelected
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 328, in __DoOneEvent
14:58:27 path = node.GetPath()
14:58:27 action.PrintUnhandledException()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\TreeItem.py", line 377, in GetPath
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 92, in HandleAction
14:58:27 path.append(parent.childs.index(item))
14:58:27 pluginInfo.treeItem.Refresh()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 69, in __call__
14:58:27 AttributeError: 'NoneType' object has no attribute 'childs'
14:58:27 self.processed.set()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginItem.py", line 125, in Delete
14:58:27 self.info = None
14:58:27 Traceback (most recent call last) (1710):
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
14:58:27 self.HandleAction(action)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 87, in HandleAction
14:58:27 action()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
14:58:27 self.returnValue = self.func(*self.args, **self.kwargs)
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginItem.py", line 119, in DoIt
14:58:27 info.Close()
14:58:27 File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 231, in Close
14:58:27 self.instance.__close__()
14:58:27 File "C:\Program Files (x86)\EventGhost\plugins\PhilipsHue\__init__.py", line 253, in __close__
14:58:27 if not self.stopThreadEvent.isSet(): self.stopThreadEvent.set()
14:58:27 AttributeError: 'PhilipsHue' object has no attribute 'stopThreadEvent'
And nothing appears in the configuration list.
Any ideas?
thanks
I'm working on catching events from changes to light settings from other applications, and I used the wrong version to fix a previous bug. Sorry!
Re: Philips Hue plugin
Glad its not me!
Thanks
Thanks
Re: Philips Hue plugin
Did the fixed version work for you?Phil wrote:Glad its not me!
Thanks
Re: Philips Hue plugin
Hi, it worked to the point that it let me connect to the bridge,but then failed with similar issues to the first post I did.
Re: Philips Hue plugin
Please post the log from the error. I should be able to pinpoint any errors in the code.Phil wrote:Hi, it worked to the point that it let me connect to the bridge,but then failed with similar issues to the first post I did.
Re: Philips Hue plugin
I published a new version in the first post. This should fix the error in saving the plugin configdata.Changelog wrote:0.3.6.5 by Aquila 2016-02-26
- Fix crash in config dialog for the plugin.
As always, please report errors or requests for new features.
Re: Philips Hue plugin
Hi
First of all I want to say thank you for this awesome plugin. Because of you there are so many possibilities
Now to my request:
I just added a Philips Hue Dimmer to my setup and wanted to trigger events with the 4 different buttons. I see that Eventghost is aware of button presses but every button has the same event output if I don't miss anything.
So my feature request would be to make it possible to receive each single button as an event.
Is that possible?
Greets Windhowl
First of all I want to say thank you for this awesome plugin. Because of you there are so many possibilities
Now to my request:
I just added a Philips Hue Dimmer to my setup and wanted to trigger events with the 4 different buttons. I see that Eventghost is aware of button presses but every button has the same event output if I don't miss anything.
So my feature request would be to make it possible to receive each single button as an event.
Is that possible?
Greets Windhowl
Re: Philips Hue plugin
Hmm, I don't have the Dimmer myself. I should maybe gather some cash and pick one up to fix this.Windhowl wrote:Hi
First of all I want to say thank you for this awesome plugin. Because of you there are so many possibilities
Now to my request:
I just added a Philips Hue Dimmer to my setup and wanted to trigger events with the 4 different buttons. I see that Eventghost is aware of button presses but every button has the same event output if I don't miss anything.
So my feature request would be to make it possible to receive each single button as an event.
Is that possible?
Greets Windhowl
I also found another possible solution that would enable all switches, but I have to test it a bit first to see that it works correctly.