Commit Graph

399 Commits (00b53502fbad3ec22a53e4c07dea5c420be1a447)

Author SHA1 Message Date
Marc Mueller 53245c6523
Update pylint to 2.13.0 (#68656) 2022-03-25 15:14:48 -07:00
jjlawren 29a43cef0b
Add cooldown timer before Sonos resubscriptions (#68521) 2022-03-23 14:20:20 -07:00
jjlawren 653305b998
Support multiple Plex servers in media browser (#68321) 2022-03-21 15:48:44 -07:00
jjlawren dbb79e2937
Add support for Sonos subwoofer gain controls (#68334) 2022-03-18 10:12:10 -07:00
jjlawren f75d621888
Normalize enqueuing Plex media on Sonos (#68132) 2022-03-17 13:52:59 -07:00
jjlawren d8c966fd0a
Fix Spotify podcasts & Plex `allow_multiple` on Sonos (#68131)
* Bump soco to 0.27.0

* Bump soco to 0.27.1
2022-03-16 17:35:31 +01:00
Marc Mueller 7ab9e5cf0f
Improve sonos error decorator typing (#67199) 2022-03-15 09:24:52 +01:00
jjlawren 80ff497cfc
Rework available Sonos sources (#67931) 2022-03-11 15:57:57 -08:00
jjlawren e7e4c7e3da
Bump soco to 0.26.4 (#67498) 2022-03-03 00:41:03 +02:00
jjlawren aea1209d0d
Reduce magic in Sonos error handling fixture (#67401) 2022-02-28 16:38:08 -08:00
Paulus Schoutsen 99bc2a7c9e
Give Sonos media browse folders Sonos logos to distinguish from media… (#67248) 2022-02-25 11:35:39 -08:00
jjlawren a4ba71408b
Adjust Sonos visibility checks (#67196) 2022-02-25 08:27:06 -08:00
jjlawren e3e962691c
Fix Sonos radio metadata processing with missing data (#67141) 2022-02-23 15:42:18 -08:00
jjlawren cfd763db40
Refactor Sonos media metadata handling (#66840)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-02-23 08:58:00 -08:00
Marc Mueller 0a6e30e4b9
Improve sonos ConfigFlow registration (#67110) 2022-02-23 15:21:46 +01:00
Paulus Schoutsen e0ff7dc2e7
Fix radio browser on Sonos (#67017) 2022-02-22 08:51:41 +01:00
GitHub Action 102ae9f0e3 [ci skip] Translation update 2022-02-22 00:17:23 +00:00
jjlawren 76149876ab
Enable fallback polling for Sonos microphone binary_sensor (#66299) 2022-02-21 19:46:20 +01:00
jjlawren 3bfc6cc756
Bump SoCo to 0.26.3 (#66834) 2022-02-18 15:55:55 -06:00
Erik Montnemery 5be5a014f3
Adjust Sonos for updated Spotify media browsing (#66508) 2022-02-14 20:15:09 +01:00
Marc Mueller 94cfc89df9
Improve `DiscoveryFlowHandler` typing (#66511) 2022-02-14 15:28:52 +01:00
Marc Mueller 1053314a30
Fix error decorator [sonos] (#66399) 2022-02-12 13:51:53 -08:00
jjlawren 4d944e35fd
Skip polling Sonos audio input sensor when idle (#66271) 2022-02-10 12:48:13 -08:00
jjlawren 9fa2bdd3fd
Handle more Sonos favorites in media browser (#66205) 2022-02-10 12:25:07 -08:00
jjlawren e86c82e675
Tweak Sonos activity monitoring (#66207)
* Tweak Sonos activity monitoring

* Support new 'sleeping' vanish reason
* Check availability before last-ditch check
* Use short-timeout call for last-ditch check
* Adjust reboot logging message and severity

* Simplify activity check failure
2022-02-10 14:11:47 -06:00
jjlawren 9fd8428254
Sonos lock subscription actions (#66204)
* Move exception logging to helper

* Wrap subscription in lock

* Rewrite subscribe method to use new logging helper

* Mark entitites as unavailable sooner to avoid unnecessary polls

* Rename unclear method and update docstring

* Move lock to unsubscribe
2022-02-09 21:56:10 -06:00
jjlawren 47af256610
Schedule activity checks when using manual hosts (#65970) 2022-02-09 16:55:00 -06:00
Paulus Schoutsen 3bce870c6d
Add helper for media players to handle HA hosted media (#66120)
* Sonos to sign all HASS urls

* Don't sign if queries in url

* Extract media player hass URL handling to helper
2022-02-09 12:50:33 -08:00
jjlawren a7fd477c64
Refactor Sonos polling (#65722)
* Refactor Sonos polling

Explicitly rename fallback polling
Catch soco exceptions centrally where possible
Create SonosPollingEntity subclass
Remove unnecessary soco_error fixture argument
Remove unnecessary polling in update_volume()
Adjust log levels and wording
Set explicit timeout on library

* Adjust logging to use raised exceptions

* Simplify availabiliity checks when using built-in poller

* Fix typing for return values
2022-02-08 12:17:05 -06:00
jjlawren 36cfa7786d
Clean up Sonos unsubscribe/resubscribe exception handling and logging (#66025) 2022-02-07 16:00:57 -08:00
jjlawren b02a030336
Fix Spotify, Tidal, Apple Music playback on Sonos groups (#65838) 2022-02-06 18:37:23 +01:00
M. Frister 9597ed3f8a
Bump soco to 0.26.2 (#65919) 2022-02-06 18:17:41 +01:00
jjlawren 40857bda90
Use SSDP byebye to mark Sonos as offline (#65686) 2022-02-04 11:41:24 -08:00
jjlawren 8c0c4f9bca
Log traceback in debug for Sonos unsubscribe errors (#65596) 2022-02-03 15:03:18 -08:00
jjlawren 770707f487
Fix vanished checks on old Sonos firmware (#65477) 2022-02-03 13:22:34 +01:00
jjlawren 4794625048
Detect battery-operated Sonos devices going offline (#65382) 2022-02-01 22:11:21 -06:00
jjlawren c80d6810b3
Fix Sonos diagnostics with offline device (#65393)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-01 22:10:53 -06:00
jjlawren 48ae3bece8
Send notification to alert of Sonos networking issues (#65084)
* Send notification to alert of Sonos networking issues

* Add links to documentation
2022-01-31 19:21:21 +01:00
GitHub Action ca7d4234e1 [ci skip] Translation update 2022-01-31 00:14:28 +00:00
jjlawren 2129972904
Add activity statistics to Sonos diagnostics (#65214) 2022-01-30 13:15:51 -08:00
GitHub Action 77ef86faee [ci skip] Translation update 2022-01-30 00:14:21 +00:00
J. Nick Koston 5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
GitHub Action dd4e5bb9c5 [ci skip] Translation update 2022-01-27 00:14:02 +00:00
Paulus Schoutsen 2c0c01498f
Fix media classes (#64993) 2022-01-26 10:51:25 -08:00
jjlawren e17f1ea577
Support Plex in Sonos media browser (#64951)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-26 10:40:47 -08:00
Paulus Schoutsen 07c239643a
Some media source things (#64954)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-26 09:49:33 +01:00
jjlawren cdad1a9f27
Use local Sonos API for Plex music playback (#63357) 2022-01-25 21:10:11 -08:00
jjlawren cb571d86be
Add per-device diagnostics to Sonos (#64912) 2022-01-25 17:35:04 -10:00
Paulus Schoutsen a371f8f788
Allow browsing the Spotify media player in Sonos (#64921) 2022-01-25 12:43:43 -08:00
jjlawren ec88897d04
Add event statistics to Sonos diagnostics (#64845) 2022-01-24 22:52:40 -10:00