PyLoxone-Audio 0.1.1__tar.gz → 0.1.2.post1__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 (61) hide show
  1. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/API.md +29 -6
  2. pyloxone_audio-0.1.2.post1/CHANGELOG.md +77 -0
  3. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/DIAGNOSTICS.md +13 -13
  4. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/EXACT-TRACK-RETURN.md +6 -1
  5. pyloxone_audio-0.1.2.post1/KNOWN-ISSUES.md +51 -0
  6. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/MANIFEST.in +4 -0
  7. pyloxone_audio-0.1.2.post1/METADATA-FRESHNESS.md +110 -0
  8. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/NATIVE-MODES.md +6 -1
  9. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/NOTICE.md +4 -4
  10. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/PKG-INFO +31 -6
  11. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/POSITION-RESTORE.md +6 -1
  12. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/PyLoxone_Audio.egg-info/PKG-INFO +31 -6
  13. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/PyLoxone_Audio.egg-info/SOURCES.txt +4 -0
  14. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/README.md +30 -5
  15. pyloxone_audio-0.1.2.post1/RELEASE-NOTES-0.1.2.md +60 -0
  16. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/SPOTIFY.md +6 -1
  17. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/__init__.py +1 -1
  18. pyloxone_audio-0.1.2.post1/pyloxone_audio/metadata.py +354 -0
  19. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/native.py +54 -2
  20. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyproject.toml +1 -1
  21. pyloxone_audio-0.1.1/pyloxone_audio/metadata.py +0 -110
  22. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/LICENSE +0 -0
  23. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/PyLoxone_Audio.egg-info/dependency_links.txt +0 -0
  24. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/PyLoxone_Audio.egg-info/requires.txt +0 -0
  25. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/PyLoxone_Audio.egg-info/top_level.txt +0 -0
  26. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/announcement.py +0 -0
  27. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/catalogue.py +0 -0
  28. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/clock.py +0 -0
  29. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/diagnostic_events.py +0 -0
  30. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/models.py +0 -0
  31. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/py.typed +0 -0
  32. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/radio.py +0 -0
  33. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/selection.py +0 -0
  34. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/pyloxone_audio/sources.py +0 -0
  35. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/setup.cfg +0 -0
  36. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/conftest.py +0 -0
  37. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/fixtures/audioserver/README.md +0 -0
  38. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/fixtures/audioserver/sebastian_alarm_end.txt +0 -0
  39. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/fixtures/audioserver/sebastian_loxone_radio.json +0 -0
  40. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/fixtures/audioserver/sebastian_tts.json +0 -0
  41. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/fixtures/audioserver/sebastian_tunein.json +0 -0
  42. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/pytest.ini +0 -0
  43. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audio_modes.py +0 -0
  44. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_announcement.py +0 -0
  45. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_connection.py +0 -0
  46. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_events.py +0 -0
  47. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_library_source.py +0 -0
  48. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_metadata.py +0 -0
  49. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_playback.py +0 -0
  50. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_seek.py +0 -0
  51. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_timing.py +0 -0
  52. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_audioserver_wire.py +0 -0
  53. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_boundary_environment.py +0 -0
  54. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_boundary_ownership.py +0 -0
  55. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_boundary_qualification.py +0 -0
  56. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_diagnostic_events.py +0 -0
  57. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_diagnostic_wire.py +0 -0
  58. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_distribution_dependencies.py +0 -0
  59. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_exact_track_start.py +0 -0
  60. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_portable_policies.py +0 -0
  61. {pyloxone_audio-0.1.1 → pyloxone_audio-0.1.2.post1}/tests/library/test_restore_readiness.py +0 -0
@@ -1,4 +1,9 @@
1
- # PyLoxone-Audio 0.1.1 — API and compatibility
1
+ # PyLoxone-Audio 0.1.2 — API and compatibility
2
+
3
+ The 0.1.2 metadata-freshness correction passed independent engineering and
4
+ release-preparation review. The matching runtime pair is installed locally for
5
+ normal-use testing. Actual publication and sustained physical/UI outcomes are
6
+ separate; verify the matching release and production-gate receipts.
2
7
 
3
8
  A separately installable Apache-2.0 Python library containing the concrete native
4
9
  audio implementation used by one existing PyLoxone integration. This is not a
@@ -98,11 +103,11 @@ portable runs explicitly reject HA imports. External I/O in tests is synthetic;
98
103
  AF_UNIX wire tests use actual websocket/crypto implementations with TCP blocked.
99
104
  No all-version/firmware/room or universal physical playback claim follows from these tests.
100
105
 
101
- For Python consumers, install the public named pin `PyLoxone-Audio==0.1.1` in a
102
- supported isolated environment. The release production gate checks both public
103
- wheel and sdist resolution, dependencies, imports and runtime identity. A local
104
- `--no-deps` wheel installation is only an artifact test, not public resolution.
105
- The matching host manifest pins that version while retaining domain `loxone`,
106
+ For Python consumers, the matching pair pins `PyLoxone-Audio==0.1.2`.
107
+ Do not substitute 0.1.1 or infer public availability from version text alone.
108
+ The production gate must verify normal public-index wheel AND sdist resolution,
109
+ dependencies, imports and runtime digests after publication. Local artifact tests
110
+ are not that gate. The matching host manifest pins 0.1.2 while retaining domain `loxone`,
106
111
  name PyLoxone and integration version 0.10.2. For HA, use the complete matching
107
112
  adapter/preview and normal host dependency handling, not a manual live pip step.
108
113
 
@@ -121,3 +126,21 @@ provider access. The native command/authentication/metadata/Browse/manual-seek A
121
126
  remains. previous_source_labels is the room-local playable-content view; configured
122
127
  presence is still source_descriptors, not evidence of selected/played content.
123
128
  See SPOTIFY.md and POSITION-RESTORE.md for the current function map and limits.
