PyLoxone-Audio 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/API.md +8 -4
  2. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/CHANGELOG.md +7 -1
  3. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/MANIFEST.in +1 -0
  4. {pyloxone_audio-0.2.0/PyLoxone_Audio.egg-info → pyloxone_audio-0.2.1}/PKG-INFO +14 -4
  5. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1/PyLoxone_Audio.egg-info}/PKG-INFO +14 -4
  6. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/PyLoxone_Audio.egg-info/SOURCES.txt +3 -0
  7. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/QUICKSTART.md +1 -1
  8. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/README.md +14 -4
  9. pyloxone_audio-0.2.1/RELEASE-NOTES-0.2.1.md +13 -0
  10. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/UPDATING.md +1 -1
  11. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/__init__.py +4 -2
  12. pyloxone_audio-0.2.1/pyloxone_audio/pause.py +37 -0
  13. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyproject.toml +1 -1
  14. pyloxone_audio-0.2.1/tests/library/test_pause_qualification.py +42 -0
  15. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/AUTOMATION-GROUPING.md +0 -0
  16. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/AUTOMATIONS.md +0 -0
  17. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/DIAGNOSTICS-REFERENCE.md +0 -0
  18. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/DIAGNOSTICS.md +0 -0
  19. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/GROUPS.md +0 -0
  20. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/KNOWN-ISSUES.md +0 -0
  21. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/LICENSE +0 -0
  22. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/NOTICE.md +0 -0
  23. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/PyLoxone_Audio.egg-info/dependency_links.txt +0 -0
  24. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/PyLoxone_Audio.egg-info/requires.txt +0 -0
  25. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/PyLoxone_Audio.egg-info/top_level.txt +0 -0
  26. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/RELEASE-NOTES-0.2.0.md +0 -0
  27. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/SUPPORT.md +0 -0
  28. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/USER-GUIDE.md +0 -0
  29. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/announcement.py +0 -0
  30. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/announcement_options.py +0 -0
  31. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/albums.svg +0 -0
  32. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/artists.svg +0 -0
  33. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/folder.svg +0 -0
  34. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/genres-and-moods.svg +0 -0
  35. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/liked-songs.svg +0 -0
  36. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/line-in.svg +0 -0
  37. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/local-library.svg +0 -0
  38. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/loxone-radio.svg +0 -0
  39. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/more-items.svg +0 -0
  40. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/my-playlists.svg +0 -0
  41. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/new-releases.svg +0 -0
  42. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/other-playlists.svg +0 -0
  43. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/playlists.svg +0 -0
  44. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/podcast-episode.svg +0 -0
  45. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/podcasts.svg +0 -0
  46. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/popular-playlists.svg +0 -0
  47. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/public-playlists.svg +0 -0
  48. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/radio-station.svg +0 -0
  49. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/radio.svg +0 -0
  50. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/room-favourites.svg +0 -0
  51. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/spotify.svg +0 -0
  52. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/artwork/track-song.svg +0 -0
  53. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/catalogue.py +0 -0
  54. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/clock.py +0 -0
  55. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/content_id.py +0 -0
  56. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/diagnostic_events.py +0 -0
  57. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/grouping.py +0 -0
  58. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/metadata.py +0 -0
  59. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/models.py +0 -0
  60. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/native.py +0 -0
  61. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/projection.py +0 -0
  62. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/py.typed +0 -0
  63. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/radio.py +0 -0
  64. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/report.py +0 -0
  65. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/selection.py +0 -0
  66. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/session.py +0 -0
  67. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/pyloxone_audio/sources.py +0 -0
  68. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/setup.cfg +0 -0
  69. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/conftest.py +0 -0
  70. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/fixtures/audioserver/README.md +0 -0
  71. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/fixtures/audioserver/sebastian_alarm_end.txt +0 -0
  72. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/fixtures/audioserver/sebastian_loxone_radio.json +0 -0
  73. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/fixtures/audioserver/sebastian_tts.json +0 -0
  74. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/fixtures/audioserver/sebastian_tunein.json +0 -0
  75. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/pytest.ini +0 -0
  76. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/session_support.py +0 -0
  77. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_announcement_observation_gap.py +0 -0
  78. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audio_grouping.py +0 -0
  79. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audio_modes.py +0 -0
  80. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_announcement.py +0 -0
  81. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_connection.py +0 -0
  82. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_events.py +0 -0
  83. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_library_source.py +0 -0
  84. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_metadata.py +0 -0
  85. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_playback.py +0 -0
  86. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_seek.py +0 -0
  87. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_timing.py +0 -0
  88. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_audioserver_wire.py +0 -0
  89. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_automation_group_intent.py +0 -0
  90. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_boundary_environment.py +0 -0
  91. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_boundary_ownership.py +0 -0
  92. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_boundary_qualification.py +0 -0
  93. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_diagnostic_events.py +0 -0
  94. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_diagnostic_operations.py +0 -0
  95. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_diagnostic_request_kinds.py +0 -0
  96. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_diagnostic_timing.py +0 -0
  97. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_diagnostic_wire.py +0 -0
  98. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_distribution_dependencies.py +0 -0
  99. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_exact_track_start.py +0 -0
  100. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_folder_echo_regression.py +0 -0
  101. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_group_commands.py +0 -0
  102. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_group_coordinator.py +0 -0
  103. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_group_planning.py +0 -0
  104. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_group_revocation_r1.py +0 -0
  105. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_group_transport.py +0 -0
  106. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_grouping_numeric_validation.py +0 -0
  107. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_long_event_lifecycle.py +0 -0
  108. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_metadata_observation.py +0 -0
  109. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_native_status_aliases.py +0 -0
  110. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_native_status_decoding.py +0 -0
  111. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_native_status_report_preparation.py +0 -0
  112. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_playback_failure_recovery.py +0 -0
  113. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_portable_policies.py +0 -0
  114. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_published_authentication.py +0 -0
  115. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_restore_readiness.py +0 -0
  116. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_reusable_command_session.py +0 -0
  117. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_room_absolute_rebase.py +0 -0
  118. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_room_reply_review03.py +0 -0
  119. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_room_transport.py +0 -0
  120. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_session_benchmark.py +0 -0
  121. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_session_cancelled_close.py +0 -0
  122. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_session_isolation.py +0 -0
  123. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_session_owner_controls.py +0 -0
  124. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_session_playback_policy.py +0 -0
  125. {pyloxone_audio-0.2.0 → pyloxone_audio-0.2.1}/tests/library/test_volume_failure_recovery.py +0 -0
