PyLoxone-Audio 0.1.0__tar.gz → 0.1.2__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.
- pyloxone_audio-0.1.2/API.md +146 -0
- pyloxone_audio-0.1.2/CHANGELOG.md +71 -0
- pyloxone_audio-0.1.2/DIAGNOSTICS.md +203 -0
- pyloxone_audio-0.1.2/EXACT-TRACK-RETURN.md +99 -0
- pyloxone_audio-0.1.2/KNOWN-ISSUES.md +51 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/MANIFEST.in +8 -0
- pyloxone_audio-0.1.2/METADATA-FRESHNESS.md +110 -0
- pyloxone_audio-0.1.2/NATIVE-MODES.md +101 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/NOTICE.md +7 -5
- pyloxone_audio-0.1.2/PKG-INFO +195 -0
- pyloxone_audio-0.1.2/POSITION-RESTORE.md +104 -0
- pyloxone_audio-0.1.2/PyLoxone_Audio.egg-info/PKG-INFO +195 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/PyLoxone_Audio.egg-info/SOURCES.txt +14 -1
- pyloxone_audio-0.1.2/README.md +177 -0
- pyloxone_audio-0.1.2/RELEASE-NOTES-0.1.2.md +60 -0
- pyloxone_audio-0.1.2/SPOTIFY.md +107 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/__init__.py +11 -15
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/catalogue.py +37 -1
- pyloxone_audio-0.1.2/pyloxone_audio/diagnostic_events.py +276 -0
- pyloxone_audio-0.1.2/pyloxone_audio/metadata.py +354 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/native.py +220 -19
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/selection.py +7 -45
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/sources.py +124 -29
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyproject.toml +1 -1
- pyloxone_audio-0.1.2/tests/library/test_audio_modes.py +301 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_boundary_qualification.py +1 -47
- pyloxone_audio-0.1.2/tests/library/test_diagnostic_events.py +178 -0
- pyloxone_audio-0.1.2/tests/library/test_diagnostic_wire.py +105 -0
- pyloxone_audio-0.1.2/tests/library/test_exact_track_start.py +67 -0
- pyloxone_audio-0.1.2/tests/library/test_portable_policies.py +12 -0
- pyloxone_audio-0.1.2/tests/library/test_restore_readiness.py +191 -0
- pyloxone_audio-0.1.0/API.md +0 -86
- pyloxone_audio-0.1.0/PKG-INFO +0 -138
- pyloxone_audio-0.1.0/PyLoxone_Audio.egg-info/PKG-INFO +0 -138
- pyloxone_audio-0.1.0/README.md +0 -120
- pyloxone_audio-0.1.0/SPOTIFY.md +0 -260
- pyloxone_audio-0.1.0/pyloxone_audio/metadata.py +0 -98
- pyloxone_audio-0.1.0/pyloxone_audio/spotify.py +0 -88
- pyloxone_audio-0.1.0/tests/library/test_portable_policies.py +0 -33
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/LICENSE +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/PyLoxone_Audio.egg-info/dependency_links.txt +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/PyLoxone_Audio.egg-info/requires.txt +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/PyLoxone_Audio.egg-info/top_level.txt +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/announcement.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/clock.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/models.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/py.typed +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/pyloxone_audio/radio.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/setup.cfg +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/conftest.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/fixtures/audioserver/README.md +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/fixtures/audioserver/sebastian_alarm_end.txt +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/fixtures/audioserver/sebastian_loxone_radio.json +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/fixtures/audioserver/sebastian_tts.json +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/fixtures/audioserver/sebastian_tunein.json +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/pytest.ini +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_announcement.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_connection.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_events.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_library_source.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_metadata.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_playback.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_seek.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_timing.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_audioserver_wire.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_boundary_environment.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_boundary_ownership.py +0 -0
- {pyloxone_audio-0.1.0 → pyloxone_audio-0.1.2}/tests/library/test_distribution_dependencies.py +0 -0
|
@@ -0,0 +1,146 @@
|
|
|
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.
|
|
7
|
+
|
|
8
|
+
A separately installable Apache-2.0 Python library containing the concrete native
|
|
9
|
+
audio implementation used by one existing PyLoxone integration. This is not a
|
|
10
|
+
second integration, new login, facade-only prototype or claim of upstream automatic
|
|
11
|
+
adoption. Public availability is verified separately by the release production gate. See NOTICE.md for attribution/provenance.
|
|
12
|
+
|
|
13
|
+
## Concrete public API and ownership
|
|
14
|
+
|
|
15
|
+
The explicit exports in pyloxone_audio/__init__.py are the public API:
|
|
16
|
+
|
|
17
|
+
- AudioServerCommands(host, current_credentials) owns bounded native command
|
|
18
|
+
authentication, correlation, cancellation, close and uncertain-write fences.
|
|
19
|
+
The callback supplies the current username/token; there is no token persistence.
|
|
20
|
+
- AudioServerListener and AudioEventReceiver receive/parse exact-player metadata;
|
|
21
|
+
AudioZoneMetadata is the neutral snapshot. AudioMetadataCoordinator supports
|
|
22
|
+
exact-player subscriptions, optional host task scheduling, start and awaited stop.
|
|
23
|
+
- AudioCatalogue(commands, player_id), CatalogueTarget, ConfiguredSource and
|
|
24
|
+
AudioFavourite own discovery, opaque browser targets, last-good source history,
|
|
25
|
+
configured favourites, provider/account qualification and neutral search values.
|
|
26
|
+
- MediaNode, SearchResult and MediaKind contain no HA entity or UI dependency.
|
|
27
|
+
- async_select_catalogue, async_select_favourite, async_select_radio_station and
|
|
28
|
+
async_native_catalogue_noop own source dispatch, settlement and fresh exact-room
|
|
29
|
+
provider feedback. Browser selection remains strict exact-item proof. Source
|
|
30
|
+
return for a saved exact item requires matching track feedback, and may attempt
|
|
31
|
+
at most one optional best-effort position restore after bounded seek readiness. Optional failure does not
|
|
32
|
+
undo confirmed playback; a fixed warning is emitted, never exception payloads.
|
|
33
|
+
- async_source_route owns native/retained routing and safety decisions; SourceRoute
|
|
34
|
+
and SourceContentRequiredError describe its outcomes. Hosts provide lifecycle/
|
|
35
|
+
newest-request liveness callbacks and snapshot bootstrap. There is no HA-provider
|
|
36
|
+
bridge callback. Native identity checks, uncertain-write fences and cancellation
|
|
37
|
+
remain; no blind replay/retry or substitute content is introduced.
|
|
38
|
+
- manual_seek_supported, manual_seek_position, native_track_identity,
|
|
39
|
+
ManualSeekQualification and async_seek_track retain strict current-track/manual
|
|
40
|
+
seek capability, account/identity, echo and observed-progress qualification.
|
|
41
|
+
- passive_history_eligible and confirmed_library_session own reusable native
|
|
42
|
+
history eligibility. Genuine ordered observed feedback is distinct from intent.
|
|
43
|
+
- async_send_prepared_announcement handles prepared bounded WAV bytes through
|
|
44
|
+
the native event operation; the host supplies an existing lazy HTTP session.
|
|
45
|
+
- audioserver_uri and parse_audio_events retain their concrete native semantics.
|
|
46
|
+
|
|
47
|
+
SourceEnvironment(clock=callable) is immutable per-consumer clock configuration.
|
|
48
|
+
Pass environment= to source/seek/routing functions when injecting a clock.
|
|
49
|
+
The callable must return aware UTC datetimes in the metadata.received_at domain.
|
|
50
|
+
The default is the library's aware UTC clock, not HA or another consumer's state.
|
|
51
|
+
Its async_observed_change method executes the concrete native settlement algorithm;
|
|
52
|
+
asyncio deadlines remain monotonic. No process-wide clock replacement is required.
|
|
53
|
+
|
|
54
|
+
The host retains HA setup/entities/registries/services, newest-request tasks and
|
|
55
|
+
unload cancellation, existing native authentication, error translation, artwork and
|
|
56
|
+
HA media/TTS preparation. It must keep liveness checks valid across awaits, drain
|
|
57
|
+
owned tasks before teardown and close commands before metadata/token owners.
|
|
58
|
+
ManualSeekQualification must be checked against actual current native metadata
|
|
59
|
+
and the host revision/duration, not merely a cached UI value. Optional native
|
|
60
|
+
completion requires settled dispatch and fresh exact-room/provider/account proof.
|
|
61
|
+
|
|
62
|
+
## Native modes
|
|
63
|
+
|
|
64
|
+
`AudioRepeatMode` (OFF=0, ALL=1, ONE=3) and `audio_mode_supported` are public
|
|
65
|
+
HA-independent exports. `AudioZoneMetadata` adds nullable `shuffle`, typed
|
|
66
|
+
`repeat` and connection-qualified `shuffle_switch_supported` state.
|
|
67
|
+
`AudioServerCommands.async_set_shuffle(player_id, bool, *, is_current=...)` and
|
|
68
|
+
`async_set_repeat(player_id, AudioRepeatMode, *, is_current=...)` send exactly one
|
|
69
|
+
explicit native player request through existing authentication/serialization and
|
|
70
|
+
strictly validate its reply. The host qualifies fresh native permissions/state
|
|
71
|
+
and maintains its liveness callback; no Spotify bridge/API or optimistic metadata
|
|
72
|
+
write is involved. See [NATIVE-MODES.md](NATIVE-MODES.md) for firmware, partial
|
|
73
|
+
repeat capability, standard HA mapping and unknown/lifecycle semantics.
|
|
74
|
+
|
|
75
|
+
## Optional structured diagnostics (new 0.1.1 increment)
|
|
76
|
+
|
|
77
|
+
`pyloxone_audio.diagnostic_events` defines the version1 fixed-field schema,
|
|
78
|
+
`DiagnosticEmitter`, `diagnostics_enabled` and exception-isolating
|
|
79
|
+
`diagnostic_event`. `AudioServerCommands(..., diagnostics=None)` and
|
|
80
|
+
`AudioMetadataCoordinator.diagnostics` accept an optional observer. Its `enabled`
|
|
81
|
+
must be literally true; its synchronous `emit(stage, **fields)` must only enqueue,
|
|
82
|
+
never await/write files. Callers gate detailed construction before invoking it.
|
|
83
|
+
The emitter allowlists fields/routes and keyed pseudonyms before calling its sink.
|
|
84
|
+
Foreign observer exceptions are isolated. Authentication data never enters events.
|
|
85
|
+
|
|
86
|
+
The HA adapter supplies `EntryAudioDiagnostics`/`RollingJournal`, one diagnostic
|
|
87
|
+
switch and the existing admin config-entry download. These are host internals,
|
|
88
|
+
not a portable HA/storage dependency or a second integration. Separate HA Store
|
|
89
|
+
preference/salt avoids reload-on-options. See [DIAGNOSTICS.md](DIAGNOSTICS.md) for
|
|
90
|
+
the supported enable/export workflow, exact bounds and evidence/privacy limits.
|
|
91
|
+
|
|
92
|
+
This narrowly supersedes the earlier blanket instrumentation exclusion. The old
|
|
93
|
+
`pyloxone_audio.diagnostics`, `SourceDiagnostics`, `trace_source_action`, raw
|
|
94
|
+
snapshot logging and `last_source_failure` API remain removed, not compatibility
|
|
95
|
+
stubs. No source/playback, authentication, fence, clock or retry policy changes.
|
|
96
|
+
|
|
97
|
+
## Tested boundary and installation
|
|
98
|
+
|
|
99
|
+
Only the canonical Python 3.14.7 / HA 2026.9.1 / websockets 15.0.1 /
|
|
100
|
+
pycryptodome 4.0.1 / aiohttp 3.14.3 environment is exercised here. The metadata
|
|
101
|
+
requires Python >=3.14 but is not a wider tested compatibility promise. HA-free
|
|
102
|
+
portable runs explicitly reject HA imports. External I/O in tests is synthetic;
|
|
103
|
+
AF_UNIX wire tests use actual websocket/crypto implementations with TCP blocked.
|
|
104
|
+
No all-version/firmware/room or universal physical playback claim follows from these tests.
|
|
105
|
+
|
|
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`,
|
|
111
|
+
name PyLoxone and integration version 0.10.2. For HA, use the complete matching
|
|
112
|
+
adapter/preview and normal host dependency handling, not a manual live pip step.
|
|
113
|
+
|
|
114
|
+
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.
|
|
115
|
+
|
|
116
|
+
For public availability, use the matching GitHub release, PyPI version and release verification receipts. Source, tag or uploader success alone is not the production gate. Existing Home Assistant installations do not automatically update.
|
|
117
|
+
|
|
118
|
+
## Intentional 0.1.1 retirement
|
|
119
|
+
|
|
120
|
+
The optional SpotifySessionBridge, SpotifyNativeSession,
|
|
121
|
+
NativeSessionUnavailableError, NativeResumeOutcome, async_optional_native_resume
|
|
122
|
+
and async_resume_native_session API and its bridge parameter are removed together
|
|
123
|
+
with the HA-only controller. Consumers using those optional interfaces must update
|
|
124
|
+
alongside the matching 0.1.1 adapter pin; no compatibility facade silently retains
|
|
125
|
+
provider access. The native command/authentication/metadata/Browse/manual-seek API
|
|
126
|
+
remains. previous_source_labels is the room-local playable-content view; configured
|
|
127
|
+
presence is still source_descriptors, not evidence of selected/played content.
|
|
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,71 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.2 — 2026-10-29
|
|
4
|
+
|
|
5
|
+
- 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.
|
|
6
|
+
- 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.
|
|
7
|
+
- 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.
|
|
8
|
+
- 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.
|
|
9
|
+
- 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.
|
|
10
|
+
- 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).
|
|
11
|
+
- 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.
|
|
12
|
+
|
|
13
|
+
## 0.1.1 — 2026-10-28
|
|
14
|
+
|
|
15
|
+
- Retire the optional HA-Spotify provider/session/binding bridge; preserve native
|
|
16
|
+
Loxone Spotify, the independent HA Spotify integration and existing safety guards.
|
|
17
|
+
- Show usable exact-room previous content in HA’s standard Source selector,
|
|
18
|
+
including qualified native/external playback. Folder visits alone do not qualify;
|
|
19
|
+
configured Line-In inputs remain last. Previous-source/bookmark state is RAM-only.
|
|
20
|
+
- Add native Shuffle on/off and Repeat Off/All/One in standard More info controls
|
|
21
|
+
when actual player permissions and firmware qualify. Display native feedback,
|
|
22
|
+
including unknown/disconnected state, rather than optimistic requested modes.
|
|
23
|
+
- Match official individual Spotify track/episode starts with `/noshuffle` after
|
|
24
|
+
validated parent/cursor. Require same-track feedback for saved exact-item returns;
|
|
25
|
+
preserve last-good content on wrong-track feedback and overlapping Source actions.
|
|
26
|
+
This is not a persistent shuffle/queue guarantee or proof of the historical cause.
|
|
27
|
+
- After confirmed same-track Spotify/Local Library return, allow at most two seconds
|
|
28
|
+
for seek support, then at most one optional native saved-position attempt.
|
|
29
|
+
Already-ready tracks do not wait. Timeout keeps confirmed playback; changed
|
|
30
|
+
track/account/action, lifecycle and uncertainty guards remain. No per-room setup.
|
|
31
|
+
- Add a separate default-OFF Audio diagnostics switch, bounded local rolling 24-hour
|
|
32
|
+
sanitised events and admin download. Preference durability/coverage/omissions and
|
|
33
|
+
failure health are explicit. Toggling does not reload or change playback; no upload.
|
|
34
|
+
- Independent source/exact-wheel and owning-HA review precedes common HAOS adoption.
|
|
35
|
+
On 28 October the owner accepted two same-track/near-saved-position returns from
|
|
36
|
+
Local Library to Spotify in one room, with supporting native feedback. This does
|
|
37
|
+
not establish all-room acoustic, whole-queue or restart persistence acceptance.
|
|
38
|
+
- Refresh complete preview, exact-base maintainer pack, installation/update/rollback
|
|
39
|
+
and release guides; keep them separate from library wheel/sdist runtime.
|
|
40
|
+
- Enforce the standing production gate: upload tested wheel/sdist, verify actual
|
|
41
|
+
public PyPI files/digests, and resolve fresh normal-index named-pin wheel AND
|
|
42
|
+
sdist installations with dependencies, imports and exact runtime checks.
|
|
43
|
+
- Keep current Audio Server host/playback option label/default/gate unchanged.
|
|
44
|
+
Diagnostics is separate. Intermittent audible volume lag remains unresolved.
|
|
45
|
+
|
|
46
|
+
### Known issues discovered after release
|
|
47
|
+
|
|
48
|
+
- [#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.
|
|
49
|
+
|
|
50
|
+
Published 0.1.0 artifacts remain immutable. The notes below preserve that release’s
|
|
51
|
+
historical preparation, not the current 0.1.1 publication or adoption status.
|
|
52
|
+
|
|
53
|
+
## 0.1.0 — first release (2026-10-25)
|
|
54
|
+
|
|
55
|
+
Freeze the owner-agreed native audio/source feature set from the independently
|
|
56
|
+
accepted offline extraction. Preserve transport authentication/identity, fences,
|
|
57
|
+
clock isolation, cancellation/lifecycle, strict browser/manual seek, source return,
|
|
58
|
+
last-good history, native Spotify session handling and one optional best-effort
|
|
59
|
+
position restore. No added playback feature or architecture replacement.
|
|
60
|
+
|
|
61
|
+
Exclude development-only detailed diagnostic contexts, snapshots, collectors,
|
|
62
|
+
stage/operation instrumentation, HA trace decorators and last_source_failure
|
|
63
|
+
publication from the library and local host adapter. Retain ordinary useful fixed
|
|
64
|
+
warnings and error propagation/translation without exception/provider payloads.
|
|
65
|
+
The pre-release diagnostics API and diagnostic-only observation-operation label
|
|
66
|
+
are removed, not retained as compatibility stubs.
|
|
67
|
+
|
|
68
|
+
Set library metadata to PyLoxone-Audio 0.1.0 and prepare the existing integration's
|
|
69
|
+
local requirement PyLoxone-Audio==0.1.0. This does not change the integration's own
|
|
70
|
+
version/domain/name. Local wheel, sdist and host assets are not public releases.
|
|
71
|
+
Historical 0.0.0.dev0 receipts remain separately preserved and are not relabelled.
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# Opt-in audio diagnostics — inherited in 0.1.2
|
|
2
|
+
|
|
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).
|
|
11
|
+
|
|
12
|
+
Defaults, switch preferences, retention, storage/export bounds and schema version1
|
|
13
|
+
remain unchanged. Its narrowly extended allowlist records native aliased
|
|
14
|
+
`shuffle/enable|disable`, `repeat/0|1|3`, standard HA `shuffle_set`/`repeat_set`
|
|
15
|
+
requests and validated feedback fields `shuffle` (literal boolean) and `repeat`
|
|
16
|
+
(`off|all|one`). Unknown mode fields are omitted, never inferred as off; malformed
|
|
17
|
+
routes/enums/booleans remain rejected. A command reply is not physical acceptance.
|
|
18
|
+
No raw mode payload, credential or provider state is exported.
|
|
19
|
+
During a bounded readiness wait, `seek_unsupported` is a
|
|
20
|
+
current decision, not proof the source can never seek. A later `eligible` requires
|
|
21
|
+
positive capability on the same valid target; a source-transport `timeout` with
|
|
22
|
+
`seek_unsupported` means playback was retained without a seek. No prior raw native
|
|
23
|
+
capability mask can be reconstructed from a false diagnostic boolean.
|
|
24
|
+
|
|
25
|
+
## Tester workflow
|
|
26
|
+
|
|
27
|
+
1. In Home Assistant **Settings > Devices & services > Entities**, filter to your
|
|
28
|
+
Loxone integration entry and find **Audio diagnostics**. It is a diagnostic
|
|
29
|
+
entity, hidden from automatic dashboards, not disabled. Turn it **on**. With
|
|
30
|
+
several entries each has its own switch and independent report.
|
|
31
|
+
2. Reproduce the problem through your usual native UI or controlling app. Note
|
|
32
|
+
local time/timezone, the room, source sequence, expected result and what you
|
|
33
|
+
actually saw/heard. Do not repeatedly trigger a failure merely to fill a report.
|
|
34
|
+
3. Open **Settings > Devices & services > Loxone**, use the relevant entry's
|
|
35
|
+
three-dot menu and **Download diagnostics**. This uses HA's existing
|
|
36
|
+
administrator-only config-entry diagnostic download, not a new public endpoint.
|
|
37
|
+
4. Turn **Audio diagnostics off**. That stops new collection, not the integration
|
|
38
|
+
or playback. No reload, new connection, Core restart, media command or bookmark
|
|
39
|
+
reset occurs when switching it on/off. The explicit setting survives ordinary
|
|
40
|
+
restarts once persistence is confirmed; new installs/upgrades without a valid
|
|
41
|
+
saved setting start **off**. OFF stops emission immediately, before storage I/O.
|
|
42
|
+
Check the switch/report health: `pending_preference` is the latest unconfirmed
|
|
43
|
+
requested bool (or null when confirmed), and `preference_restart_risk` is true
|
|
44
|
+
while pending. `storage_unavailable` plus a sticky `storage_failures` count
|
|
45
|
+
reports failed, mismatched, deferred or cancelled persistence. A successful
|
|
46
|
+
journal flush/export does not clear that pending preference error.
|
|
47
|
+
5. Review the downloaded JSON before attaching it to your agreed issue/report
|
|
48
|
+
channel. Nothing uploads automatically. Include the exact candidate/ZIP hash,
|
|
49
|
+
HA/PyLoxone/library versions, symptom time/timezone, steps and audible versus
|
|
50
|
+
displayed result. Locally match a room to its `room`/`player` aliases if needed;
|
|
51
|
+
do not post original household IDs or private account details. Do not contact
|
|
52
|
+
maintainers/testers until your own agreed outreach/publication gate is met.
|
|
53
|
+
|
|
54
|
+
The switch and actual HA admin download handler have been exercised through an
|
|
55
|
+
offline owning-HA harness, then installed and checked on the real HAOS runtime.
|
|
56
|
+
An owner subsequently enabled collection and supplied an actual downloaded report
|
|
57
|
+
containing send/completion/reply, saved-session and restore-decision evidence.
|
|
58
|
+
The supplied report had no storage, observer or queue-loss errors. This validates
|
|
59
|
+
that live collection/export journey, not all branches or audible playback.
|
|
60
|
+
Menu placement may vary with HA. The private report is not a public fixture.
|
|
61
|
+
|
|
62
|
+
## Reading a report and preparing a useful bug report
|
|
63
|
+
|
|
64
|
+
- Check `enabled` and `status`: `collecting` means the feature was enabled when
|
|
65
|
+
exported. It is independent of the integration's existing experimental
|
|
66
|
+
play/pause option, which gates native Audio Server playback features rather
|
|
67
|
+
than diagnostic recording. Turning diagnostics on does not enable those controls.
|
|
68
|
+
- Check `coverage_oldest_utc`, `coverage_newest_utc` and `export_oldest_utc` against
|
|
69
|
+
the incident time. The report cannot reconstruct commands from before collection
|
|
70
|
+
started. A short window immediately after enabling is normal.
|
|
71
|
+
- Check `dropped_queue`, `dropped_storage`, `export_omitted_records`,
|
|
72
|
+
`storage_failures` and `observer_failures`. Nonzero counters qualify what can be
|
|
73
|
+
inferred; zero counters do not prove every external/native event was received.
|
|
74
|
+
- `complete_24h: false` is deliberately conservative, not by itself a fault.
|
|
75
|
+
Retention is up to 24 hours; it is not a promise of uninterrupted or complete
|
|
76
|
+
reception, and the bounded download may be shorter than the stored window.
|
|
77
|
+
- Follow the same request/player/source aliases through `request`,
|
|
78
|
+
`send_attempt`, `send_completed` and `reply` or an error/timeout. Use
|
|
79
|
+
`session_saved` and `restore_decision` to distinguish a missing bookmark, an
|
|
80
|
+
ineligible seek and an actual seek attempt. A `restore_echo` is not proof the
|
|
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
|
+
- Include the local incident time and timezone, intended room/source, exact
|
|
86
|
+
versions/build, normal UI steps, and expected versus observed behaviour.
|
|
87
|
+
Review the complete JSON before attaching it manually. Do not post private
|
|
88
|
+
room/account mappings, credentials or unrelated raw exports.
|
|
89
|
+
|
|
90
|
+
Turning collection off preserves unexpired evidence, so a report can also be
|
|
91
|
+
downloaded after disabling it. Do not assume `enabled: false` means a retained
|
|
92
|
+
timeline is empty. Check the actual event times and collection status instead.
|
|
93
|
+
|
|
94
|
+
## Retention and limits
|
|
95
|
+
|
|
96
|
+
Collection continues while on: **24 hours is a rolling maximum record age, not a
|
|
97
|
+
collection timeout**. Off retains unexpired evidence for reporting and preserves
|
|
98
|
+
configuration. Disabled housekeeping runs approximately every 60 seconds;
|
|
99
|
+
export filters expiry too. Timestamps use UTC/elapsed seconds, including DST.
|
|
100
|
+
Already expired records are not recovered after restart or a coverage gap.
|
|
101
|
+
|
|
102
|
+
Preference saves use HA's existing Store and public readback, checking the exact
|
|
103
|
+
requested bool and this entry's pseudonym key without exporting the key. The
|
|
104
|
+
existing housekeeping writer retries the latest pending request at most once per
|
|
105
|
+
60 seconds (monotonic backoff), outside the journal lock. It never replays an old
|
|
106
|
+
ON over a newer OFF; closing retires retry ownership. HA stopping/deferred writes
|
|
107
|
+
are not treated as durable confirmation. Once storage recovers and save/readback
|
|
108
|
+
succeed, pending clears and ordinary `off`/`collecting` health returns. While a
|
|
109
|
+
failed OFF remains unpersisted, an actual restart can restore the earlier saved
|
|
110
|
+
ON. Storage that cannot write cannot promise durable OFF: resolve the reported
|
|
111
|
+
disk/permission problem and confirm pending has cleared before relying on restart.
|
|
112
|
+
|
|
113
|
+
Per integration entry:
|
|
114
|
+
|
|
115
|
+
- Queue: at most **256 events**; overflow removes the oldest queued record.
|
|
116
|
+
- Sanitised event: at most **2 KiB**; no unbounded raw frames or DEBUG logs.
|
|
117
|
+
- Timeline: at most **4 MiB**, in **256 KiB** segments. Size pressure rotates the
|
|
118
|
+
oldest segment, potentially shortening coverage to much less than 24 hours.
|
|
119
|
+
- Atomic maintenance reserves at most one additional segment plus bounded counter
|
|
120
|
+
metadata (8 KiB read bound). Preference/pseudonym-key storage is separate and
|
|
121
|
+
tiny. Local files are private, outside web/static paths.
|
|
122
|
+
- Export: newest records within a bounded **1 MiB** audio-report budget. The
|
|
123
|
+
adapter reserves **64 KiB** for HA's separate envelope. HA owns that envelope;
|
|
124
|
+
unusually large platform metadata is not under this integration's control.
|
|
125
|
+
Exports state their omission count rather than promising every retained record.
|
|
126
|
+
|
|
127
|
+
Coverage oldest/newest times, export oldest time, mapped/omitted room aliases,
|
|
128
|
+
expiry/rotation/invalid counts and queue/storage/observer failures accompany the
|
|
129
|
+
report. `complete_24h` is conservatively false: a timestamp range is not proof of
|
|
130
|
+
unbroken reception. Restarted sequence/monotonic values belong to a new process;
|
|
131
|
+
UTC and transport/request/player aliases provide correlation, not unique physical
|
|
132
|
+
causality. A reported storage failure warns once with fixed advice to check disk
|
|
133
|
+
space/permissions; it never includes exception text or interrupts playback.
|
|
134
|
+
|
|
135
|
+
File I/O runs in the existing HA executor, through one entry-owned writer and
|
|
136
|
+
serial lock. Cancellation waits for an in-progress filesystem operation before
|
|
137
|
+
releasing that lock. This cannot cancel a stuck OS filesystem operation. A slow
|
|
138
|
+
or full disk can lose diagnostics, not backpressure native playback. Stored
|
|
139
|
+
partial/invalid event lines are rejected; atomic replacement preserves preceding
|
|
140
|
+
complete records where possible. A report can honestly have no recoverable data.
|
|
141
|
+
Startup and ordinary maintenance (even cached/OFF maintenance) discard abandoned
|
|
142
|
+
`events-<numeric index>.jsonl.tmp` files with the journal's minimum 16-digit index
|
|
143
|
+
and `state.json.tmp`; uncommitted payloads are not evidence. Cleanup never reads
|
|
144
|
+
these payloads or follows symlinks, leaves unrelated names untouched, inspects at
|
|
145
|
+
most 256 directory entries and removes at most 64 recognised regular temporary
|
|
146
|
+
files per operation. Unexpected types, work limits or unlink errors report storage
|
|
147
|
+
failure rather than claiming recovery. Successful recovery/rotation restores the
|
|
148
|
+
timeline plus one atomic segment and small metadata allowance above; foreign files
|
|
149
|
+
or an inaccessible directory cannot be claimed bounded or successfully cleaned.
|
|
150
|
+
|
|
151
|
+
## What the evidence means
|
|
152
|
+
|
|
153
|
+
- `ha_service_request` is HA's request event for an exact registered audio entity;
|
|
154
|
+
area/device-only targeting and unrelated controls are not reconstructed.
|
|
155
|
+
- `session_saved` samples the actual qualified room/source cache, not Recorder or
|
|
156
|
+
a separately recreated bookmark. `restore_decision` reports the first evaluated
|
|
157
|
+
guard reason, saved/current numeric positions/durations and initial/post-auth
|
|
158
|
+
phase; unevaluated guards are not falsely described as failures.
|
|
159
|
+
- Audio Server `request`, `authenticated`, `send_attempt`, `send_completed` and
|
|
160
|
+
`reply` distinguish authentication, the actual existing socket send await and
|
|
161
|
+
a parsed native result. Source confirmation can instead settle from separately
|
|
162
|
+
qualified requested-source feedback. A completed send is **not device execution**.
|
|
163
|
+
- `restore_echo` is a numeric native position echo, **not acoustic movement** or
|
|
164
|
+
proof that playback advanced from the requested position. Optional-restore
|
|
165
|
+
failure leaves confirmed source success intact; no retry is introduced.
|
|
166
|
+
- Miniserver sends are recorded on its existing connection **only** for discovered
|
|
167
|
+
audio controls and allowlisted play/pause/stop/next/previous/volume operations.
|
|
168
|
+
Encrypted command bytes/authentication remain untouched; no auth envelope enters
|
|
169
|
+
the sink. Relevant numeric volume/play-state feedback is labelled separately
|
|
170
|
+
from Audio Server track/source/position/event feedback and disconnects.
|
|
171
|
+
|
|
172
|
+
The same opt-in policy covers all AudioZoneV2 players discovered in that loaded
|
|
173
|
+
entry; there are no hardcoded household room IDs. Report aliases correlate routes,
|
|
174
|
+
player, room, account, content and parent context without exposing originals.
|
|
175
|
+
Meaningful non-secret seek numbers and semantic route structure remain exact.
|
|
176
|
+
No title, private announcement text, raw house structure, arbitrary frame/error,
|
|
177
|
+
credential, cookie, token, password or raw media URL is persisted by this feature.
|
|
178
|
+
|
|
179
|
+
HA itself adds standard system/custom-integration metadata to diagnostic downloads,
|
|
180
|
+
which can include installation/platform/hostname details. That HA-owned envelope
|
|
181
|
+
is **not** claimed to be anonymous. Review the actual entire download before
|
|
182
|
+
sharing; pseudonymisation of the audio portion is not universal anonymisation.
|
|
183
|
+
|
|
184
|
+
## Scope and cost
|
|
185
|
+
|
|
186
|
+
The library supplies no-op-by-default structured events and imports no HA/storage
|
|
187
|
+
implementation. The existing adapter owns the switch, preference, local writer
|
|
188
|
+
and export. There is no sidecar, second integration, new socket, global debug
|
|
189
|
+
setting or automatic upload. Disabled callers skip detailed diagnostic field
|
|
190
|
+
construction and queue/file writes; expiry of previously retained data still runs.
|
|
191
|
+
|
|
192
|
+
Synthetic HA-harness measurements are retained with this candidate's development
|
|
193
|
+
receipts: process CPU deltas, `/proc/self/status` RSS/HWM, event rate, actual journal
|
|
194
|
+
bytes and export bytes/time. They are a short synthetic load, not quiet-house or
|
|
195
|
+
busy-house measurements, device latency proof, a per-day write forecast, or an
|
|
196
|
+
incremental production Core memory estimate. Limits are fixed bounds, not a promise
|
|
197
|
+
that a busy installation will retain a full day.
|
|
198
|
+
|
|
199
|
+
This capability cannot retrieve commands from before enablement or retroactively
|
|
200
|
+
diagnose earlier Spotify returns. It changes no source, queue, seek, retry, newest
|
|
201
|
+
request, authentication or control policy. Existing independently operated private
|
|
202
|
+
rolling observers/watchdogs are neither imported, replaced nor stopped. Their
|
|
203
|
+
records are not included in this report, and their settings remain independent.
|
|
@@ -0,0 +1,99 @@
|
|
|
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.
|
|
7
|
+
|
|
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.
|
|
9
|
+
|
|
10
|
+
For public availability, use the matching GitHub release, PyPI version and release verification receipts. Source, tag or uploader success alone is not the production gate. Existing Home Assistant installations do not automatically update.
|
|
11
|
+
Use the exact matching release wheel, adapter, preview and checksums; historical
|
|
12
|
+
same-version development artifacts are not interchangeable.
|
|
13
|
+
|
|
14
|
+
## What this correction does
|
|
15
|
+
|
|
16
|
+
- Individual Spotify **track and podcast-episode** starts include the native
|
|
17
|
+
per-start `/noshuffle` argument, after any validated parent/cursor. Configured
|
|
18
|
+
account, exact item and optional parent/zero-based index stay unchanged.
|
|
19
|
+
Account-qualified item identifiers are retained, not stripped.
|
|
20
|
+
- When returning to a saved exact Local Library/Spotify item, feedback from the
|
|
21
|
+
same provider/account but a **different track is not success**. It cannot
|
|
22
|
+
trigger the old track's position seek or replace the preceding last-good item.
|
|
23
|
+
The player still displays the track actually reported by Loxone.
|
|
24
|
+
- Continuing feedback from that rejected return retains the prior bookmark.
|
|
25
|
+
A later explicit return attempts that retained item instead of treating the
|
|
26
|
+
wrong currently-playing track as a provider-only no-op. No automatic retry is
|
|
27
|
+
added. A matching return, a new explicit Browse selection, or independently
|
|
28
|
+
corroborated later different playback can update the record normally.
|
|
29
|
+
- After matching playback, at most **one best-effort** position attempt retains
|
|
30
|
+
existing bounded capability readiness, authentication, room/account/track,
|
|
31
|
+
lifecycle, event/fence and newer-action checks. An unsupported/failed optional
|
|
32
|
+
seek does not turn matching confirmed playback into source failure.
|
|
33
|
+
- A positively qualified current native Spotify session can still use native
|
|
34
|
+
empty-content resume. Unknown/history-only context return retains its existing
|
|
35
|
+
provider contract; exact remembered-item confirmation does not invent an item
|
|
36
|
+
for a context. Local Library commands, context starts, radio, Line-In,
|
|
37
|
+
explicit native Shuffle/Repeat setters and their capability rules are unchanged.
|
|
38
|
+
|
|
39
|
+
There is no Spotify API, compensating Shuffle/Repeat write, queue controller,
|
|
40
|
+
new setting, delay-only fix, cursor arithmetic change, fallback item, cross-room
|
|
41
|
+
policy or persistence implementation. The existing playback setup gate remains
|
|
42
|
+
required (see the main README).
|
|
43
|
+
|
|
44
|
+
## Function-to-feature map
|
|
45
|
+
|
|
46
|
+
| File/symbol | Change and regression coverage |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| `pyloxone_audio/native.py:AudioServerCommands.async_play_catalogue` | Type-specific per-item flag; `tests/library/test_exact_track_start.py` checks tracks/episodes, qualified IDs, no parent and cursors 0/13/63, plus context/other-route negatives |
|
|
49
|
+
| `pyloxone_audio/sources.py:_source_matcher`, `async_select_catalogue` | Saved exact-item match before confirmation/optional seek; preserve ordered source/track/account restore reasons |
|
|
50
|
+
| `pyloxone_audio/selection.py:async_source_route` | Owning adapter may suppress current-session no-op after a rejected exact return; ordinary native session routing unchanged |
|
|
51
|
+
| `adapters/pyloxone/overlay/custom_components/loxone/media_player.py:LoxoneAudioZoneV2._update_audio_metadata`, `async_select_source`, `_async_play_radio` | One room-local rejected-return marker, using the existing saved session and passive qualification. Protect last-good without changing truthful metadata; release on qualified replacement/explicit success |
|
|
52
|
+
| `adapters/pyloxone/overlay/custom_components/loxone/audio_diagnostics.py:_safe_event` | Persisted strict schema retains the aliased Spotify flag; recovery/extra-tail/non-Spotify negatives in owning-HA tests |
|
|
53
|
+
| `pyloxone_audio/diagnostic_events.py:DiagnosticEmitter.route` | Recognise only the fixed per-item flag, preserving keyed account/content/parent aliases; unknown tails still refused |
|
|
54
|
+
| `tests/adapter/test_exact_track_return_ha.py` | Real owning HA service/coordinator/authenticated native transport, synthetic I/O: 30.021s/index13 shape, wrong feedback even with new flag and reported shuffle false/true, delayed correct feedback, account/room negatives, explicit retry/Browse, late matches and independent replacement |
|
|
55
|
+
|
|
56
|
+
Existing full-suite lifecycle/authentication/cancellation, all-room isolation,
|
|
57
|
+
mode, manual seek, announcement, setup/unload and no-uncertain-replay controls
|
|
58
|
+
remain part of acceptance. See the maintainer's `EXACT-TRACK-DELTA.json` and
|
|
59
|
+
`EXACT-TRACK-TEST-MIGRATIONS.json` for exact file/expectation dispositions.
|
|
60
|
+
|
|
61
|
+
## Source evidence and limits
|
|
62
|
+
|
|
63
|
+
The pinned official Loxone 17.2.2 client, retrieved 26 October 2026 from the official
|
|
64
|
+
Linux release AppImage, uses `playItem -> shouldShuffleAudioItem ->
|
|
65
|
+
ServicePlayScheme`; individual track/episode types choose `noshuffle`, serialized
|
|
66
|
+
**after** `parentpath/<parent>/<zero-based-index>`. The retained bundle SHA-256 is
|
|
67
|
+
`76f4ff34c3156cf9109524c37640d33352968fc7dc7477af6866a9983f5abacf`.
|
|
68
|
+
This is command/caller parity, not proof of the physical firmware's selection
|
|
69
|
+
algorithm or a persistent shuffle/queue-preservation guarantee. The motivating
|
|
70
|
+
wrong-track observation included reported shuffle **false**, so it is not
|
|
71
|
+
explained simply by a shuffle-on switch.
|
|
72
|
+
|
|
73
|
+
Wrong-feedback fixtures are deliberately independent of the flag. A simulator
|
|
74
|
+
that returns the right item when it sees the flag cannot prove the hardware cause.
|
|
75
|
+
Those offline fixtures use no device credentials or household commands. Later
|
|
76
|
+
owner-operated one-room returns supplied matching content/position confirmation;
|
|
77
|
+
parent/queue, universal audible position and persistent-mode effects remain unproved.
|
|
78
|
+
|
|
79
|
+
The receiver cannot establish an external command's issuer from identical
|
|
80
|
+
same-item feedback. Continuing the rejected item alone does not establish a new
|
|
81
|
+
independent selection. Explicit Browse can deliberately choose that item; later
|
|
82
|
+
qualified different playback also replaces the marker. This is a bounded
|
|
83
|
+
interpretation of observed identity, not invented causal device evidence.
|
|
84
|
+
|
|
85
|
+
## Review and adoption
|
|
86
|
+
|
|
87
|
+
1. Inspect the exact delta, test-migration map and retained original failed receipts.
|
|
88
|
+
2. Reproduce canonical source and exact installed-wheel suites with blocked TCP,
|
|
89
|
+
strict runtime/resource warning gates, case parity and import evidence.
|
|
90
|
+
3. Verify the complete preview against its provenance; exercise the unchanged
|
|
91
|
+
builder/install/update/rollback tests. Preview material stays out of Python
|
|
92
|
+
wheel/sdist. Do not use older same-version artifact hashes.
|
|
93
|
+
4. Preserve the completed independent exact-correction review and common adoption
|
|
94
|
+
evidence. Re-review changed runtime; historical mode/seek reviews alone do not
|
|
95
|
+
approve future changes.
|
|
96
|
+
5. Keep software tests, installed-byte verification, one-room owner acceptance and
|
|
97
|
+
the public production gate separate. Upstream adoption/contact is not implied.
|
|
98
|
+
|
|
99
|
+
Restart persistence is a separate design and is intentionally not bundled here.
|
|
@@ -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.
|
|
@@ -11,3 +11,11 @@ include README.md
|
|
|
11
11
|
include SPOTIFY.md
|
|
12
12
|
prune tests/release
|
|
13
13
|
recursive-include tests/library *.py *.ini *.json *.txt *.md
|
|
14
|
+
include POSITION-RESTORE.md
|
|
15
|
+
include DIAGNOSTICS.md
|
|
16
|
+
include NATIVE-MODES.md
|
|
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
|