129
+
130
+ ## 0.1.2 freshness and host obligations
131
+
132
+ `AudioZoneMetadata.has_observation`, receiver per-player meaningful revisions and
133
+ `AudioMetadataCoordinator.get`/`set_playing` separate fresh native information
134
+ from independently reported activity. The adapter supplies Miniserver PLAYING,
135
+ clears withheld projected metadata and owns `async_add_reconciler` registration
136
+ and removal. Recovery uses `AudioServerCommands.async_player_status` and the
137
+ existing listener's `async_refresh_snapshot`, not a media-control fallback.
138
+
139
+ Expired active data becomes unknown after 30 seconds or a trustworthy track end.
140
+ Recovery is opt-in, serial per entry, >=1 second between starts, <=15 seconds per
141
+ read and capped 300-second per-player failure backoff. Exact player, stream,
142
+ meaningful-feedback revision, credentials, intent and ownership must still match
143
+ before publication. Idle/paused rooms are not polled simply for age. Continuous
144
+ empty rows can clear presentation again; useful read publication is not a promise
145
+ of uninterrupted metadata under arbitrary unusable traffic. See the full
146
+ [freshness contract](METADATA-FRESHNESS.md) and [remaining return limits](KNOWN-ISSUES.md).
@@ -0,0 +1,77 @@
1
+ # Changelog
2
+
3
+ ## 0.1.2.post1 — 2026-10-29
4
+
5
+ - Documentation-only post-release: publish the corrected PyPI package description, removing the stale statement that 0.1.2 was not publicly released.
6
+ - Preserve every library runtime file, dependency and matching 0.1.2 adapter/pin. Existing Home Assistant installations need no update or restart. Original 0.1.2 releases and files are not replaced; a separately named documentation-only preview refreshes current README hashes and provenance.
7
+ - The only Python-source edits are test/preview helper literals for the exact distribution version and newly named archive. Library/audio code and all test assertions remain otherwise unchanged; no checks are removed or weakened.
8
+
9
+ ## 0.1.2 — 2026-10-29
10
+
11
+ - Address [stale Audio Server metadata and HA track/progress synchronisation (#2)](https://github.com/davehocking/PyLoxone-Audio/issues/2) on the current integration. Clear expired active title/artwork/timing while preserving independent Miniserver playing/volume state.
12
+ - Use bounded read-only native status recovery through the existing opted-in client. Reject stale player, stream, credentials, meaningful feedback and newer-intent results; continuing unusable frames cannot starve useful delayed recovery publication.
13
+ - Ship the matching library AND PyLoxone 0.10.2 adapter. Relative to the already-audio-enabled published 0.1.1 adapter, the host delta is twelve added lines in `media_player.py` plus the dependency pin change in `manifest.json`. This is not the cumulative stock-host adoption diff, nor evidence Jo has adopted 0.1.1.
14
+ - Independent source/exact-wheel and owning-HA engineering and release-preparation acceptance is complete; the accepted runtime pair is installed locally for normal-use testing. This publication successor preserves all runtime bytes. Hosted CI, actual uploaded distributions and fresh normal public-index wheel/sdist acceptance are mandatory and recorded separately from offline review. Issue #2 is the canonical metadata status thread.
15
+ - Preserve the existing Audio Server host + experimental playback-ON prerequisite. Diagnostics remains separate, optional and default OFF for new users. No playback/source/seek/volume/mode fallback, new setting, provider bridge, grouping or restart persistence is introduced.
16
+ - Remaining source-return limits: without a qualified saved session a return can choose different content; transient native seek-support loss can skip the optional saved-position send. A later same-track/saved-position return with shuffle ON succeeded, not a fix for all returns. Historical receive cause, regression attribution and shuffle causation remain unproved. See [known issues](KNOWN-ISSUES.md).
17
+ - Refresh setup/API, release notes, diagnostics/tester/maintainer instructions and both baseline-labelled adapter patches; keep preview/host material out of Python distributions. Old released and accepted artifacts remain unchanged.
18
+
19
+ ## 0.1.1 — 2026-10-28
20
+
21
+ - Retire the optional HA-Spotify provider/session/binding bridge; preserve native
22
+ Loxone Spotify, the independent HA Spotify integration and existing safety guards.
23
+ - Show usable exact-room previous content in HA’s standard Source selector,
24
+ including qualified native/external playback. Folder visits alone do not qualify;
25
+ configured Line-In inputs remain last. Previous-source/bookmark state is RAM-only.
26
+ - Add native Shuffle on/off and Repeat Off/All/One in standard More info controls
27
+ when actual player permissions and firmware qualify. Display native feedback,
28
+ including unknown/disconnected state, rather than optimistic requested modes.
29
+ - Match official individual Spotify track/episode starts with `/noshuffle` after
30
+ validated parent/cursor. Require same-track feedback for saved exact-item returns;
31
+ preserve last-good content on wrong-track feedback and overlapping Source actions.
32
+ This is not a persistent shuffle/queue guarantee or proof of the historical cause.
33
+ - After confirmed same-track Spotify/Local Library return, allow at most two seconds
34
+ for seek support, then at most one optional native saved-position attempt.
35
+ Already-ready tracks do not wait. Timeout keeps confirmed playback; changed
36
+ track/account/action, lifecycle and uncertainty guards remain. No per-room setup.
37
+ - Add a separate default-OFF Audio diagnostics switch, bounded local rolling 24-hour
38
+ sanitised events and admin download. Preference durability/coverage/omissions and
39
+ failure health are explicit. Toggling does not reload or change playback; no upload.
40
+ - Independent source/exact-wheel and owning-HA review precedes common HAOS adoption.
41
+ On 28 October the owner accepted two same-track/near-saved-position returns from
42
+ Local Library to Spotify in one room, with supporting native feedback. This does
43
+ not establish all-room acoustic, whole-queue or restart persistence acceptance.
44
+ - Refresh complete preview, exact-base maintainer pack, installation/update/rollback
45
+ and release guides; keep them separate from library wheel/sdist runtime.
46
+ - Enforce the standing production gate: upload tested wheel/sdist, verify actual
47
+ public PyPI files/digests, and resolve fresh normal-index named-pin wheel AND
48
+ sdist installations with dependencies, imports and exact runtime checks.
49
+ - Keep current Audio Server host/playback option label/default/gate unchanged.
50
+ Diagnostics is separate. Intermittent audible volume lag remains unresolved.
51
+
52
+ ### Known issues discovered after release
53
+
54
+ - [#2 — stale track/progress](https://github.com/davehocking/PyLoxone-Audio/issues/2): HA may retain old Audio Server metadata while native playback continues with different content. Committed for resolution in 0.1.2; not yet verified fixed. Use the issue for current status and sanitised reports.
55
+
56
+ Published 0.1.0 artifacts remain immutable. The notes below preserve that release’s
57
+ historical preparation, not the current 0.1.1 publication or adoption status.
58
+
59
+ ## 0.1.0 — first release (2026-10-25)
60
+
61
+ Freeze the owner-agreed native audio/source feature set from the independently
62
+ accepted offline extraction. Preserve transport authentication/identity, fences,
63
+ clock isolation, cancellation/lifecycle, strict browser/manual seek, source return,
64
+ last-good history, native Spotify session handling and one optional best-effort
65
+ position restore. No added playback feature or architecture replacement.
66
+
67
+ Exclude development-only detailed diagnostic contexts, snapshots, collectors,
68
+ stage/operation instrumentation, HA trace decorators and last_source_failure
69
+ publication from the library and local host adapter. Retain ordinary useful fixed
70
+ warnings and error propagation/translation without exception/provider payloads.
71
+ The pre-release diagnostics API and diagnostic-only observation-operation label
72
+ are removed, not retained as compatibility stubs.
73
+
74
+ Set library metadata to PyLoxone-Audio 0.1.0 and prepare the existing integration's
75
+ local requirement PyLoxone-Audio==0.1.0. This does not change the integration's own
76
+ version/domain/name. Local wheel, sdist and host assets are not public releases.
77
+ Historical 0.0.0.dev0 receipts remain separately preserved and are not relabelled.
@@ -1,16 +1,13 @@
1
- # Opt-in audio diagnostics — 0.1.1
1
+ # Opt-in audio diagnostics — inherited in 0.1.2
2
2
 
3
- This feature is part of the matching PyLoxone 0.10.2 adapter and PyLoxone-Audio
4
- 0.1.1 release pair, not the older 0.1.0 release. Installing the wheel alone does
5
- not add the Home Assistant switch. The matching pair has been privately installed
6
- on HAOS (Core 2026.10.4, Python 3.14.9); owner-enabled collection and a downloaded
7
- diagnostic report have been observed. This is not public availability, upstream
8
- approval, a universal UI/device test or a physical playback repair.
9
-
10
- The final same-track/native-mode pair has completed independent review and
11
- common private adoption. The owner subsequently accepted two one-room returns
12
- with supporting saved-session, exact command, content and position feedback.
13
- That is bounded confirmation, not all-room acoustic or queue proof.
3
+ This separate, optional feature was introduced in 0.1.1 and is retained unchanged
4
+ in the matching 0.1.2 library/adapter pair. New users default OFF; existing saved
5
+ preferences are preserved. Installing the wheel alone does not add the HA switch.
6
+ The accepted pair is installed locally for testing; public availability is verified
7
+ by the matching release and mandatory public-index production gate.
8
+ Diagnostics neither enables the Audio Server client nor repairs playback. Set the
9
+ Audio Server host and existing experimental playback option separately; see
10
+ [Required setup](README.md#required-audio-server-configuration).
14
11
 
15
12
  Defaults, switch preferences, retention, storage/export bounds and schema version1
16
13
  remain unchanged. Its narrowly extended allowlist records native aliased
@@ -81,7 +78,10 @@ Menu placement may vary with HA. The private report is not a public fixture.
81
78
  `send_attempt`, `send_completed` and `reply` or an error/timeout. Use
82
79
  `session_saved` and `restore_decision` to distinguish a missing bookmark, an
83
80
  ineligible seek and an actual seek attempt. A `restore_echo` is not proof the
84
- loudspeaker playback moved; report what was heard separately.
81
+ loudspeaker playback moved; report what was heard separately. An optional seek
82
+ with authentication/error but no `send_attempt`/`send_completed` was not sent;
83
+ do not describe it as a server-rejected dispatched seek. Transient
84
+ `seek_unsupported` and `missing_session` remain [known return limits](KNOWN-ISSUES.md).
85
85
  - Include the local incident time and timezone, intended room/source, exact
86
86
  versions/build, normal UI steps, and expected versus observed behaviour.
87
87
  Review the complete JSON before attaching it manually. Do not post private
@@ -1,4 +1,9 @@
1
- # Exact remembered-track return — 0.1.1
1
+ # Exact remembered-track return — inherited 0.1.1 behaviour
2
+
3
+ > 0.1.2 preserves this feature, not a new source-return/mode correction.
4
+ > See [0.1.2 release notes](RELEASE-NOTES-0.1.2.md) and
5
+ > [remaining return/position limitations](KNOWN-ISSUES.md). Historical 0.1.1
6
+ > acceptance below must not be read as universal 0.1.2 return acceptance.
2
7
 
3
8
  The matching library and adapter passed independent source and exact-wheel review, and the common pair was installed on Home Assistant OS (Core 2026.10.4, Python 3.14.9). On 28 October 2026 the owner accepted two normal-use Local Library → Spotify returns to the same track near its saved position, supported by integration command and native content/position feedback. This is one-room confirmation, not all-room acoustic, whole-queue, persistent shuffle or restart-recovery proof.
4
9
 
@@ -0,0 +1,51 @@
1
+ # Known issues — 0.1.2
2
+
3
+ [Issue #2](https://github.com/davehocking/PyLoxone-Audio/issues/2) is the canonical metadata status thread. Version 0.1.2 addresses that defect; publication is complete only after the matching GitHub/PyPI and normal public-index production gate. The owner's issue wording and the distinct source-return limitations below remain authoritative.
4
+
5
+ ## Stale track, artwork and progress (#2)
6
+
7
+ Confirmed on the released 0.1.1 library/adapter pair: HA could retain older native
8
+ metadata while Loxone played other content. The 0.1.2 paired correction clears
9
+ expired active metadata and attempts bounded read-only status recovery while
10
+ preserving independent Miniserver playing/volume state. Source/exact-wheel and
11
+ real owning-HA software tests passed independent engineering review; the accepted
12
+ runtime was installed and parent-verified locally for testing. Sustained live
13
+ track-change/overnight recovery, sound and rendered UI are distinct acceptance
14
+ contexts. Historical missing-frame/network/firmware cause is unproved.
15
+ Continued unusable raw frames can make presentation unknown again after a useful
16
+ read: no old content or capability is merged into new raw rows.
17
+
18
+ ## Source return is not universally repaired
19
+
20
+ Local normal-use observations on 29 October 2026 include separate outcomes:
21
+
22
+ - Without a qualified saved session, returning to a source selected different
23
+ content. A previous displayed track is not proof a usable bookmark was saved.
24
+ - A later saved-position return reached the same track near its saved position
25
+ with shuffle ON and subsequent same-track native progress. This bounded success
26
+ does not close the other cases or establish whole-queue continuity.
27
+ - Another return reached the right track, but native seek support temporarily
28
+ disappeared during authentication. The optional position send was skipped;
29
+ playback continued from the beginning. No dispatched seek rejection was proved.
30
+
31
+ The initial content/session issue and intermittent position-readiness issue
32
+ remain unresolved; no new source-return fix is included in 0.1.2.
33
+ Shuffle causation, firmware cause and version-regression attribution remain
34
+ unproved. Track/position return and global shuffle state are separate concerns;
35
+ `/noshuffle` on an individual start is not a persistent-mode/queue guarantee.
36
+
37
+ ## Other retained limits
38
+
39
+ - Bookmarks/history are room-specific and RAM-only, not restored after HA restart.
40
+ - Source/seek/mode support depends on configured native accounts and firmware.
41
+ Optional position failure does not undo confirmed source playback; there is no
42
+ blind replay, substitute selection or compensating shuffle write.
43
+ - Intermittent audible volume lag is not fixed; grouping/cross-room sessions and
44
+ persistence are not new 0.1.2 features. No universal legacy Music Server support.
45
+ - Diagnostics is optional/default OFF for new users. It has bounded coverage and
46
+ omissions; zero failure counters do not prove every frame was received. Review
47
+ the entire HA download before sharing; see [DIAGNOSTICS.md](DIAGNOSTICS.md).
48
+
49
+ Report expected/observed content and position separately, with exact versions,
50
+ incident time/timezone and sanitised diagnostic request/send/reply/decision
51
+ stages. Do not post room/account IDs, private titles, tokens, URLs or raw logs.
@@ -15,3 +15,7 @@ include POSITION-RESTORE.md
15
15
  include DIAGNOSTICS.md
16
16
  include NATIVE-MODES.md
17
17
  include EXACT-TRACK-RETURN.md
18
+ include METADATA-FRESHNESS.md
19
+ include KNOWN-ISSUES.md
20
+ include RELEASE-NOTES-0.1.2.md
21
+ include CHANGELOG.md
@@ -0,0 +1,110 @@
1
+ # 0.1.2: native metadata freshness
2
+
3
+ This correction passed independent source/exact-wheel, owning-HA engineering and
4
+ release-preparation review. The accepted matching runtime pair was installed
5
+ and parent-verified locally on 29 October 2026 for normal-use testing. This
6
+ publication successor preserves all runtime bytes; hosted/public-index acceptance
7
+ and sustained live recovery remain separate. A connected WebSocket proves neither
8
+ application-frame delivery nor that an old exact-player sample still describes
9
+ current playback. The original physical reason for missing accepted updates has
10
+ not been established.
11
+
12
+ ## Required installation unit
13
+
14
+ Use the **matching 0.1.2 library and current-host adapter together**, not a wheel-only
15
+ replacement. The adapter remains based on PyLoxone 0.10.2 at its pinned upstream
16
+ commit. Its dependency is `PyLoxone-Audio==0.1.2`; the integration domain and host
17
+ version remain unchanged. The library requires Python >=3.14, not a broader tested
18
+ compatibility promise. Check the exact release and public-index gate before
19
+ external installation; no automatic installation or upstream adoption is implied.
20
+ Old 0.1.1 preview archives are historical artifacts, not this version's adapter.
21
+
22
+ ### Required setup
23
+
24
+ Set **Audioserver host** and enable **Use Audio Server player play/pause
25
+ (experimental; off by default)** (`audioserver_playback: true`) for active status
26
+ reconciliation as well as the existing Browse/Search, source return, play/pause,
27
+ seeking, native modes and announcement features. The narrow label is unchanged.
28
+ **Audio diagnostics** is separate and is not required to enable recovery.
29
+
30
+ The existing Audio Server host and playback opt-in still govern command-client
31
+ creation. This correction does not enable that option, change saved configuration
32
+ or acquire a separate provider login. With passive-only metadata, stale active
33
+ attributes become unknown; it does not silently create a command client.
34
+
35
+ ## Shared policy and owning host
36
+
37
+ - The shared coordinator separates native-sample freshness from independent
38
+ Miniserver PLAYING. It withholds expired active samples from all consumers,
39
+ including command eligibility, instead of merely capping a displayed slider.
40
+ - Active samples expire after 30 seconds, or earlier at a trustworthy native
41
+ playing track boundary. Structurally empty exact-player frames cannot keep old
42
+ content fresh. Idle/paused rooms are not polled simply because time has passed;
43
+ an active wake requalifies old state. STOP must not resurrect a withheld row.
44
+ - The HA entity reports independent PLAYING, clears expired projected attributes,
45
+ and registers an entry-owned reconciler only when the existing option provides
46
+ native commands. It does not change truthful Miniserver playing/volume state.
47
+ - Recovery uses the existing authenticated native player-status read, not a
48
+ playback/source/seek/mode operation, another cache or a new receiver service.
49
+ It publishes only through the original receiver's normal update path.
50
+ - An entry serialises reads, spaces starts by at least one second, bounds each
51
+ recovery by 15 seconds and caps per-player failure backoff at 300 seconds.
52
+ Successful but already-ended tracks cool down rather than starving another
53
+ room. These are software policy bounds, not physical-firmware guarantees.
54
+ - A read is discarded after intervening meaningful exact-player feedback, stream generation
55
+ change, changed credentials, source intent, ownership/fence changes or unload.
56
+ Wrong-player or unusable status cannot certify current content. Timers/tasks
57
+ are cancelled with the entry. No automatic media-control retry is introduced.
58
+ - A bare player row or one whose optional fields all fail parsing cannot veto a
59
+ useful status result while the read is pending. A per-player feedback revision
60
+ remembers intervening useful observations even if a later empty row replaces
61
+ the raw cache. Same-track updates, artist/album-only data, numeric zero, explicit
62
+ shuffle false and account/context identity still veto an older read. Generated
63
+ timestamps, greeting capabilities and the parser's default inactive-event flag
64
+ alone do not. No old capabilities or content are merged into a newer row.
65
+ Continued empty traffic may make presentation unknown again; this correction
66
+ proves useful read publication, not that an empty frame contains track data.
67
+ - Explicit opted-in source selection can requalify an expired existing sample;
68
+ it still requires the established source/account/identity/ownership guards.
69
+ Unqualified status cannot overwrite a populated last-good source record.
70
+
71
+ ## Evidence and limits
72
+
73
+ The parent regression and added reconciliation tests reach actual HA setup,
74
+ entities, event receiver and lifecycle with synthetic external I/O. Controls cover
75
+ continued PLAYING across track changes, track end, overnight wake, passive-only
76
+ unknown state, rejected seek, authentication changes through synthetic encrypted
77
+ wire I/O, newer intent/feedback, reconnect, two entries, room fairness, capped
78
+ backoff and unload. They are not a live household or physical-server test.
79
+
80
+ The exact final source/wheel case inventories, imported paths, unchanged-input
81
+ receipts, build/preview hashes and independent review belong to the engineering
82
+ handoff. A focused green test run alone is not full acceptance. Public release,
83
+ normal index resolution and any physical acceptance remain separate operations.
84
+
85
+ ## File map for review
86
+
87
+ - `pyloxone_audio/metadata.py`: freshness, entry timer, bounded reconciliation,
88
+ explicit bootstrap and cleanup.
89
+ - `pyloxone_audio/native.py`: receiver snapshot refresh and status-specific
90
+ authentication/intent continuity before dispatch and before publication.
91
+ - `adapters/pyloxone/overlay/custom_components/loxone/media_player.py`: independent
92
+ state feedback, clearing, entity-owned opt-in registration and lifecycle.
93
+ - `adapters/pyloxone/BASE.json` and the host manifest: exact paired assembly/pin.
94
+ - `tests/adapter/test_metadata_freshness_regression_ha.py`: immutable parent repro.
95
+ - `tests/adapter/test_metadata_reconciliation_ha.py`: owning-HA recovery controls.
96
+ - `tests/adapter/test_metadata_inflight_recovery_ha.py`: delayed publication under
97
+ continuing unusable traffic and retained sparse/newer-feedback fences.
98
+
99
+ The released known issue and owner-controlled public wording are retained in
100
+ README/CHANGELOG. No unrelated collaboration, migration, grouping or persistent
101
+ bookmark feature is included.
102
+
103
+ ## Remaining source-return limitations
104
+
105
+ Metadata recovery is not a source-return redesign. A missing qualified saved
106
+ session can lead to a different content selection; optional position restoration
107
+ can be skipped if native seek support disappears during authentication. One
108
+ same-track/saved-position return with shuffle ON succeeded in later local use,
109
+ but does not close either case. No new fix, firmware cause, shuffle attribution
110
+ or version regression is established by that outcome. See [KNOWN-ISSUES.md](KNOWN-ISSUES.md).
@@ -1,4 +1,9 @@
1
- # Native Shuffle and Repeat — 0.1.1
1
+ # Native Shuffle/Repeat — inherited 0.1.1 behaviour
2
+
3
+ > 0.1.2 preserves this feature, not a new source-return/mode correction.
4
+ > See [0.1.2 release notes](RELEASE-NOTES-0.1.2.md) and
5
+ > [remaining return/position limitations](KNOWN-ISSUES.md). Historical 0.1.1
6
+ > acceptance below must not be read as universal 0.1.2 return acceptance.
2
7
 
3
8
  ## What appears in Home Assistant
4
9
 
@@ -1,7 +1,7 @@
1
- # Provenance and licence — PyLoxone-Audio 0.1.1
1
+ # Provenance and licence — PyLoxone-Audio 0.1.2
2
2
 
3
- PyLoxone-Audio 0.1.1 is supplied under Apache-2.0. Published 0.1.0 remains
4
- immutable. `LICENSE` retains PyLoxone's Apache License, Version 2.0 verbatim.
3
+ PyLoxone-Audio 0.1.2 is supplied under Apache-2.0. Published 0.1.0 and 0.1.1 remain
4
+ immutable; this 0.1.2 publication preserves the independently accepted runtime. `LICENSE` retains PyLoxone's Apache License, Version 2.0 verbatim.
5
5
  Actual public availability is established by the matching release production gate.
6
6
 
7
7
  The HA entry ownership, exact-player mapping, current-token callback and entity-property delegation are adapted from the PyLoxone integration maintained by JoDehli and its contributors, specifically the sealed `media_player.py`, `audio.py` and `coordinator.py` call graph. Those inspected source files contain no additional per-file copyright notices to remove or replace. This project does not assign invented upstream copyright ownership.
@@ -10,7 +10,7 @@ The original native protocol source retains this attribution, which must accompa
10
10
 
11
11
  > Event names adapted from SebastianEitzert's Apache-2.0 POC in #523, comment 6251138699. See tests/fixtures/audioserver/README.md for provenance.
12
12
 
13
- The actual parser/event mapping is now extracted into `pyloxone_audio/native.py`, retaining that attribution. Native transport/authentication, metadata coordination, source policy, radio and catalogue implementations are derived from the immutable accepted source tree identified by `baseline-verification.json` and the extraction provenance receipts. Native announcement ownership remains extracted; the optional HA-Spotify bridge/provider session controller was retired in0.1.1, preserving native Spotify. HA preparation and UI responsibilities stay with the host. Relevant upstream attribution and Apache-2.0 terms are retained; no invented copyright assignment is made.
13
+ The actual parser/event mapping is now extracted into `pyloxone_audio/native.py`, retaining that attribution. Native transport/authentication, metadata coordination, source policy, radio and catalogue implementations are derived from the project's accepted extraction and native-audio implementation; public source history preserves the applicable versioned changes. Native announcement ownership remains extracted; the optional HA-Spotify bridge/provider session controller was retired in0.1.1, preserving native Spotify. HA preparation and UI responsibilities stay with the host. Relevant upstream attribution and Apache-2.0 terms are retained; no invented copyright assignment is made.
14
14
 
15
15
  Historical fake-facade, extraction and operational evidence remains outside release assets. The concrete package exports real native classes and source-policy functions instead. Synthetic fixture provenance is preserved under `tests/library/fixtures/audioserver/README.md` outside the wheel. The older path in the attribution quoted above is historical; the current location applies to this repository and its source archive. New default-off fixed-schema audio diagnostics supersedes the blanket instrumentation exclusion only for this increment; legacy private tracing, household observer/watchdog assets and HA failure-summary publication remain excluded.
16
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyLoxone-Audio
3
- Version: 0.1.1
3
+ Version: 0.1.2.post1
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
@@ -18,6 +18,21 @@ Dynamic: license-file
18
18
 
19
19
  # PyLoxone-Audio
20
20
 
21
+ > **Documentation-only revision `0.1.2.post1`.** This republishes corrected
22
+ > package-description text for the 0.1.2 metadata-fix release. Audio code,
23
+ > dependencies and the matching 0.1.2 adapter/pin are unchanged; existing
24
+ > installations need no update or restart. Original 0.1.2 files remain unchanged.
25
+ > A separately named preview refresh updates only documentation and provenance.
26
+
27
+ > **0.1.2 — metadata freshness and read-only recovery.** The matching library
28
+ > and adapter passed independent source/exact-wheel, owning-HA and release-preparation
29
+ > review. The accepted runtime is already installed locally for normal-use testing.
30
+ > See [release notes](RELEASE-NOTES-0.1.2.md) and the mandatory
31
+ > [publication verification gate](PUBLISHING.md). Physical/UI outcomes remain separate.
32
+ >
33
+ > **Both the library and matching adapter are required.** The host remains
34
+ > PyLoxone 0.10.2. No upstream adoption or automatic update is implied.
35
+
21
36
  A Python library for extending [PyLoxone](https://github.com/JoDehli/PyLoxone) capabilities on the Loxone Audio Server.
22
37
 
23
38
  PyLoxone-Audio is a separately maintained, testable audio library used through a companion PyLoxone adapter. Home Assistant retains **one integration, one setup and the existing room entities**.
@@ -30,6 +45,14 @@ The matching library and adapter passed independent source and exact-wheel revie
30
45
 
31
46
  Package availability and release-specific compatibility information belong on the [Releases page](https://github.com/davehocking/PyLoxone-Audio/releases). The library version is separate from the PyLoxone integration version; publishing a library package does not itself add support to an upstream PyLoxone release.
32
47
 
48
+ ## Known issues and the 0.1.2 correction
49
+
50
+ **[Stale track and progress in Home Assistant — #2](https://github.com/davehocking/PyLoxone-Audio/issues/2):** HA can keep showing an old track, artwork or elapsed time while the Loxone Audio Server plays different content. Playing/volume feedback and controls may still work. Confirmed with 0.1.1 and its matching reference adapter; the event-stream cause is still under investigation.
51
+
52
+ **0.1.2 addresses #2 with a focused metadata-freshness correction.** The paired correction has independent software and release-preparation acceptance and local installed-byte verification; sustained live recovery, rendered UI and all-room sound are not certified by those checks. Issue #2 is the canonical release/status thread. [METADATA-FRESHNESS.md](METADATA-FRESHNESS.md) identifies the tested library/adapter installation unit. Updating a Python package alone does not update the HA adapter.
53
+
54
+ The issue is the live status/reporting thread; the [0.1.1 release notes](https://github.com/davehocking/PyLoxone-Audio/releases/tag/v0.1.1) and [changelog](CHANGELOG.md) record version-specific changes and limitations. Please review and sanitise diagnostics before sharing; see [DIAGNOSTICS.md](DIAGNOSTICS.md).
55
+
33
56
  ## Why a separate library?
34
57
 
35
58
  Audio communication and playback behaviour are developed and tested independently of Home Assistant-specific configuration and entities. Keeping that work in a library gives it its own tests and releases, while the adapter tests cover its use within PyLoxone. PyLoxone still needs host-side review and compatibility testing when it adopts an adapter or dependency update.
@@ -53,7 +76,7 @@ Home Assistant
53
76
 
54
77
  The adapter is maintained alongside the library in this repository under `adapters/pyloxone/`. It is applied within PyLoxone, not installed as a separate Home Assistant integration. The adapter documentation identifies its supported host base and the matching library version.
55
78
 
56
- The current reference adapter targets released PyLoxone **0.10.2**, exact public commit `3db77b81f69c77cc814675d191061533b464df5e`, with library **0.1.1**. The maintained `preview-build/` directory supplies a complete pinned integration ZIP, provenance/checksums, repeatable build/verification and install/update/rollback/native-UI test instructions. Its focused `adapters/pyloxone/jo-review/` pack is for upstream review; no upstream adoption is claimed.
79
+ The reference adapter targets released PyLoxone **0.10.2**, exact public commit `3db77b81f69c77cc814675d191061533b464df5e`, with the matching **0.1.2** library. The accepted runtime pair is installed locally for testing. PyLoxone-Audio **0.1.2 is published on PyPI**, with its matching adapter review package and complete test preview available in the **GitHub v0.1.2 release**. These test/review materials are not a release of upstream PyLoxone. The 0.1.1 owner acceptance above remains bounded historical evidence. The maintained `preview-build/` directory supplies a complete pinned integration ZIP, provenance/checksums, repeatable build/verification and install/update/rollback/native-UI test instructions. Its focused `adapters/pyloxone/jo-review/` pack is for upstream review; no upstream adoption is claimed.
57
80
 
58
81
  The adapter uses the library's public interface. Ordinary internal library bug fixes should not require structural adapter changes. New capabilities or intentional breaking API changes may still need coordinated updates.
59
82
 
@@ -87,7 +110,7 @@ agreed; no change of defaults or upstream adoption is implied here.
87
110
 
88
111
  ## Audio behaviour
89
112
 
90
- Version 0.1.1 focuses on Loxone Audio Server-backed rooms. Supported sources are **Local Library, Loxone Radio, Spotify, TuneIn and Line-In**, where available and configured in Loxone. Not every installation has every source or subscription. SoundSuit is outside the 0.1.1 scope.
113
+ The 0.1.x feature set focuses on Loxone Audio Server-backed rooms. Supported sources are **Local Library, Loxone Radio, Spotify, TuneIn and Line-In**, where available and configured in Loxone. Not every installation has every source or subscription. SoundSuit is outside this scope.
91
114
 
92
115
  The standard **Source** selector lists only usable previously selected or played content for that exact room. Qualified native playback observed from Loxone or Spotify Connect can qualify without an HA play request. A folder visit, provider label, another room or phone-only playback cannot. First choose and **play** content in **Browse media > Radio** (TuneIn), **Local Library**, **Loxone Radio**, or **Spotify · your account**. No new history database is introduced. The requested “Previous Sources” wording cannot be set for the standard HA control; its normal **Source** heading is retained.
93
116
 
@@ -108,11 +131,13 @@ The main playback principles are:
108
131
 
109
132
  Returns use qualified room-native content, not a phone's unrelated selection. Saved exact tracks require matching feedback, and same-track position return has one-room owner confirmation. The whole queue and exact position on every attempt are not guaranteed. Historical raw capability-mask and wrong-track firmware causes remain unproved. Intermittent audible volume lag is **not fixed**.
110
133
 
134
+ Remaining source-return cases are not repaired by the metadata fix: a return without a qualified saved session can choose different content, and transient native seek-capability loss can skip optional position restoration. One saved-position return with shuffle ON succeeded locally, but does not close the other cases or prove their cause. See [known issues](KNOWN-ISSUES.md).
135
+
111
136
  See [native Spotify’s function map](SPOTIFY.md), [exact-track return](EXACT-TRACK-RETURN.md), [native modes](NATIVE-MODES.md) and [position-restoration findings](POSITION-RESTORE.md).
112
137
 
113
138
  ## Repository layout
114
139
 
115
- The 0.1.1 source tree separates the portable library from its Home Assistant adapter:
140
+ The source tree separates the portable library from its Home Assistant adapter:
116
141
 
117
142
  ```text
118
143
  pyloxone_audio/ Home Assistant-independent library
@@ -130,7 +155,7 @@ The Python package contains the portable library. The adapter stays separate fro
130
155
 
131
156
  **For Home Assistant users:** use a PyLoxone build that includes the matching audio adapter. Its manifest pins a tested library version, and Home Assistant installs that dependency automatically. The normal installation unit is PyLoxone; a separate integration or manual `pip` step is not required for a released, compatible pair. The presence of the adapter in this repository does not mean an upstream PyLoxone release already includes it.
132
157
 
133
- The maintained preview targets **PyLoxone 0.10.2 with PyLoxone-Audio 0.1.1**. Before installing it, verify the exact version on [PyPI](https://pypi.org/project/PyLoxone-Audio/0.1.1/) and the matching [release](https://github.com/davehocking/PyLoxone-Audio/releases/tag/v0.1.1). Use the complete preview ZIP, not the wheel alone. The final release verification manifest records actual public-index installation separately from offline bundle provenance. The preview is excluded from wheel and sdist. No upstream adoption or universal hardware/HAOS compatibility is claimed.
158
+ The maintained preview targets **PyLoxone 0.10.2 with PyLoxone-Audio 0.1.2**. Use its matching complete ZIP and [installation/update/rollback guide](preview-build/README.md), not the wheel alone. Check the matching release and successful public-index production gate before installation; do not use 0.1.1 to satisfy a 0.1.2 pin. Historical releases and preview archives remain unchanged; the assembled integration is excluded from wheel and sdist. Existing locally installed identical runtime needs no repeat install merely for these documentation/package changes.
134
159
 
135
160
  - **Testers: [start here](preview-build/README.md)** — prerequisites, backup, install/update/rollback, native UI and report checklist.
136
161
  - **Maintainers: [review and adoption](adapters/pyloxone/jo-review/README.md)** — ordered inspect/reproduce/test/rebase/adopt/release and per-file what/why/tests.
@@ -153,7 +178,7 @@ Compatibility claims apply to the Python, Home Assistant, PyLoxone and device/fi
153
178
 
154
179
  ## Opt-in audio diagnostics
155
180
 
156
- The matching 0.1.1 adapter adds one **Audio diagnostics** switch per Loxone entry, **OFF by default** and hidden from automatic dashboards. Enable it, reproduce normally, use the entry's **Download diagnostics**, disable it, then review the entire file before sharing. No automatic upload occurs. Toggling does not reload the integration, change playback or discard bookmarks.
181
+ The matching adapter retains the 0.1.1 feature: one **Audio diagnostics** switch per Loxone entry, **OFF by default** and hidden from automatic dashboards. Enable it, reproduce normally, use the entry's **Download diagnostics**, disable it, then review the entire file before sharing. No automatic upload occurs. Toggling does not reload the integration, change playback or discard bookmarks.
157
182
 
158
183
  Collection continues until switched off, retaining up to the latest **24 hours**, subject to fixed queue/disk/export bounds. Reports explain shortened coverage, omissions and failures. Preference persists once saving is confirmed; if storage fails, inspect pending-preference/restart-risk health before relying on it. Actual sends, replies and restore decisions are distinct from HA requests and physical playback. HA's outer download envelope may include installation details: sanitised audio events do not make the entire file universally anonymous. See [workflow, privacy and limits](DIAGNOSTICS.md).
159
184
 
@@ -1,4 +1,9 @@
1
- # Native saved-position readiness — 0.1.1
1
+ # Native saved-position readiness — inherited 0.1.1 behaviour
2
+
3
+ > 0.1.2 preserves this feature, not a new source-return/mode correction.
4
+ > See [0.1.2 release notes](RELEASE-NOTES-0.1.2.md) and
5
+ > [remaining return/position limitations](KNOWN-ISSUES.md). Historical 0.1.1
6
+ > acceptance below must not be read as universal 0.1.2 return acceptance.
2
7
 
3
8
  ## Functional correction and limits
4
9
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyLoxone-Audio
3
- Version: 0.1.1
3
+ Version: 0.1.2.post1
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
@@ -18,6 +18,21 @@ Dynamic: license-file
18
18
 
19
19
  # PyLoxone-Audio
20
20
 
21
+ > **Documentation-only revision `0.1.2.post1`.** This republishes corrected
22
+ > package-description text for the 0.1.2 metadata-fix release. Audio code,
23
+ > dependencies and the matching 0.1.2 adapter/pin are unchanged; existing
24
+ > installations need no update or restart. Original 0.1.2 files remain unchanged.
25
+ > A separately named preview refresh updates only documentation and provenance.
26
+
27
+ > **0.1.2 — metadata freshness and read-only recovery.** The matching library
28
+ > and adapter passed independent source/exact-wheel, owning-HA and release-preparation
29
+ > review. The accepted runtime is already installed locally for normal-use testing.
30
+ > See [release notes](RELEASE-NOTES-0.1.2.md) and the mandatory
31
+ > [publication verification gate](PUBLISHING.md). Physical/UI outcomes remain separate.
32
+ >
33
+ > **Both the library and matching adapter are required.** The host remains
34
+ > PyLoxone 0.10.2. No upstream adoption or automatic update is implied.
35
+
21
36
  A Python library for extending [PyLoxone](https://github.com/JoDehli/PyLoxone) capabilities on the Loxone Audio Server.
22
37
 
23
38
  PyLoxone-Audio is a separately maintained, testable audio library used through a companion PyLoxone adapter. Home Assistant retains **one integration, one setup and the existing room entities**.
@@ -30,6 +45,14 @@ The matching library and adapter passed independent source and exact-wheel revie
30
45
 
31
46
  Package availability and release-specific compatibility information belong on the [Releases page](https://github.com/davehocking/PyLoxone-Audio/releases). The library version is separate from the PyLoxone integration version; publishing a library package does not itself add support to an upstream PyLoxone release.
32
47
 
48
+ ## Known issues and the 0.1.2 correction
49
+
50
+ **[Stale track and progress in Home Assistant — #2](https://github.com/davehocking/PyLoxone-Audio/issues/2):** HA can keep showing an old track, artwork or elapsed time while the Loxone Audio Server plays different content. Playing/volume feedback and controls may still work. Confirmed with 0.1.1 and its matching reference adapter; the event-stream cause is still under investigation.
51
+
52
+ **0.1.2 addresses #2 with a focused metadata-freshness correction.** The paired correction has independent software and release-preparation acceptance and local installed-byte verification; sustained live recovery, rendered UI and all-room sound are not certified by those checks. Issue #2 is the canonical release/status thread. [METADATA-FRESHNESS.md](METADATA-FRESHNESS.md) identifies the tested library/adapter installation unit. Updating a Python package alone does not update the HA adapter.
53
+
54
+ The issue is the live status/reporting thread; the [0.1.1 release notes](https://github.com/davehocking/PyLoxone-Audio/releases/tag/v0.1.1) and [changelog](CHANGELOG.md) record version-specific changes and limitations. Please review and sanitise diagnostics before sharing; see [DIAGNOSTICS.md](DIAGNOSTICS.md).
55
+
33
56
  ## Why a separate library?
34
57
 
35
58
  Audio communication and playback behaviour are developed and tested independently of Home Assistant-specific configuration and entities. Keeping that work in a library gives it its own tests and releases, while the adapter tests cover its use within PyLoxone. PyLoxone still needs host-side review and compatibility testing when it adopts an adapter or dependency update.
@@ -53,7 +76,7 @@ Home Assistant
53
76
 
54
77
  The adapter is maintained alongside the library in this repository under `adapters/pyloxone/`. It is applied within PyLoxone, not installed as a separate Home Assistant integration. The adapter documentation identifies its supported host base and the matching library version.
55
78
 
56
- The current reference adapter targets released PyLoxone **0.10.2**, exact public commit `3db77b81f69c77cc814675d191061533b464df5e`, with library **0.1.1**. The maintained `preview-build/` directory supplies a complete pinned integration ZIP, provenance/checksums, repeatable build/verification and install/update/rollback/native-UI test instructions. Its focused `adapters/pyloxone/jo-review/` pack is for upstream review; no upstream adoption is claimed.
79
+ The reference adapter targets released PyLoxone **0.10.2**, exact public commit `3db77b81f69c77cc814675d191061533b464df5e`, with the matching **0.1.2** library. The accepted runtime pair is installed locally for testing. PyLoxone-Audio **0.1.2 is published on PyPI**, with its matching adapter review package and complete test preview available in the **GitHub v0.1.2 release**. These test/review materials are not a release of upstream PyLoxone. The 0.1.1 owner acceptance above remains bounded historical evidence. The maintained `preview-build/` directory supplies a complete pinned integration ZIP, provenance/checksums, repeatable build/verification and install/update/rollback/native-UI test instructions. Its focused `adapters/pyloxone/jo-review/` pack is for upstream review; no upstream adoption is claimed.
57
80
 
58
81
  The adapter uses the library's public interface. Ordinary internal library bug fixes should not require structural adapter changes. New capabilities or intentional breaking API changes may still need coordinated updates.
59
82
 
@@ -87,7 +110,7 @@ agreed; no change of defaults or upstream adoption is implied here.
87
110
 
88
111
  ## Audio behaviour
89
112
 
90
- Version 0.1.1 focuses on Loxone Audio Server-backed rooms. Supported sources are **Local Library, Loxone Radio, Spotify, TuneIn and Line-In**, where available and configured in Loxone. Not every installation has every source or subscription. SoundSuit is outside the 0.1.1 scope.
113
+ The 0.1.x feature set focuses on Loxone Audio Server-backed rooms. Supported sources are **Local Library, Loxone Radio, Spotify, TuneIn and Line-In**, where available and configured in Loxone. Not every installation has every source or subscription. SoundSuit is outside this scope.
91
114
 
92
115
  The standard **Source** selector lists only usable previously selected or played content for that exact room. Qualified native playback observed from Loxone or Spotify Connect can qualify without an HA play request. A folder visit, provider label, another room or phone-only playback cannot. First choose and **play** content in **Browse media > Radio** (TuneIn), **Local Library**, **Loxone Radio**, or **Spotify · your account**. No new history database is introduced. The requested “Previous Sources” wording cannot be set for the standard HA control; its normal **Source** heading is retained.
93
116
 
@@ -108,11 +131,13 @@ The main playback principles are:
108
131
 
109
132
  Returns use qualified room-native content, not a phone's unrelated selection. Saved exact tracks require matching feedback, and same-track position return has one-room owner confirmation. The whole queue and exact position on every attempt are not guaranteed. Historical raw capability-mask and wrong-track firmware causes remain unproved. Intermittent audible volume lag is **not fixed**.
110
133
 
134
+ Remaining source-return cases are not repaired by the metadata fix: a return without a qualified saved session can choose different content, and transient native seek-capability loss can skip optional position restoration. One saved-position return with shuffle ON succeeded locally, but does not close the other cases or prove their cause. See [known issues](KNOWN-ISSUES.md).
135
+
111
136
  See [native Spotify’s function map](SPOTIFY.md), [exact-track return](EXACT-TRACK-RETURN.md), [native modes](NATIVE-MODES.md) and [position-restoration findings](POSITION-RESTORE.md).
112
137
 
113
138
  ## Repository layout
114
139
 
115
- The 0.1.1 source tree separates the portable library from its Home Assistant adapter:
140
+ The source tree separates the portable library from its Home Assistant adapter:
116
141
 
117
142
  ```text
118
143
  pyloxone_audio/ Home Assistant-independent library
@@ -130,7 +155,7 @@ The Python package contains the portable library. The adapter stays separate fro
130
155
 
131
156
  **For Home Assistant users:** use a PyLoxone build that includes the matching audio adapter. Its manifest pins a tested library version, and Home Assistant installs that dependency automatically. The normal installation unit is PyLoxone; a separate integration or manual `pip` step is not required for a released, compatible pair. The presence of the adapter in this repository does not mean an upstream PyLoxone release already includes it.
132
157
 
133
- The maintained preview targets **PyLoxone 0.10.2 with PyLoxone-Audio 0.1.1**. Before installing it, verify the exact version on [PyPI](https://pypi.org/project/PyLoxone-Audio/0.1.1/) and the matching [release](https://github.com/davehocking/PyLoxone-Audio/releases/tag/v0.1.1). Use the complete preview ZIP, not the wheel alone. The final release verification manifest records actual public-index installation separately from offline bundle provenance. The preview is excluded from wheel and sdist. No upstream adoption or universal hardware/HAOS compatibility is claimed.
158
+ The maintained preview targets **PyLoxone 0.10.2 with PyLoxone-Audio 0.1.2**. Use its matching complete ZIP and [installation/update/rollback guide](preview-build/README.md), not the wheel alone. Check the matching release and successful public-index production gate before installation; do not use 0.1.1 to satisfy a 0.1.2 pin. Historical releases and preview archives remain unchanged; the assembled integration is excluded from wheel and sdist. Existing locally installed identical runtime needs no repeat install merely for these documentation/package changes.
134
159
 
135
160
  - **Testers: [start here](preview-build/README.md)** — prerequisites, backup, install/update/rollback, native UI and report checklist.
136
161
  - **Maintainers: [review and adoption](adapters/pyloxone/jo-review/README.md)** — ordered inspect/reproduce/test/rebase/adopt/release and per-file what/why/tests.
@@ -153,7 +178,7 @@ Compatibility claims apply to the Python, Home Assistant, PyLoxone and device/fi
153
178
 
154
179
  ## Opt-in audio diagnostics
155
180
 
156
- The matching 0.1.1 adapter adds one **Audio diagnostics** switch per Loxone entry, **OFF by default** and hidden from automatic dashboards. Enable it, reproduce normally, use the entry's **Download diagnostics**, disable it, then review the entire file before sharing. No automatic upload occurs. Toggling does not reload the integration, change playback or discard bookmarks.
181
+ The matching adapter retains the 0.1.1 feature: one **Audio diagnostics** switch per Loxone entry, **OFF by default** and hidden from automatic dashboards. Enable it, reproduce normally, use the entry's **Download diagnostics**, disable it, then review the entire file before sharing. No automatic upload occurs. Toggling does not reload the integration, change playback or discard bookmarks.
157
182
 
158
183
  Collection continues until switched off, retaining up to the latest **24 hours**, subject to fixed queue/disk/export bounds. Reports explain shortened coverage, omissions and failures. Preference persists once saving is confirmed; if storage fails, inspect pending-preference/restart-risk health before relying on it. Actual sends, replies and restore decisions are distinct from HA requests and physical playback. HA's outer download envelope may include installation details: sanitised audio events do not make the entire file universally anonymous. See [workflow, privacy and limits](DIAGNOSTICS.md).
159
184