iancmcc/ouimeaux

List devices causes error probably new firmware related

Closed this issue · 1 comments

I recently had to rebuild my device running Ouimeaux and I'm now getting what appears to be a similar issue to a past firmware upgrade problem. I've installed two new switches so I'm assuming they are running the latest firmware. The one original unit (10.10.1.50) appears in the list fine but the other two don't.

INFO:ouimeaux.environment:Found device <WeMo Switch "BB-IGA - Dairy Cabinet"> at ('10.10.1.50', 3078 ) ('Switch:', 'BB-IGA - Dairy Cabinet') DEBUG:ouimeaux.discovery:Received a response from 10.10.1.51:3077 DEBUG:ouimeaux.discovery:Found WeMo at http://10.10.1.51:49154/setup.xml DEBUG:ouimeaux.discovery:Received a response from 10.10.1.52:3078 DEBUG:ouimeaux.discovery:Found WeMo at http://10.10.1.52:49154/setup.xml Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gevent-1.2a2-py2.7-linux-x86_64.egg/gevent/greenlet.p y", line 536, in run result = self._run(*self.args, **self.kwargs) File "/usr/local/lib/python2.7/dist-packages/ouimeaux-0.8-py2.7.egg/ouimeaux/pysignals/dispatcher. py", line 201, in send response = receiver(signal=self, sender=sender, **named) File "/usr/local/lib/python2.7/dist-packages/ouimeaux-0.8-py2.7.egg/ouimeaux/environment.py", line 139, in _found_device device = klass(headers['location']) File "/usr/local/lib/python2.7/dist-packages/ouimeaux-0.8-py2.7.egg/ouimeaux/device/__init__.py", line 28, in __init__ service = Service(svc, base_url) File "/usr/local/lib/python2.7/dist-packages/ouimeaux-0.8-py2.7.egg/ouimeaux/device/api/service.py ", line 71, in __init__ for action in self._svc_config.get_action(): AttributeError: 'NoneType' object has no attribute 'get_action' Thu Jan 5 14:15:23 2017 <Greenlet at 0x7faaff5c2730: <bound method Signal.send of <ouimeaux.pysigna ls.dispatcher.Signal object at 0x7faafffdee90>>(<ouimeaux.discovery.UPnP object at 0x7faaff56ed10>, headers={u'opt': u'"http://schemas.upnp.org/upnp/1/0/"; ns, address=('10.10.1.51', 3077))> failed wi th AttributeError

Turns out it was a firmware issue, It appears the two new devices were running very old firmware but the device/app I had used to connect them to the network wasn't detecting there was a firmware update available. After I'd removed and re-installed the app the updates were detected and the issue disappeared.