amelchio / pysonos Goto Github PK
View Code? Open in Web Editor NEWA SoCo fork with fixes for Home Assistant
License: MIT License
A SoCo fork with fixes for Home Assistant
License: MIT License
Hello,
All my playlists are detected as Unhandled favorite
(Sonos playlists, Spotify...)
If I add radio stations, albums, artists... to My Sonos, they appears successfully on my Home Assistant.
Have you an idea what's the problem is ?
Thank you
Hi, Im observing that tests have hard requirements for pytest-cov version: pytest-cov>=2.4.0,<2.6
. Im trying to prepare your package for NixOS operating system (NixOS/nixpkgs#60853) and it were easy if I could use ustream version (2.6.1
) of pytest-cov
.
#66 added support to detect Spotify URLs and URIs. This feature could be extended to handle podcasts, e.g.
Hello
On current HA dev (v110) I get following exception with my symfonisk speaker and spotify account.
Exception happened during processing of request from ('192.168.1.142', 39703)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/events.py", line 100, in __init__
super(EventNotifyHandler, self).__init__(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 720, in __init__
self.handle()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 426, in handle
self.handle_one_request()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 414, in handle_one_request
method()
File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/events.py", line 109, in do_NOTIFY
self.handle_notification(headers, content)
File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/events_base.py", line 239, in handle_notification
variables = parse_event_xml(content)
File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/events_base.py", line 107, in parse_event_xml
didl = from_didl_string(value)
File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/data_structures_entry.py", line 55, in from_didl_string
item = attempt_datastructure_upgrade(item)
File "/Users/robert/Workspaces/home-assistant/venv/lib/python3.7/site-packages/pysonos/data_structures_entry.py", line 89, in attempt_datastructure_upgrade
if resource.uri.startswith('x-sonos-http'):
AttributeError: 'NoneType' object has no attribute 'startswith'
resource
variable contain result of pysonos.data_structure_quirks.apply_resource_quirks
function with protocol_info == 'DUMMY_ADDED_BY_QUIRK'
server.log says:
/usr/lib64/python3.6/site-packages/pysonos/services.py:675: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
value_list_elt = state.find('{}allowedValueList'.format(ns))\
Would it be possible to add support for room groups with S2, carried forward to the Home Assistant integration? Although similar functionality is possible with Home Assistant directly, it would be nice to have Sonos controller app room groups and Home Assistant groups in sync.
Or, is this actually an issue for SoCo?
Thanks for the excellent work adding Spotify share links support in #65!
What would be the steps to support other providers in the same manner? YouTube Music, Apple Music, Tidal, SoundCloud...? Do we need something similar to spotify_magic
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.