technicalpickles / picklehome-homeassistant-config

homeassistant configuration for my house
3 stars 0 forks source link

Various errors from Sonos component #8

Closed technicalpickles closed 6 years ago

technicalpickles commented 6 years ago

I see these at startup usually:

home-assistant_1  | ----------------------------------------
home-assistant_1  | Exception happened during processing of request from ('10.0.1.12', 35514)
home-assistant_1  | Traceback (most recent call last):
home-assistant_1  |   File "/usr/local/lib/python3.6/site-packages/soco/data_structures.py", line 96, in from_didl_string
home-assistant_1  |     cls = _DIDL_CLASS_TO_CLASS[item_class]
home-assistant_1  | KeyError: 'object.container.playlistContainer.sonos-favorite'
home-assistant_1  |
home-assistant_1  | During handling of the above exception, another exception occurred:
home-assistant_1  |
home-assistant_1  | Traceback (most recent call last):
home-assistant_1  |   File "/usr/local/lib/python3.6/socketserver.py", line 639, in process_request_thread
home-assistant_1  |     self.finish_request(request, client_address)
home-assistant_1  |   File "/usr/local/lib/python3.6/socketserver.py", line 361, in finish_request
home-assistant_1  |     self.RequestHandlerClass(request, client_address, self)
home-assistant_1  |   File "/usr/local/lib/python3.6/socketserver.py", line 696, in __init__
home-assistant_1  |     self.handle()
home-assistant_1  |   File "/usr/local/lib/python3.6/http/server.py", line 418, in handle
home-assistant_1  |     self.handle_one_request()
home-assistant_1  |   File "/usr/local/lib/python3.6/http/server.py", line 406, in handle_one_request
home-assistant_1  |     method()
home-assistant_1  |   File "/usr/local/lib/python3.6/site-packages/soco/events.py", line 227, in do_NOTIFY
home-assistant_1  |     variables = parse_event_xml(content)
home-assistant_1  |   File "/usr/local/lib/python3.6/site-packages/soco/events.py", line 130, in parse_event_xml
home-assistant_1  |     value = from_didl_string(value)[0]
home-assistant_1  |   File "/usr/local/lib/python3.6/site-packages/soco/data_structures.py", line 98, in from_didl_string
home-assistant_1  |     raise DIDLMetadataError("Unknown UPnP class: %s" % item_class)
home-assistant_1  | soco.exceptions.DIDLMetadataError: Unknown UPnP class: object.container.playlistContainer.sonos-favorite
technicalpickles commented 6 years ago

I don't see any existing homeassistant issues, but I found some upstream in soco https://github.com/SoCo/SoCo/issues/516 with a fix being worked on https://github.com/SoCo/SoCo/pull/478

technicalpickles commented 6 years ago

https://github.com/technicalpickles/picklehome-homeassistant-config/issues/35 has more info now