Anders Melchiorsen
78b6439ee6
Use pysonos for Sonos media player ( #16753 )
2018-09-20 23:50:11 +02:00
Fabian Affolter
0d7ee9b93b
Order imports ( #16515 )
2018-09-09 14:26:06 +02:00
Philipp Temminghoff
901cfef78e
Support Sonos Beam HDMI input ( #16340 )
2018-09-01 16:02:38 +02:00
Paulus Schoutsen
16a885824d
Add device info for sonos ( #16263 )
...
* Add device info for sonos
* Sets
2018-08-29 16:27:08 +02:00
Paulus Schoutsen
994b829cb4
add_devices -> add_entities ( #16171 )
...
* add_devices -> add_entities
* Lint
* PyLint
* Revert external method in scsgate
2018-08-24 16:37:30 +02:00
Anders Melchiorsen
f2e399ccf3
Update SoCo to 0.16 ( #16007 )
2018-08-17 07:41:56 +02:00
Anders Melchiorsen
fddfb9e412
Refresh Sonos source list on changes ( #15605 )
2018-07-23 12:31:03 +02:00
Anders Melchiorsen
1325682d82
Use case insensitive comparison for Sonos model check ( #15604 )
2018-07-23 12:29:37 +02:00
Paulus Schoutsen
2c6e6c2a6f
Add config entry for Sonos + Cast ( #14955 )
...
* Add config entry for Sonos
* Lint
* Use add_job
* Add Cast config entry
* Lint
* Rename DOMAIN import
* Mock pychromecast in test
2018-06-14 15:17:54 -04:00
Anders Melchiorsen
f2a2f2cca5
Ignore unsupported Sonos favorite lists ( #14665 )
2018-05-29 10:15:30 +02:00
Anders Melchiorsen
6ba49e12a2
Improve handling of offline Sonos devices ( #14479 )
2018-05-16 07:35:43 +02:00
Anders Melchiorsen
241a0793bb
Add Sonos device attribute with grouping information ( #13553 )
2018-04-25 20:31:42 +02:00
Anders Melchiorsen
5ec6f25d4e
Fix Sonos playing Sveriges Radio ( #13401 )
2018-03-23 18:09:17 +01:00
Anders Melchiorsen
f8127a3902
Add a polling fallback for Sonos ( #13310 )
...
* Prepare for poll
* Add a polling fallback for Sonos
2018-03-20 19:27:07 -07:00
Anders Melchiorsen
852eef8046
Fix Sonos radio stations with ampersand ( #13293 )
2018-03-20 18:05:03 -07:00
Anders Melchiorsen
de1ff1e952
Fix Sonos join/unjoin in scripts ( #13248 )
2018-03-15 16:12:43 -07:00
Anders Melchiorsen
5e675677ad
Cleanup Sonos platform setup ( #13225 )
...
* Cleanup Sonos platform setup
* Remove unneeded lists
2018-03-15 20:43:28 +01:00
Anders Melchiorsen
ef7ce5eb1b
Ignore unsupported Sonos favorites ( #13195 )
2018-03-14 12:08:41 -07:00
Anders Melchiorsen
7fc9ac0931
Avoid Sonos error when joining with self ( #13196 )
2018-03-14 12:07:50 -07:00
Anders Melchiorsen
44e4f8d1ba
Fix Sonos group discovery ( #12970 )
...
* Avoid iterating sonos devices that are not yet added
* Rebuild zone topology for each new device
2018-03-08 15:39:31 -08:00
Anders Melchiorsen
fd409a16a1
Remove dynamic controls from sonos ( #12908 )
2018-03-04 18:30:15 -08:00
Anders Melchiorsen
a147401034
Additional radio schemes for sonos ( #12886 )
2018-03-04 14:02:31 +01:00
Anders Melchiorsen
e2e10b91a7
Grammar fix 'an unique' ( #12870 )
2018-03-03 19:23:55 +01:00
Anders Melchiorsen
d63cf94d6d
Fix dead Sonos web interface even more ( #12851 )
2018-03-03 00:19:22 -08:00
Anders Melchiorsen
b1cc9bf452
Fix dead Sonos web interface with some music sources ( #12796 )
...
* Get data from soco, not event
* Patch soco.events.parse_event_xml to ignore exceptions
2018-02-28 16:10:58 -08:00
Anders Melchiorsen
f19b934869
Silence harmless sonos data structure warnings ( #12767 )
2018-02-27 18:04:00 -08:00
Anders Melchiorsen
ed1a883b52
Fix sonos default errorcodes ( #12582 )
2018-02-21 21:11:14 +01:00
Anders Melchiorsen
635d36c6ba
Rework Sonos media player platform ( #12126 )
...
* Rework Sonos media player platform for push
* Ignore play_mode from events where it is missing
* Remove unused preload helper
* Freeze SoCo version
* Updates for entity registry
* Add codeowner
* Use real soco release
2018-02-18 20:05:20 +01:00
Fabian Affolter
47e31dc9ee
Fixes for PEP257 ( #11810 )
...
* Fixes for PEP257
* More updates
2018-01-20 22:35:38 -08:00
Pascal Vizeli
b2b836d4c1
small sonos cleanup ( #11607 )
2018-01-13 09:59:50 +01:00
Anders Melchiorsen
8267a21bfe
Lazy loading of service descriptions ( #11479 )
...
* Lazy loading of service descriptions
* Fix tests
* Load YAML in executor
* Return a copy of available services to allow mutations
* Remove lint
* Add zha/services.yaml
* Only cache descriptions for known services
* Remove lint
* Remove description loading during service registration
* Remove description parameter from async_register
* Test async_get_all_descriptions
* Remove lint
* Fix typos from multi-edit
* Remove unused arguments
* Remove unused import os
* Remove unused import os, part 2
* Remove unneeded coroutine decorator
* Only use executor for loading files
* Cleanups suggested in review
* Increase test coverage
* Fix races in existing tests
2018-01-07 14:54:16 -08:00
Brad Dixon
dfb8b5a3c1
Revbump to SoCo 0.13 and add support for Night Sound and Speech Enhancement. ( #10765 )
...
Sonos Playbar and Playbase devices support Night Sound and Speech Enhancement
effects when playing from sources such as a TV. Adds a new service "sonos_set_option"
whichs accepts boolean options to control these audio features.
2017-12-17 13:08:35 +01:00
Anders Melchiorsen
0a7e6ac222
Ignore Sonos players with unknown hostnames ( #11013 )
2017-12-08 12:01:10 +01:00
Marcus Schmidt
929d49ed6f
Shuffle support in Sonos ( #10875 )
...
* initial commit of shuffle option for sonos
* added test
* Small adjustments to adhere to review requests
* Removed unnessesary setting of variable. Use shuffle state from soco instead
2017-12-07 14:44:06 -05:00
Anders Melchiorsen
6cadb796bc
Avoid Sonos error during startup ( #10146 )
...
* Add Sonos coordinators before slaves
2017-11-01 08:28:13 +01:00
Anders Melchiorsen
f17cf1d26b
Avoid Sonos errors for tracks with no artist information ( #10160 )
...
Rather than adding guards to the string formatting, just remove this
unused attribute.
2017-10-27 10:50:03 +02:00
Michael Prokop
08b0629eca
Fix a bunch of typos ( #9545 )
...
s/Addres /Address /
s/Chnage/Change/
s/Converion/Conversion/
s/Supressing/Suppressing/
s/agains /against /
s/allready/already/
s/analagous/analogous/
s/aquired/acquired/
s/arbitray/arbitrary/
s/argment/argument/
s/aroung/around/
s/attibute/attribute/
s/auxillary/auxiliary/
s/befor /before /
s/commmand/command/
s/conatin/contain/
s/conection/connection/
s/coresponding/corresponding/
s/entites/entities/
s/enviroment/environment/
s/everyhing/everything/
s/expected expected/expected/
s/explicity/explicitly/
s/formated/formatted/
s/incomming/incoming/
s/informations/information/
s/inital/initial/
s/inteface/interface/
s/interupt/interrupt/
s/mimick/mimic/
s/mulitple/multiple/
s/multible/multiple/
s/occured/occurred/
s/occuring/occurring/
s/overrided/overridden/
s/overriden/overridden/
s/platfrom/platform/
s/positon/position/
s/progess/progress/
s/recieved/received/
s/reciever/receiver/
s/recieving/receiving/
s/reponse/response/
s/representaion/representation/
s/resgister/register/
s/retrive/retrieve/
s/reuqests/requests/
s/segements/segments/
s/seperated/separated/
s/sheduled/scheduled/
s/succesfully/successfully/
s/suppport/support/
s/targetting/targeting/
s/thats/that's/
s/the the/the/
s/unkown/unknown/
s/verison/version/
s/while loggin out/while logging out/
2017-09-23 17:15:46 +02:00
Pascal Vizeli
0af4f8903d
Add available to sonos ( #9243 )
...
* Readd sonos available flag / fix polling state
* cleanup
2017-09-01 00:23:11 +02:00
Riccardo Canta
56f9ccb877
Allow sonos to select album as a source ( #9221 )
...
Importing the fix in the PR https://github.com/home-assistant/home-assistant/pull/8258 I noticed that the same error is present also for Spotify album so I have extended the code and tested it. It works fine on my setup
2017-08-30 15:10:02 +02:00
Andrey
c895f1f1db
When Sonos gets a tts source - dont't show an image ( #8777 )
2017-08-03 17:39:11 +03:00
Matt Colyer
2b59b917c4
Allow sonos to select playlists as a source ( #8258 )
...
* Allow sonos to select playlists as a source
Most of this was taken from
https://github.com/home-assistant/home-assistant/issues/5598#issuecomment-278229895
however I made a few small improvements so that it works for other
services than Spotify and it should properly switch to playing the queue
if you had another song playing previously.
/cc @PatBoud
* Attempt to fix style issues
* More indent changes
* Fix misplaced period
* Move playlist replacement to function
* Privatize replace_queue_with_playlist and explain
* Remove unneeded decorator
* Fix doc formatting
2017-07-31 23:16:05 -07:00
Paulus Schoutsen
46e030662d
Fix pylint 1.7.2 no-else-return issues ( #8361 )
...
* Fix pylint 1.7.2 no-else-return issues
* Update tomato.py
2017-07-05 23:30:01 -07:00
Juggels
36eb0ceff3
[media_player.sonos] Send media_stop on turn_off ( #7940 )
2017-06-07 13:15:29 +01:00
Fabian Affolter
f303f6a191
Move consts to 'const.py' ( #7909 )
2017-06-05 16:59:59 +02:00
Juggels
12607aeaea
Check if media commands are actually applicable ( #7595 )
...
* Check if media commands are actually applicable
- Explicitly allow ‘stop’ and ‘play’ on radio streams
- Disallow media commands when the playlist is empty
- Check if command is supported when calling `turn_on` and `turn_off`
* Suppress UPnP error 701 on media commands
* Clean up soco_filter_upnperror
Clean up soco_filter_upnperror and fix small bug in support_previous_track determination
2017-06-02 00:03:10 -07:00
Marc Egli
4da91d6a8b
Add sonos alarm clock update service ( #7521 )
...
* Add sonos alarm clock update service
* Add tests and break lines
* Fix style errors
* Make test work with python<3.6
* Fix last two pylint errors
* fix new line to long errors
2017-05-15 00:42:45 -07:00
Marc Egli
d86dfb6336
Fix sonos sleep timer ( #7503 )
2017-05-09 18:35:51 +02:00
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstring
* Update docstrings
* Update docstrings
* Fix lint issues
* Update docstrings
* Revert changes in dict
2017-05-02 09:18:47 -07:00
Pascal Vizeli
e026717239
Fix handling with register callbacks on added_to_hass ( #7067 )
2017-04-12 09:51:19 +02:00
Paulus Schoutsen
edf500e66b
Upgrade netdisco to 1.0.0rc2 ( #7008 )
...
* Upgrade netdisco to 1.0.0rc2
* fix tests
2017-04-11 20:10:02 -07:00