@@ -1,8 +1,8 @@
1
- # PyLoxone-Audio 0.2.0 — API and compatibility
1
+ # PyLoxone-Audio 0.2.1 — API and compatibility
2
2
 
3
3
  ## Command-session lifecycle
4
4
 
5
- The 0.2.0 adapter explicitly enables `AudioServerCommands.reuse_session`. Direct library consumers retain the original one-shot default. One command owner belongs to one entry/server/current authentication lifetime; never share it between entries or accounts. The host publishes token revocation through `observe_authentication()` and awaits `async_close()` on unload. Changing host/options uses the existing unload/new-owner lifecycle, not mutation of an active owner's endpoint.
5
+ The matching adapter explicitly enables `AudioServerCommands.reuse_session`. Direct library consumers retain the original one-shot default. One command owner belongs to one entry/server/current authentication lifetime; never share it between entries or accounts. The host publishes token revocation through `observe_authentication()` and awaits `async_close()` on unload. Changing host/options uses the existing unload/new-owner lifecycle, not mutation of an active owner's endpoint.
6
6
 
7
7
  The reusable transport keeps the existing single-request lock, authentication/serializers and command proof. After authentication, one bounded-inbox reader owns receive. Unsolicited events are drained but are not metadata authority; command echoes must match the active command (including the vendor's search-query key convention). An uncertain, cancelled, timed-out, malformed or uncorrelated session is retired without replay. The native protocol has no demonstrated unique request ID for a delayed identical echo.
8
8
 
@@ -11,7 +11,7 @@ Mapped metadata bindings call `observe_playback(player_id, playing)` from native
11
11
  Diagnostics adds `session_reused` rather than inventing new connection/authentication stages for warm requests. `request_finished` still follows the actual request boundary. The Miniserver and metadata/event connections are separate and unchanged.
12
12
 
13
13
  An Apache-2.0 Python library for native audio communication, consumed by the
14
- existing PyLoxone integration. The matching reference adapter is 0.2.0.
14
+ existing PyLoxone integration. The matching reference adapter is 0.2.1.
15
15
  Its stable host compatibility baseline is PyLoxone 0.12.1; the host contribution
16
16
  is based on JoDehli/PyLoxone master `ede773fcf52b42b3caa1ddbf070a15ec012920c9`
17
17
  and preserves the subsequent upstream changes. See [NOTICE.md](NOTICE.md) for attribution.
@@ -48,6 +48,10 @@ The explicit exports in pyloxone_audio/__init__.py are the public API:
48
48
  history eligibility. Genuine ordered observed feedback is distinct from intent.
49
49
  - async_send_prepared_announcement handles prepared bounded WAV bytes through
50
50
  the native event operation; the host supplies an existing lazy HTTP session.
51
+ - pause_already_satisfied(snapshot, player_id, now) qualifies a fresh, exact-player
52
+ paused/stopped observation with no active event. It performs no I/O or mutation.
53
+ Hosts must retain availability, current ownership, lifecycle and whole-group
54
+ checks; this helper does not authorise a command or suppress a genuine failure.
51
55
  - audioserver_uri and parse_audio_events retain their concrete native semantics.
52
56
 
53
57
  SourceEnvironment(clock=callable) is immutable per-consumer clock configuration.
@@ -97,7 +101,7 @@ the supported enable/export workflow, exact bounds and evidence/privacy limits.
97
101
 
98
102
  ## Installation and host compatibility
99
103
 
100
- Requires Python >=3.14. Install `PyLoxone-Audio==0.2.0` for standalone consumers.
104
+ Requires Python >=3.14. Install `PyLoxone-Audio==0.2.1` for standalone consumers.
101
105
  Home Assistant users need the matching component and frontend described in the
102
106
  [installation guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md); HA installs Python dependencies.
103
107
  Keep domain `loxone`, existing entries/entities and the exact compatible pin.
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ - Make Pause idempotent for fresh, confirmed paused/stopped rooms and fully quiet groups, reducing redundant traffic during all-room pause calls.
6
+ - Share pause qualification through the library and matching 0.2.1 reference adapter; retain existing confirmation, busy/lifecycle and no-retry safeguards.
7
+ - Preserve frontend, API and climate behaviour. See [release notes](RELEASE-NOTES-0.2.1.md).
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  Explicit announcement targets; source artwork; group/preset management; fixed-group playback and proportional volume; capability-based native UI integration; improved ownership and announcement observations. See [release notes](RELEASE-NOTES-0.2.0.md).
@@ -32,4 +38,4 @@ Explicit announcement targets; source artwork; group/preset management; fixed-gr
32
38
  - Full-width group/member volume sliders with percentage and −/+ controls.
33
39
  - Original release: library 0.1.4, reference adapter 0.10.3.dev19 and frontend r12 on stock PyLoxone 0.10.3.
34
40
 
35
- [Current release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.0.md). Earlier releases remain in Git history and GitHub Releases.
41
+ [Current release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.1.md). Earlier releases remain in Git history and GitHub Releases.
@@ -16,6 +16,7 @@ include KNOWN-ISSUES.md
16
16
  include CHANGELOG.md
17
17
 
18
18
  include RELEASE-NOTES-0.2.0.md
19
+ include RELEASE-NOTES-0.2.1.md
19
20
  include USER-GUIDE.md
20
21
  include DIAGNOSTICS-REFERENCE.md
21
22
  include AUTOMATION-GROUPING.md
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyLoxone-Audio
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Native audio transport and source policies for PyLoxone
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/davehocking/PyLoxone-Audio
@@ -20,7 +20,7 @@ Dynamic: license-file
20
20
 
21
21
  Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using the music accounts already configured in Loxone and the existing Home Assistant room players. No second integration or separate audio login.
22
22
 
23
- **Library 0.2.0** and **reference audio adapter 0.2.0** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
23
+ **Library 0.2.1** and **reference audio adapter 0.2.1** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
24
24
 
25
25
  ## What it adds
26
26
 
@@ -31,6 +31,14 @@ Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using the mu
31
31
  - Announcements to an explicitly selected speaker, dynamic group or Config fixed group.
32
32
  - Version information and optional local diagnostic downloads.
33
33
 
34
+ ## See it in action
35
+
36
+ A look at the real interface in dark mode: manage speakers and groups, browse music, and use your existing Home Assistant room players. Personal room and account labels have been redacted.
37
+
38
+ ![Audioserver Management dark mode](docs/images/audioserver-management-dark.png)
39
+
40
+ **[Take the visual tour →](docs/UI-TOUR.md)** — group controls, music browsing, the native player and the phone-width layout.
41
+
34
42
  ## Required setup
35
43
 
36
44
  Use a matching host adapter. In **Settings → Devices & services → Loxone**, open the existing entry's options:
@@ -45,10 +53,12 @@ Despite its name, that option also enables browsing, source selection and return
45
53
 
46
54
  The reference adapter targets PyLoxone's extracted `pyloxone-api` architecture. It requires the guarded-send/observer API extension: unmodified `pyloxone-api==0.6.1` does not provide that interface. Do not replace the dependency with stock 0.6.1 or copy this adapter over an arbitrary host version. See the [version-bound adapter guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md) for the exact host base and dependency requirements.
47
55
 
56
+ **Technology trial:** A [version-pinned manual preview](https://github.com/davehocking/PyLoxone-Audio/tree/main/preview-build) bundles the matching integration/UI and patched API so it can be tried before upstream adoption. It is **not a general upgrade or HACS release**: read its exact version requirements, update/overwrite warning and backup instructions first.
57
+
48
58
  For standalone library development on Python 3.14 or newer:
49
59
 
50
60
  ```sh
51
- python -m pip install PyLoxone-Audio==0.2.0
61
+ python -m pip install PyLoxone-Audio==0.2.1
52
62
  ```
53
63
 
54
64
  Home Assistant users should obtain the matching integration through its supported installation route rather than manually running pip in Home Assistant OS. A nested preview directory is not a HACS repository.
@@ -60,7 +70,7 @@ Home Assistant users should obtain the matching integration through its supporte
60
70
  - [Announcements and automations](https://github.com/davehocking/PyLoxone-Audio/blob/main/AUTOMATIONS.md)
61
71
  - [Update and recovery](https://github.com/davehocking/PyLoxone-Audio/blob/main/UPDATING.md)
62
72
  - [Local diagnostics](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS.md)
63
- - [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.0.md)
73
+ - [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.1.md)
64
74
 
65
75
  ## Limits
66
76
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyLoxone-Audio
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Native audio transport and source policies for PyLoxone
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://github.com/davehocking/PyLoxone-Audio
@@ -20,7 +20,7 @@ Dynamic: license-file
20
20
 
21
21
  Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using the music accounts already configured in Loxone and the existing Home Assistant room players. No second integration or separate audio login.
22
22
 
23
- **Library 0.2.0** and **reference audio adapter 0.2.0** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
23
+ **Library 0.2.1** and **reference audio adapter 0.2.1** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
24
24
 
25
25
  ## What it adds
26
26
 
@@ -31,6 +31,14 @@ Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using the mu
31
31
  - Announcements to an explicitly selected speaker, dynamic group or Config fixed group.
32
32
  - Version information and optional local diagnostic downloads.
33
33
 
34
+ ## See it in action
35
+
36
+ A look at the real interface in dark mode: manage speakers and groups, browse music, and use your existing Home Assistant room players. Personal room and account labels have been redacted.
37
+
38
+ ![Audioserver Management dark mode](docs/images/audioserver-management-dark.png)
39
+
40
+ **[Take the visual tour →](docs/UI-TOUR.md)** — group controls, music browsing, the native player and the phone-width layout.
41
+
34
42
  ## Required setup
35
43
 
36
44
  Use a matching host adapter. In **Settings → Devices & services → Loxone**, open the existing entry's options:
@@ -45,10 +53,12 @@ Despite its name, that option also enables browsing, source selection and return
45
53
 
46
54
  The reference adapter targets PyLoxone's extracted `pyloxone-api` architecture. It requires the guarded-send/observer API extension: unmodified `pyloxone-api==0.6.1` does not provide that interface. Do not replace the dependency with stock 0.6.1 or copy this adapter over an arbitrary host version. See the [version-bound adapter guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md) for the exact host base and dependency requirements.
47
55
 
56
+ **Technology trial:** A [version-pinned manual preview](https://github.com/davehocking/PyLoxone-Audio/tree/main/preview-build) bundles the matching integration/UI and patched API so it can be tried before upstream adoption. It is **not a general upgrade or HACS release**: read its exact version requirements, update/overwrite warning and backup instructions first.
57
+
48
58
  For standalone library development on Python 3.14 or newer:
49
59
 
50
60
  ```sh
51
- python -m pip install PyLoxone-Audio==0.2.0
61
+ python -m pip install PyLoxone-Audio==0.2.1
52
62
  ```
53
63
 
54
64
  Home Assistant users should obtain the matching integration through its supported installation route rather than manually running pip in Home Assistant OS. A nested preview directory is not a HACS repository.
@@ -60,7 +70,7 @@ Home Assistant users should obtain the matching integration through its supporte
60
70
  - [Announcements and automations](https://github.com/davehocking/PyLoxone-Audio/blob/main/AUTOMATIONS.md)
61
71
  - [Update and recovery](https://github.com/davehocking/PyLoxone-Audio/blob/main/UPDATING.md)
62
72
  - [Local diagnostics](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS.md)
63
- - [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.0.md)
73
+ - [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.1.md)
64
74
 
65
75
  ## Limits
66
76
 
@@ -12,6 +12,7 @@ NOTICE.md
12
12
  QUICKSTART.md
13
13
  README.md
14
14
  RELEASE-NOTES-0.2.0.md
15
+ RELEASE-NOTES-0.2.1.md
15
16
  SUPPORT.md
16
17
  UPDATING.md
17
18
  USER-GUIDE.md
@@ -32,6 +33,7 @@ pyloxone_audio/grouping.py
32
33
  pyloxone_audio/metadata.py
33
34
  pyloxone_audio/models.py
34
35
  pyloxone_audio/native.py
36
+ pyloxone_audio/pause.py
35
37
  pyloxone_audio/projection.py
36
38
  pyloxone_audio/py.typed
37
39
  pyloxone_audio/radio.py
@@ -99,6 +101,7 @@ tests/library/test_metadata_observation.py
99
101
  tests/library/test_native_status_aliases.py
100
102
  tests/library/test_native_status_decoding.py
101
103
  tests/library/test_native_status_report_preparation.py
104
+ tests/library/test_pause_qualification.py
102
105
  tests/library/test_playback_failure_recovery.py
103
106
  tests/library/test_portable_policies.py
104
107
  tests/library/test_published_authentication.py
@@ -1,6 +1,6 @@
1
1
  # Quick start
2
2
 
3
- Use the matching PyLoxone audio adapter and PyLoxone-Audio 0.2.0 together. Installing the library alone does not replace Home Assistant component files or browser resources.
3
+ Use the matching PyLoxone audio adapter and PyLoxone-Audio 0.2.1 together. Installing the library alone does not replace Home Assistant component files or browser resources.
4
4
 
5
5
  1. Check the exact host base and communication API requirements in [the adapter guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md). Stock API 0.6.1 does not implement the required guarded-send interface.
6
6
  2. Back up Home Assistant and the complete existing component before installation or upgrade; follow [update and recovery](UPDATING.md).
@@ -2,7 +2,7 @@
2
2
 
3
3
  Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using the music accounts already configured in Loxone and the existing Home Assistant room players. No second integration or separate audio login.
4
4
 
5
- **Library 0.2.0** and **reference audio adapter 0.2.0** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
5
+ **Library 0.2.1** and **reference audio adapter 0.2.1** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
6
6
 
7
7
  ## What it adds
8
8
 
@@ -13,6 +13,14 @@ Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using the mu
13
13
  - Announcements to an explicitly selected speaker, dynamic group or Config fixed group.
14
14
  - Version information and optional local diagnostic downloads.
15
15
 
16
+ ## See it in action
17
+
18
+ A look at the real interface in dark mode: manage speakers and groups, browse music, and use your existing Home Assistant room players. Personal room and account labels have been redacted.
19
+
20
+ ![Audioserver Management dark mode](docs/images/audioserver-management-dark.png)
21
+
22
+ **[Take the visual tour →](docs/UI-TOUR.md)** — group controls, music browsing, the native player and the phone-width layout.
23
+
16
24
  ## Required setup
17
25
 
18
26
  Use a matching host adapter. In **Settings → Devices & services → Loxone**, open the existing entry's options:
@@ -27,10 +35,12 @@ Despite its name, that option also enables browsing, source selection and return
27
35
 
28
36
  The reference adapter targets PyLoxone's extracted `pyloxone-api` architecture. It requires the guarded-send/observer API extension: unmodified `pyloxone-api==0.6.1` does not provide that interface. Do not replace the dependency with stock 0.6.1 or copy this adapter over an arbitrary host version. See the [version-bound adapter guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md) for the exact host base and dependency requirements.
29
37
 
38
+ **Technology trial:** A [version-pinned manual preview](https://github.com/davehocking/PyLoxone-Audio/tree/main/preview-build) bundles the matching integration/UI and patched API so it can be tried before upstream adoption. It is **not a general upgrade or HACS release**: read its exact version requirements, update/overwrite warning and backup instructions first.
39
+
30
40
  For standalone library development on Python 3.14 or newer:
31
41
 
32
42
  ```sh
33
- python -m pip install PyLoxone-Audio==0.2.0
43
+ python -m pip install PyLoxone-Audio==0.2.1
34
44
  ```
35
45
 
36
46
  Home Assistant users should obtain the matching integration through its supported installation route rather than manually running pip in Home Assistant OS. A nested preview directory is not a HACS repository.
@@ -42,7 +52,7 @@ Home Assistant users should obtain the matching integration through its supporte
42
52
  - [Announcements and automations](https://github.com/davehocking/PyLoxone-Audio/blob/main/AUTOMATIONS.md)
43
53
  - [Update and recovery](https://github.com/davehocking/PyLoxone-Audio/blob/main/UPDATING.md)
44
54
  - [Local diagnostics](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS.md)
45
- - [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.0.md)
55
+ - [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.1.md)
46
56
 
47
57
  ## Limits
48
58
 
@@ -52,4 +62,4 @@ Source controls depend on the player's current state and advertised capability.
52
62
 
53
63
  The Home Assistant-independent library owns Audio Server commands, events and source policies. The host adapter owns setup, entities and cleanup and supplies current authentication. See [API](https://github.com/davehocking/PyLoxone-Audio/blob/main/API.md) and [contribution/testing](https://github.com/davehocking/PyLoxone-Audio/blob/main/CONTRIBUTING-RELEASE.md).
54
64
 
55
- Built on PyLoxone and its contributors' work. Thanks to Sebastian (@SebastianEitzert) for his contributions. Development is human-directed with LLM assistance. [Apache-2.0](https://github.com/davehocking/PyLoxone-Audio/blob/main/LICENSE); existing [notices](https://github.com/davehocking/PyLoxone-Audio/blob/main/NOTICE.md) are retained. The separate communication API retains its own licence.
65
+ Built on PyLoxone and its contributors' work. Thanks to Sebastian (@SebastianEitzert) for his contributions. Development is human-directed with LLM assistance. [Apache-2.0](https://github.com/davehocking/PyLoxone-Audio/blob/main/LICENSE); existing [notices](https://github.com/davehocking/PyLoxone-Audio/blob/main/NOTICE.md) are retained. The separate communication API retains its own licence.
@@ -0,0 +1,13 @@
1
+ # PyLoxone-Audio 0.2.1
2
+
3
+ A bug-fix release for pausing multiple rooms while a dynamic group exists.
4
+
5
+ - Already-paused or stopped rooms, and fully quiet groups, can satisfy Pause from fresh native feedback without sending redundant commands.
6
+ - Playing or unqualified targets retain the existing guarded command path. Genuine errors remain visible; no automatic retries, fallbacks, volume changes or group-membership changes are added.
7
+ - The library provides one shared pause-state qualifier, used by the matching reference adapter.
8
+
9
+ Update **both the library and reference audio adapter to 0.2.1**. Installing the library alone does not update an existing Home Assistant integration. The complete technology-trial preview includes the matching adapter and patched API; its pinned host and installation requirements still apply.
10
+
11
+ Preserve local customisations, including climate changes, and take a full downloaded Home Assistant backup before changing an installation. The frontend and communication API are unchanged by this fix.
12
+
13
+ Thanks to SebastianEitzert for the large-installation report and testing input.
@@ -1,6 +1,6 @@
1
1
  # Update and recovery
2
2
 
3
- Update **PyLoxone-Audio 0.2.0 and reference audio adapter 0.2.0 together**. Use the adapter matching the documented upstream host base and communication API interface. A package-manager upgrade alone does not replace component files or static resources.
3
+ Update **PyLoxone-Audio 0.2.1 and reference audio adapter 0.2.1 together**. Use the adapter matching the documented upstream host base and communication API interface. A package-manager upgrade alone does not replace component files or static resources.
4
4
 
5
5
  1. Make a supported full Home Assistant backup, including configuration and the current custom integration. Keep the previous complete integration and matching dependencies.
6
6
  2. Stop Home Assistant through its supported administration route before replacing integration files. Install the complete matching component instead of stock PyLoxone, not alongside it. Do not overwrite an unrecognised customised tree; reconcile your changes offline first.
@@ -1,14 +1,15 @@
1
1
  """
2
2
  Concrete PyLoxone-Audio API, independent of Home Assistant.
3
3
 
4
- Apache-2.0. Version 0.2.0.
4
+ Apache-2.0. Version 0.2.1.
5
5
  The historical fake-backed facade contract is outside this distribution.
6
6
  """
7
- __version__ = "0.2.0"
7
+ __version__ = "0.2.1"
8
8
 
9
9
  from .announcement import async_send_prepared_announcement
10
10
  from .catalogue import AudioCatalogue, CatalogueTarget, ConfiguredSource
11
11
  from .metadata import AudioMetadataCoordinator
12
+ from .pause import pause_already_satisfied
12
13
 
13
14
  from .models import MediaKind, MediaNode, SearchResult
14
15
  from .native import (
@@ -85,4 +86,5 @@ __all__ = [
85
86
  "native_track_identity",
86
87
  "parse_audio_events",
87
88
  "passive_history_eligible",
89
+ "pause_already_satisfied",
88
90
  ]
@@ -0,0 +1,37 @@
1
+ """Fresh native pause-state qualification, shared by room and group callers."""
2
+ from datetime import datetime
3
+
4
+ def pause_already_satisfied(snapshot, player_id, now):
5
+ if snapshot is None:
6
+ return False
7
+ if type(player_id) is not int or player_id < 1 or player_id > 2 ** 31 - 1:
8
+ return False
9
+ snapshot_player = snapshot.player_id
10
+ if type(snapshot_player) is not int or snapshot_player < 1 or snapshot_player > 2 ** 31 - 1:
11
+ return False
12
+ if player_id != snapshot_player:
13
+ return False
14
+ if snapshot.native_mode != "pause" and snapshot.native_mode != "stop":
15
+ return False
16
+ power = snapshot.native_power
17
+ if power is not None and power != "on" and power != "off":
18
+ return False
19
+ if snapshot.event_idle is not True:
20
+ return False
21
+ if snapshot.event_active is not False:
22
+ return False
23
+ received_at = snapshot.received_at
24
+ if isinstance(received_at, datetime) is False:
25
+ return False
26
+ if isinstance(now, datetime) is False:
27
+ return False
28
+ if received_at.utcoffset() is None:
29
+ return False
30
+ if now.utcoffset() is None:
31
+ return False
32
+ age = (now - received_at).total_seconds()
33
+ if age < 0:
34
+ return False
35
+ if age > 30:
36
+ return False
37
+ return True
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "PyLoxone-Audio"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Native audio transport and source policies for PyLoxone"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.14"
@@ -0,0 +1,42 @@
1
+ """Primary-owned immutable tests for the pure pause-state qualification body."""
2
+ from datetime import datetime, timedelta, timezone
3
+ from types import SimpleNamespace
4
+ import importlib.util, json, sys
5
+
6
+ now=datetime(2026,12,3,18,0,tzinfo=timezone.utc)
7
+ def sample(**changes):
8
+ row=dict(player_id=7,native_mode='pause',native_power='on',event_idle=True,event_active=False,received_at=now)
9
+ row.update(changes)
10
+ return SimpleNamespace(**row)
11
+
12
+ def cases(mode):
13
+ rows=[('paused',sample(),7,now,True),('stopped',sample(native_mode='stop'),7,now,True),
14
+ ('off',sample(native_mode='stop',native_power='off'),7,now,True),
15
+ ('legacy-power-absent',sample(native_power=None),7,now,True),
16
+ ('playing',sample(native_mode='play'),7,now,False),('unknown-mode',sample(native_mode=None),7,now,False),
17
+ ('missing',None,7,now,False),('wrong-player',sample(player_id=8),7,now,False),
18
+ ('active-event',sample(event_active=True),7,now,False),('event-unknown',sample(event_active=None),7,now,False),
19
+ ('event-idle-unknown',sample(event_idle=None),7,now,False),('offline',sample(native_power='offline'),7,now,False),
20
+ ('stale',sample(received_at=now-timedelta(seconds=31)),7,now,False),
21
+ ('future',sample(received_at=now+timedelta(seconds=1)),7,now,False),
22
+ ('no-time',sample(received_at=None),7,now,False),('naive',sample(received_at=now.replace(tzinfo=None)),7,now,False)]
23
+ if mode in ('heldout','all'):
24
+ rows += [('age-exact-bound',sample(received_at=now-timedelta(seconds=30)),7,now,True),
25
+ ('age-over-bound',sample(received_at=now-timedelta(seconds=30,microseconds=1)),7,now,False),
26
+ ('now-naive',sample(),7,now.replace(tzinfo=None),False),('now-missing',sample(),7,None,False)]
27
+ for field,values in [('event_active',[0,1,'false']),('event_idle',[0,1,'true']),('native_power',['','unknown',1,True]),('native_mode',['idle','Pause',0,False]),('received_at',[1,True,'2026-12-03'])]:
28
+ for index,value in enumerate(values):rows.append((field+'-'+str(index),sample(**{field:value}),7,now,False))
29
+ for index,value in enumerate([True,False,0,-1,2**31,7.0,'7',None]):
30
+ rows.append(('invalid-target-'+str(index),sample(),value,now,False))
31
+ rows.append(('invalid-row-player-'+str(index),sample(player_id=value),7,now,False))
32
+ return rows
33
+
34
+ import pytest
35
+ from pyloxone_audio import pause_already_satisfied
36
+
37
+ @pytest.mark.parametrize('name,row,player,clock,expected',cases('all'),ids=[c[0] for c in cases('all')])
38
+ def test_pause_requires_exact_fresh_quiet_observation(name,row,player,clock,expected):
39
+ before=None if row is None else vars(row).copy()
40
+ result=pause_already_satisfied(row,player,clock)
41
+ assert type(result) is bool and result is expected
42
+ assert row is None or vars(row)==before
File without changes
File without changes
File without changes
File without changes