PyLoxone-Audio 0.1.2__tar.gz → 0.1.3__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 → pyloxone_audio-0.1.3}/API.md +16 -52
- pyloxone_audio-0.1.3/AUTOMATION-GROUPING.md +37 -0
- pyloxone_audio-0.1.3/CHANGELOG.md +13 -0
- pyloxone_audio-0.1.2/DIAGNOSTICS.md → pyloxone_audio-0.1.3/DIAGNOSTICS-REFERENCE.md +148 -35
- pyloxone_audio-0.1.3/DIAGNOSTICS.md +22 -0
- pyloxone_audio-0.1.3/KNOWN-ISSUES.md +20 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/MANIFEST.in +6 -6
- pyloxone_audio-0.1.3/NOTICE.md +23 -0
- pyloxone_audio-0.1.3/PKG-INFO +73 -0
- pyloxone_audio-0.1.3/PyLoxone_Audio.egg-info/PKG-INFO +73 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/PyLoxone_Audio.egg-info/SOURCES.txt +21 -6
- pyloxone_audio-0.1.3/README.md +55 -0
- pyloxone_audio-0.1.3/RELEASE-NOTES-0.1.3.md +32 -0
- pyloxone_audio-0.1.3/USER-GUIDE.md +42 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/__init__.py +1 -1
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/announcement.py +4 -1
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/diagnostic_events.py +51 -4
- pyloxone_audio-0.1.3/pyloxone_audio/grouping.py +694 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/metadata.py +158 -7
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/native.py +171 -12
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/sources.py +8 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyproject.toml +1 -1
- pyloxone_audio-0.1.3/tests/library/test_audio_grouping.py +171 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audio_modes.py +2 -1
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_announcement.py +1 -1
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_wire.py +3 -2
- pyloxone_audio-0.1.3/tests/library/test_automation_group_intent.py +66 -0
- pyloxone_audio-0.1.3/tests/library/test_diagnostic_operations.py +52 -0
- pyloxone_audio-0.1.3/tests/library/test_diagnostic_request_kinds.py +33 -0
- pyloxone_audio-0.1.3/tests/library/test_diagnostic_timing.py +51 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_diagnostic_wire.py +7 -1
- pyloxone_audio-0.1.3/tests/library/test_group_commands.py +125 -0
- pyloxone_audio-0.1.3/tests/library/test_group_coordinator.py +205 -0
- pyloxone_audio-0.1.3/tests/library/test_group_planning.py +110 -0
- pyloxone_audio-0.1.3/tests/library/test_group_revocation_r1.py +58 -0
- pyloxone_audio-0.1.3/tests/library/test_group_transport.py +50 -0
- pyloxone_audio-0.1.3/tests/library/test_grouping_numeric_validation.py +66 -0
- pyloxone_audio-0.1.3/tests/library/test_playback_failure_recovery.py +79 -0
- pyloxone_audio-0.1.3/tests/library/test_published_authentication.py +61 -0
- pyloxone_audio-0.1.3/tests/library/test_room_reply_review03.py +49 -0
- pyloxone_audio-0.1.3/tests/library/test_room_transport.py +123 -0
- pyloxone_audio-0.1.3/tests/library/test_volume_failure_recovery.py +148 -0
- pyloxone_audio-0.1.2/CHANGELOG.md +0 -71
- pyloxone_audio-0.1.2/EXACT-TRACK-RETURN.md +0 -99
- pyloxone_audio-0.1.2/KNOWN-ISSUES.md +0 -51
- pyloxone_audio-0.1.2/METADATA-FRESHNESS.md +0 -110
- pyloxone_audio-0.1.2/NATIVE-MODES.md +0 -101
- pyloxone_audio-0.1.2/NOTICE.md +0 -17
- pyloxone_audio-0.1.2/PKG-INFO +0 -195
- pyloxone_audio-0.1.2/POSITION-RESTORE.md +0 -104
- pyloxone_audio-0.1.2/PyLoxone_Audio.egg-info/PKG-INFO +0 -195
- pyloxone_audio-0.1.2/README.md +0 -177
- pyloxone_audio-0.1.2/RELEASE-NOTES-0.1.2.md +0 -60
- pyloxone_audio-0.1.2/SPOTIFY.md +0 -107
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/LICENSE +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/PyLoxone_Audio.egg-info/dependency_links.txt +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/PyLoxone_Audio.egg-info/requires.txt +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/PyLoxone_Audio.egg-info/top_level.txt +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/catalogue.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/clock.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/models.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/py.typed +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/radio.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/pyloxone_audio/selection.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/setup.cfg +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/conftest.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/fixtures/audioserver/README.md +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/fixtures/audioserver/sebastian_alarm_end.txt +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/fixtures/audioserver/sebastian_loxone_radio.json +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/fixtures/audioserver/sebastian_tts.json +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/fixtures/audioserver/sebastian_tunein.json +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/pytest.ini +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_connection.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_events.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_library_source.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_metadata.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_playback.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_seek.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_audioserver_timing.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_boundary_environment.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_boundary_ownership.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_boundary_qualification.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_diagnostic_events.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_distribution_dependencies.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_exact_track_start.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_portable_policies.py +0 -0
- {pyloxone_audio-0.1.2 → pyloxone_audio-0.1.3}/tests/library/test_restore_readiness.py +0 -0
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
# PyLoxone-Audio 0.1.
|
|
1
|
+
# PyLoxone-Audio 0.1.3 — API and compatibility
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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.
|
|
3
|
+
An Apache-2.0 Python library for native audio communication, consumed by the
|
|
4
|
+
existing PyLoxone integration. The matching reference adapter is 0.10.3.dev18
|
|
5
|
+
on stock PyLoxone 0.10.3. See [NOTICE.md](NOTICE.md) for attribution.
|
|
12
6
|
|
|
13
7
|
## Concrete public API and ownership
|
|
14
8
|
|
|
@@ -69,10 +63,10 @@ HA-independent exports. `AudioZoneMetadata` adds nullable `shuffle`, typed
|
|
|
69
63
|
explicit native player request through existing authentication/serialization and
|
|
70
64
|
strictly validate its reply. The host qualifies fresh native permissions/state
|
|
71
65
|
and maintains its liveness callback; no Spotify bridge/API or optimistic metadata
|
|
72
|
-
write is involved.
|
|
73
|
-
|
|
66
|
+
write is involved. Unknown mode feedback stays unknown. HA maps Repeat Off/All/One to native 0/1/3;
|
|
67
|
+
capability and source support govern which controls are available.
|
|
74
68
|
|
|
75
|
-
## Optional structured diagnostics
|
|
69
|
+
## Optional structured diagnostics
|
|
76
70
|
|
|
77
71
|
`pyloxone_audio.diagnostic_events` defines the version1 fixed-field schema,
|
|
78
72
|
`DiagnosticEmitter`, `diagnostics_enabled` and exception-isolating
|
|
@@ -89,45 +83,16 @@ not a portable HA/storage dependency or a second integration. Separate HA Store
|
|
|
89
83
|
preference/salt avoids reload-on-options. See [DIAGNOSTICS.md](DIAGNOSTICS.md) for
|
|
90
84
|
the supported enable/export workflow, exact bounds and evidence/privacy limits.
|
|
91
85
|
|
|
92
|
-
|
|
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
|
|
86
|
+
## Installation and host compatibility
|
|
119
87
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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.
|
|
88
|
+
Requires Python >=3.14. Install `PyLoxone-Audio==0.1.3` for standalone consumers.
|
|
89
|
+
Home Assistant users need the matching component and frontend described in the
|
|
90
|
+
[installation guide](preview-build/README.md); HA installs Python dependencies.
|
|
91
|
+
Keep domain `loxone`, existing entries/entities and the exact compatible pin.
|
|
92
|
+
Source and installed-wheel checks use synthetic external I/O and real local
|
|
93
|
+
WebSocket/crypto boundaries. They do not require household credentials.
|
|
129
94
|
|
|
130
|
-
##
|
|
95
|
+
## Freshness and host obligations
|
|
131
96
|
|
|
132
97
|
`AudioZoneMetadata.has_observation`, receiver per-player meaningful revisions and
|
|
133
98
|
`AudioMetadataCoordinator.get`/`set_playing` separate fresh native information
|
|
@@ -142,5 +107,4 @@ read and capped 300-second per-player failure backoff. Exact player, stream,
|
|
|
142
107
|
meaningful-feedback revision, credentials, intent and ownership must still match
|
|
143
108
|
before publication. Idle/paused rooms are not polled simply for age. Continuous
|
|
144
109
|
empty rows can clear presentation again; useful read publication is not a promise
|
|
145
|
-
of uninterrupted metadata under arbitrary unusable traffic. See
|
|
146
|
-
[freshness contract](METADATA-FRESHNESS.md) and [remaining return limits](KNOWN-ISSUES.md).
|
|
110
|
+
of uninterrupted metadata under arbitrary unusable traffic. See [Known issues](KNOWN-ISSUES.md) for current user-facing limitations.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Grouping in automations
|
|
2
|
+
|
|
3
|
+
Complete [Required setup](README.md#required-setup), then choose **Loxone: Manage an audio group** (`loxone.audio_group_manage`) in Home Assistant's action picker.
|
|
4
|
+
|
|
5
|
+
Select one target room, an **Action**, and **Additional rooms** where needed. You do not need internal group IDs or revisions.
|
|
6
|
+
|
|
7
|
+
| Action | Target and result |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `create` | Target leads the new group; Additional rooms are its other members. Select at least one additional room. The resulting group contains exactly those rooms. |
|
|
10
|
+
| `add` | Target belongs to an existing dynamic group. Additional rooms join it; its leader and existing members remain. |
|
|
11
|
+
| `remove` | Removes the target room from its group. Leave Additional rooms empty. Fewer than two remaining rooms dissolves the group. |
|
|
12
|
+
| `destroy` | Removes the target's whole group. Leave Additional rooms empty. |
|
|
13
|
+
|
|
14
|
+
## Moving rooms from other groups
|
|
15
|
+
|
|
16
|
+
**Override any existing group membership** is off by default. Leave it off unless you intend to transfer occupied rooms. For `create` or `add`, enabling it allows selected rooms to leave their existing dynamic groups. Unselected rooms remain together where at least two remain; smaller remainders dissolve. `add` never replaces the destination leader. Do not enable override for `remove` or `destroy`.
|
|
17
|
+
|
|
18
|
+
Group changes and transfers can interrupt sound. If an action fails after a partial change, inspect the current groups before trying again. Override does not bypass unavailable/stale-state checks or allow fixed/static groups. The action supports Loxone-managed audio rooms on one Audio Server.
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
Replace these example entity IDs with your own. This creates a group led by the living-room player without moving occupied rooms:
|
|
23
|
+
|
|
24
|
+
```yaml
|
|
25
|
+
action: loxone.audio_group_manage
|
|
26
|
+
target:
|
|
27
|
+
entity_id: media_player.living_room
|
|
28
|
+
data:
|
|
29
|
+
action: create
|
|
30
|
+
members:
|
|
31
|
+
- media_player.kitchen
|
|
32
|
+
override_existing_membership: false
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
This action is separate from standard `media_player.join`, which adds to an existing group. The interactive Create/Add picker only offers free rooms; it does not enable transfers automatically.
|
|
36
|
+
|
|
37
|
+
[User guide](USER-GUIDE.md) · [Report a problem](DIAGNOSTICS.md)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
- Native grouping from room players, leader/follower controls and automation actions.
|
|
6
|
+
- Source-return, exact-track, seek qualification and metadata recovery improvements.
|
|
7
|
+
- Source-independent bounded diagnostics with operation timelines and noise control.
|
|
8
|
+
- Simplified user, installation and maintainer guides.
|
|
9
|
+
- Normal `PyLoxone-Audio==0.1.3` dependency; reference adapter 0.10.3.dev18 on stock
|
|
10
|
+
PyLoxone 0.10.3, with frontend r10.
|
|
11
|
+
|
|
12
|
+
[Release notes](RELEASE-NOTES-0.1.3.md). Earlier releases remain in Git history and
|
|
13
|
+
GitHub Releases.
|
|
@@ -1,26 +1,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Audio diagnostics and native Home Assistant tools
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
For library 0.1.3 and reference adapter 0.10.3.dev18. Start with the
|
|
4
|
+
[installation guide](preview-build/README.md).
|
|
5
|
+
New users default OFF; existing saved preferences are preserved. Install the
|
|
6
|
+
matching adapter/library pair: installing only the wheel does not add the switch.
|
|
7
|
+
The event schema remains version1 with an extended fixed allowlist; defaults and
|
|
8
|
+
storage/age bounds remain unchanged. The 0.1.3 library and reference adapter add source-independent incident correlation and noise control.
|
|
8
9
|
Diagnostics neither enables the Audio Server client nor repairs playback. Set the
|
|
9
10
|
Audio Server host and existing experimental playback option separately; see
|
|
10
|
-
[Required setup](README.md#required-
|
|
11
|
+
[Required setup](README.md#required-setup).
|
|
11
12
|
|
|
12
13
|
Defaults, switch preferences, retention, storage/export bounds and schema version1
|
|
13
14
|
remain unchanged. Its narrowly extended allowlist records native aliased
|
|
14
15
|
`shuffle/enable|disable`, `repeat/0|1|3`, standard HA `shuffle_set`/`repeat_set`
|
|
15
16
|
requests and validated feedback fields `shuffle` (literal boolean) and `repeat`
|
|
16
17
|
(`off|all|one`). Unknown mode fields are omitted, never inferred as off; malformed
|
|
17
|
-
routes/enums/booleans remain rejected. A command reply
|
|
18
|
+
routes/enums/booleans remain rejected. A command reply does not by itself prove audible playback.
|
|
18
19
|
No raw mode payload, credential or provider state is exported.
|
|
19
20
|
During a bounded readiness wait, `seek_unsupported` is a
|
|
20
21
|
current decision, not proof the source can never seek. A later `eligible` requires
|
|
21
22
|
positive capability on the same valid target; a source-transport `timeout` with
|
|
22
|
-
`seek_unsupported` means playback was retained without a seek. No
|
|
23
|
-
|
|
23
|
+
`seek_unsupported` means playback was retained without a seek. No historical raw native capability mask can be reconstructed from a false
|
|
24
|
+
diagnostic boolean. The report records mask presence, validity and its exact
|
|
25
|
+
nonnegative value, distinguishing missing/invalid from a legitimate zero.
|
|
26
|
+
|
|
27
|
+
## Source-independent incident timelines
|
|
28
|
+
|
|
29
|
+
These additions apply to every supported source and room, not just TuneIn.
|
|
30
|
+
`operation_started` and `operation_finished` bracket the actual owning HA method,
|
|
31
|
+
including its final cleanup and validation. Its terminal `outcome` is `returned`,
|
|
32
|
+
`error`, `cancelled` or `timeout`; `returned` means the method returned, NOT that
|
|
33
|
+
sound was heard. A scoped, keyed `operation_id` links its child commands, while
|
|
34
|
+
each native request keeps a distinct keyed `request_id`. Inherited background
|
|
35
|
+
tasks cannot keep using an operation after that operation has ended.
|
|
36
|
+
|
|
37
|
+
Each shared native request records `request`, `lock_acquired`, `connection_opened`,
|
|
38
|
+
`authenticated`, `send_attempt`, `send_completed`, `reply`/`source_confirmed` and
|
|
39
|
+
`request_finished` after socket cleanup. UTC/monotonic timestamps and `elapsed_ms`
|
|
40
|
+
separate preparation, lock wait, connection/authentication, send/response and
|
|
41
|
+
cleanup time. Before/after snapshots include known native timing/capabilities,
|
|
42
|
+
room volume and eligible group identity/revision/count. `state_published` records
|
|
43
|
+
the existing owned HA entity's state event, not browser paint or acoustic output.
|
|
44
|
+
No logging hook changes commands, retries, guards, credentials or deadlines.
|
|
45
|
+
|
|
46
|
+
Routine same-state progress and bookmark records are sampled every30seconds.
|
|
47
|
+
An audio action opens a45second higher-detail window, at most one unchanged
|
|
48
|
+
sample every0.25seconds per player/transport/event kind. Identity, state, volume,
|
|
49
|
+
capability changes and position discontinuities bypass that sampling. Sampler
|
|
50
|
+
state itself is bounded. `sampled_routine_records` counts intentional suppression,
|
|
51
|
+
not a storage failure. Queue overflow prefers routine loss over command/changed
|
|
52
|
+
state loss; `dropped_queue` counts all overflow losses and
|
|
53
|
+
`dropped_important_queue` identifies actual important-record loss.
|
|
54
|
+
|
|
55
|
+
Bounded downloads select newest important command/decision/changed-state records
|
|
56
|
+
before routine samples, then return selected rows in their original order.
|
|
57
|
+
`export_selection: important_then_recent`, `export_omitted_records` and
|
|
58
|
+
`export_omitted_important_records` disclose that policy and any incomplete
|
|
59
|
+
selection. This is NOT a guarantee that every journey survives age/disk pressure
|
|
60
|
+
or fits one download. A reply can precede a later native or owning-HA failure.
|
|
61
|
+
|
|
62
|
+
For a slow start, correlate HA entry → native send → native feedback → HA state
|
|
63
|
+
publication/return. Note approximate first audible sound separately: none of
|
|
64
|
+
these software markers proves the first audible sample. Existing old reports
|
|
65
|
+
cannot acquire these new fields retroactively. No new reproduction is requested
|
|
66
|
+
by this documentation, and upgrading does not enable collection or private tracing.
|
|
24
67
|
|
|
25
68
|
## Tester workflow
|
|
26
69
|
|
|
@@ -34,7 +77,8 @@ capability mask can be reconstructed from a false diagnostic boolean.
|
|
|
34
77
|
3. Open **Settings > Devices & services > Loxone**, use the relevant entry's
|
|
35
78
|
three-dot menu and **Download diagnostics**. This uses HA's existing
|
|
36
79
|
administrator-only config-entry diagnostic download, not a new public endpoint.
|
|
37
|
-
4.
|
|
80
|
+
4. If you enabled collection only for this report, turn **Audio diagnostics off**.
|
|
81
|
+
Otherwise preserve your chosen existing preference. That stops new collection, not the integration
|
|
38
82
|
or playback. No reload, new connection, Core restart, media command or bookmark
|
|
39
83
|
reset occurs when switching it on/off. The explicit setting survives ordinary
|
|
40
84
|
restarts once persistence is confirmed; new installs/upgrades without a valid
|
|
@@ -45,19 +89,96 @@ capability mask can be reconstructed from a false diagnostic boolean.
|
|
|
45
89
|
reports failed, mismatched, deferred or cancelled persistence. A successful
|
|
46
90
|
journal flush/export does not clear that pending preference error.
|
|
47
91
|
5. Review the downloaded JSON before attaching it to your agreed issue/report
|
|
48
|
-
channel. Nothing uploads automatically. Include the exact
|
|
92
|
+
channel. Nothing uploads automatically. Include the exact version/ZIP hash,
|
|
49
93
|
HA/PyLoxone/library versions, symptom time/timezone, steps and audible versus
|
|
50
94
|
displayed result. Locally match a room to its `room`/`player` aliases if needed;
|
|
51
|
-
do not post original household IDs
|
|
52
|
-
|
|
95
|
+
do not post original household IDs, private account details or unreviewed
|
|
96
|
+
identifying material.
|
|
97
|
+
|
|
98
|
+
## HA 2026.11: choose the right evidence
|
|
99
|
+
|
|
100
|
+
Keep using **Audio diagnostics** and the existing **Download diagnostics** action
|
|
101
|
+
for sanitised internal audio evidence. The following native tools supplement it;
|
|
102
|
+
they neither replace it nor turn it on. No extra integration, remote-execution
|
|
103
|
+
service or automatic upload is installed.
|
|
104
|
+
|
|
105
|
+
| Question | Supported tool | Important limit |
|
|
106
|
+
| --- | --- | --- |
|
|
107
|
+
| Why did integration setup or dependency installation fail? | Loxone integration's **Logs** link / **Settings > System > Logs** | Ordinary retained logs; not an audio wire trace |
|
|
108
|
+
| Which HA action was called, with what target and context? | **Settings > Tools > Action history** | Depends on Recorder coverage; call/payload is not success |
|
|
109
|
+
| Was an internal audio command sent, replied to, or refused? | Opt-in **Audio diagnostics** download | Only collected coverage; reply does not by itself prove final service success or sound |
|
|
110
|
+
| What objects are in this running Core? | Already-configured native **Debug console**, administrator only | Full Python execution, not a read-only sandbox; input is logged |
|
|
111
|
+
|
|
112
|
+
### Native integration logs: retain the normal level
|
|
113
|
+
|
|
114
|
+
Open **Settings > Devices & services > Loxone**, then the integration page's
|
|
115
|
+
three-dot **Logs** link (or use **Settings > System > Logs**). Inspect existing
|
|
116
|
+
errors at the incident time first. In this adapter, the supported manifest logger
|
|
117
|
+
registration includes `pyloxone_audio` alongside the integration's own logger;
|
|
118
|
+
the native integration-scoped log reader/download can therefore include relevant
|
|
119
|
+
library warnings. Registration and viewing do **not** change any logger level.
|
|
120
|
+
The filter is integration-wide, not a privacy boundary between multiple entries.
|
|
121
|
+
|
|
122
|
+
In frontend 20261028.4, the integration page's **Show logs** live-dialog button is
|
|
123
|
+
inside its **debug logging enabled** banner. Do **not** enable debug merely to
|
|
124
|
+
reveal that button. The native log subscription/download itself does not require
|
|
125
|
+
DEBUG, but the visible route and available download controls depend on HA's
|
|
126
|
+
version and log-reader setup. If the normal screen does not expose a desired
|
|
127
|
+
live view, retain the ordinary logs; do not install a replacement log bridge.
|
|
128
|
+
|
|
129
|
+
**Raw HA logs are not sanitised by Audio diagnostics.** Upstream Miniserver
|
|
130
|
+
connection DEBUG logs can include commands/authentication-sensitive material,
|
|
131
|
+
and WebSocket DEBUG can expose frames. This workflow does not enable either,
|
|
132
|
+
does not claim every third-party warning is secret-free, and does not prescribe
|
|
133
|
+
blanket integration DEBUG. Review any native log download independently before
|
|
134
|
+
sharing. Changing native logging or its persistence is a separate explicit
|
|
135
|
+
operator choice, not the Audio diagnostics switch. Native persistent/once-only
|
|
136
|
+
logging settings are also independent of the collector's saved ON/OFF preference.
|
|
137
|
+
|
|
138
|
+
### Action history: correlate calls, not outcomes
|
|
139
|
+
|
|
140
|
+
Open **Settings > Tools > Action history**, select the incident interval and
|
|
141
|
+
inspect the room's `media_player` action/target. Availability and retention depend
|
|
142
|
+
on Recorder and its filters; an empty result is not proof no command was sent.
|
|
143
|
+
The native history can contain raw entity IDs, user IDs, action data and context;
|
|
144
|
+
it is not copied into the sanitised audio report. Review it before sharing.
|
|
145
|
+
|
|
146
|
+
In the supported audio report, `ha_service_request.request_id` is an entry-keyed
|
|
147
|
+
alias of that HA call's context ID. It is **not** the raw context ID, and internal
|
|
148
|
+
Audio Server/Miniserver requests have independently generated IDs. Do not assume
|
|
149
|
+
they share one request ID or attempt to export the pseudonym key to join them.
|
|
150
|
+
Use incident UTC time, exact locally known room, operation and ordering; preserve
|
|
151
|
+
uncertainty when concurrent actions cannot be distinguished. Neither a recorded
|
|
152
|
+
HA call nor an internal native reply establishes final owning-service success,
|
|
153
|
+
physical playback, or an optional seek. Post-await guards/cleanup can still reject
|
|
154
|
+
a service after its reply, with no second low-level error marker.
|
|
155
|
+
|
|
156
|
+
### Debug console is not part of this workflow
|
|
157
|
+
|
|
158
|
+
Do not enable a Debug console or run in-process Python to collect this report.
|
|
159
|
+
That facility is full execution, not a read-only diagnostic view. This handoff
|
|
160
|
+
uses the supported switch/download and ordinary logs; no console setup, raw
|
|
161
|
+
capture or logging-level change is required.
|
|
162
|
+
|
|
163
|
+
### Developer/tester handoff
|
|
164
|
+
|
|
165
|
+
Record exact Core/frontend/adapter/library versions and the tested artifact hash.
|
|
166
|
+
The report's `environment.pyloxone` comes from HA's loaded integration manifest,
|
|
167
|
+
not a fixed upstream-base label; it is descriptive metadata, not a source-byte
|
|
168
|
+
fingerprint. The outer HA envelope may contain identifying system information.
|
|
169
|
+
Retain raw native evidence privately, share only reviewed bounded excerpts, and
|
|
170
|
+
keep it separate from the supported sanitised audio report. No automatic upload
|
|
171
|
+
or new source/play/seek/group action is performed by any diagnostic tool here.
|
|
172
|
+
No external observer is required for the supported diagnostic workflow.
|
|
53
173
|
|
|
54
|
-
The
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
The
|
|
59
|
-
|
|
60
|
-
|
|
174
|
+
The workflow's regression tests run native log subscription/admin checks,
|
|
175
|
+
Recorder Action history/context and an explicitly configured console only in a
|
|
176
|
+
disposable network-isolated HA fixture with synthetic data. They do not enable
|
|
177
|
+
console/logging/capture on a household, prove deployment, or validate sound.
|
|
178
|
+
The existing owning tests continue to cover default OFF, ON/OFF, durable
|
|
179
|
+
preference/readback, failed OFF restart risk, age/cap/export bounds, unload and
|
|
180
|
+
playback fail-isolation. A failed native setup needs its own recovery; enabling
|
|
181
|
+
diagnostics cannot make a missing dependency installable.
|
|
61
182
|
|
|
62
183
|
## Reading a report and preparing a useful bug report
|
|
63
184
|
|
|
@@ -112,14 +233,15 @@ disk/permission problem and confirm pending has cleared before relying on restar
|
|
|
112
233
|
|
|
113
234
|
Per integration entry:
|
|
114
235
|
|
|
115
|
-
- Queue: at most **256 events**; overflow
|
|
236
|
+
- Queue: at most **256 events**; overflow prefers losing routine rows. If only
|
|
237
|
+
important rows remain, the oldest important row is lost and counted explicitly.
|
|
116
238
|
- Sanitised event: at most **2 KiB**; no unbounded raw frames or DEBUG logs.
|
|
117
239
|
- Timeline: at most **4 MiB**, in **256 KiB** segments. Size pressure rotates the
|
|
118
240
|
oldest segment, potentially shortening coverage to much less than 24 hours.
|
|
119
241
|
- Atomic maintenance reserves at most one additional segment plus bounded counter
|
|
120
242
|
metadata (8 KiB read bound). Preference/pseudonym-key storage is separate and
|
|
121
243
|
tiny. Local files are private, outside web/static paths.
|
|
122
|
-
- Export:
|
|
244
|
+
- Export: important-then-recent records within a bounded **1 MiB** audio-report budget. The
|
|
123
245
|
adapter reserves **64 KiB** for HA's separate envelope. HA owns that envelope;
|
|
124
246
|
unusually large platform metadata is not under this integration's control.
|
|
125
247
|
Exports state their omission count rather than promising every retained record.
|
|
@@ -189,15 +311,6 @@ and export. There is no sidecar, second integration, new socket, global debug
|
|
|
189
311
|
setting or automatic upload. Disabled callers skip detailed diagnostic field
|
|
190
312
|
construction and queue/file writes; expiry of previously retained data still runs.
|
|
191
313
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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.
|
|
314
|
+
Storage and export limits are fixed bounds, not a promise that a busy installation
|
|
315
|
+
will retain a full day. Report coverage and omission counters show which interval
|
|
316
|
+
is available for a particular incident.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Reporting an audio problem
|
|
2
|
+
|
|
3
|
+
Audio diagnostics records recent audio actions and feedback so we can investigate a report. It is optional and off by default for new users. Your existing choice is preserved on upgrade.
|
|
4
|
+
|
|
5
|
+
## Collect and download a report
|
|
6
|
+
|
|
7
|
+
1. In **Settings > Devices & services > Entities**, filter to Loxone and turn on **Audio diagnostics** for the relevant entry.
|
|
8
|
+
2. Use the player normally and note the problem's time, timezone, room and source. Avoid repeatedly triggering it just to fill the log.
|
|
9
|
+
3. Open the Loxone entry under **Settings > Devices & services** and choose **Download diagnostics** from its menu.
|
|
10
|
+
4. Review the whole JSON before sharing it. Nothing uploads automatically. If you only enabled collection for this report, you can turn it off afterwards; otherwise leave your usual setting.
|
|
11
|
+
|
|
12
|
+
Include the build/version, what you did, what you expected and what you actually heard or saw. Distinguish an on-screen change from audible playback.
|
|
13
|
+
|
|
14
|
+
## Privacy and coverage
|
|
15
|
+
|
|
16
|
+
Audio events use pseudonyms and omit raw credentials and media paths, but Home Assistant's surrounding system information can still identify an installation. Do not post passwords, tokens or an unreviewed download.
|
|
17
|
+
|
|
18
|
+
Collection keeps up to 24 hours by age, subject to storage limits; a download can contain less. It cannot recover events from before it was enabled. Missing coverage, omitted records and errors are reported in the download. A command reply alone does not prove sound was heard.
|
|
19
|
+
|
|
20
|
+
Turning diagnostics on or off does not restart playback or clear bookmarks. It is separate from the experimental playback option in [Required setup](README.md#required-setup). You do not need broad DEBUG logging or a Debug console for this workflow.
|
|
21
|
+
|
|
22
|
+
[Technical report reference (optional)](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS-REFERENCE.md) · [User guide](USER-GUIDE.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Known issues and limits
|
|
2
|
+
|
|
3
|
+
- Previous-source track/context/position bookmarks are held in memory and can be
|
|
4
|
+
lost after Home Assistant restarts or the integration reloads. Play the desired
|
|
5
|
+
content again to create a usable bookmark.
|
|
6
|
+
- Source return needs a usable remembered selection. Saved-position restoration
|
|
7
|
+
can be skipped when native seek support is unavailable; exact positions and
|
|
8
|
+
complete queues are not guaranteed. Choose content through Browse if a source
|
|
9
|
+
has no remembered selection.
|
|
10
|
+
- Group management supports dynamic groups on one Audio Server. Changing a group
|
|
11
|
+
can interrupt sound; check its room list before applying a change.
|
|
12
|
+
- Native startup/resume volume behaviour is unchanged. Check the room volume
|
|
13
|
+
before starting playback rather than assuming a previous listening level.
|
|
14
|
+
- Radio startup can be slow and room-favourite artwork can be missing. Allow the
|
|
15
|
+
station to start before repeating a play request.
|
|
16
|
+
|
|
17
|
+
Use [Audio diagnostics](DIAGNOSTICS.md) to report a problem. Include the incident
|
|
18
|
+
time/timezone, versions, normal steps and expected versus observed behaviour.
|
|
19
|
+
|
|
20
|
+
[User guide](USER-GUIDE.md)
|
|
@@ -4,18 +4,18 @@ prune checks
|
|
|
4
4
|
prune adapters
|
|
5
5
|
prune tools
|
|
6
6
|
prune tests/adapter
|
|
7
|
+
prune tests/frontend
|
|
7
8
|
include API.md
|
|
8
9
|
include NOTICE.md
|
|
9
10
|
include LICENSE
|
|
10
11
|
include README.md
|
|
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
14
|
include DIAGNOSTICS.md
|
|
16
|
-
include NATIVE-MODES.md
|
|
17
|
-
include EXACT-TRACK-RETURN.md
|
|
18
|
-
include METADATA-FRESHNESS.md
|
|
19
15
|
include KNOWN-ISSUES.md
|
|
20
|
-
include RELEASE-NOTES-0.1.2.md
|
|
21
16
|
include CHANGELOG.md
|
|
17
|
+
|
|
18
|
+
include RELEASE-NOTES-0.1.3.md
|
|
19
|
+
include USER-GUIDE.md
|
|
20
|
+
include DIAGNOSTICS-REFERENCE.md
|
|
21
|
+
include AUTOMATION-GROUPING.md
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Provenance and licence — PyLoxone-Audio
|
|
2
|
+
|
|
3
|
+
Supplied under Apache-2.0. `LICENSE` retains PyLoxone's Apache License, Version 2.0
|
|
4
|
+
verbatim. Preserve the licence, attribution and notices when redistributing.
|
|
5
|
+
|
|
6
|
+
HA entry ownership, exact-player mapping, current-token callbacks and entity
|
|
7
|
+
property delegation are adapted from PyLoxone, maintained by JoDehli and its
|
|
8
|
+
contributors. No invented upstream copyright assignment is made.
|
|
9
|
+
|
|
10
|
+
The native event mapping retains this attribution:
|
|
11
|
+
|
|
12
|
+
> Event names adapted from SebastianEitzert's Apache-2.0 POC in #523, comment 6251138699. See tests/fixtures/audioserver/README.md for provenance.
|
|
13
|
+
|
|
14
|
+
The mapping is in `pyloxone_audio/native.py`. The current fixture provenance is
|
|
15
|
+
[tests/library/fixtures/audioserver/README.md](https://github.com/davehocking/PyLoxone-Audio/blob/main/tests/library/fixtures/audioserver/README.md);
|
|
16
|
+
the path in the original attribution is historical. Native transport/authentication,
|
|
17
|
+
metadata, catalogue, radio, source policy and announcement code are derived from
|
|
18
|
+
this project's native-audio implementation. HA preparation and UI ownership stay
|
|
19
|
+
with the host adapter.
|
|
20
|
+
|
|
21
|
+
Dave directs requirements, behaviour and normal-use validation. Development and
|
|
22
|
+
testing are human-directed with LLM assistance through Hermes and OpenAI models.
|
|
23
|
+
This does not transfer upstream ownership or replace the applicable licence.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: PyLoxone-Audio
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: Native audio transport and source policies for PyLoxone
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Homepage, https://github.com/davehocking/PyLoxone-Audio
|
|
7
|
+
Project-URL: Repository, https://github.com/davehocking/PyLoxone-Audio
|
|
8
|
+
Project-URL: Issues, https://github.com/davehocking/PyLoxone-Audio/issues
|
|
9
|
+
Project-URL: Releases, https://github.com/davehocking/PyLoxone-Audio/releases
|
|
10
|
+
Requires-Python: >=3.14
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE.md
|
|
14
|
+
Requires-Dist: websockets<16,>=14
|
|
15
|
+
Requires-Dist: pycryptodome>=3.20
|
|
16
|
+
Requires-Dist: aiohttp
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# PyLoxone-Audio
|
|
20
|
+
|
|
21
|
+
Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using your existing Home Assistant integration and room players.
|
|
22
|
+
|
|
23
|
+
**Version 0.1.3:** library **0.1.3**, reference adapter **0.10.3.dev18**, frontend **r10**, based on PyLoxone **0.10.3**. Install the matching preview below; Home Assistant resolves `PyLoxone-Audio==0.1.3` through its normal dependency handling. Installing the library alone does not update the integration.
|
|
24
|
+
|
|
25
|
+
## Start here
|
|
26
|
+
|
|
27
|
+
- [Install or upgrade](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md), including backup and rollback.
|
|
28
|
+
- [Use the players and groups](https://github.com/davehocking/PyLoxone-Audio/blob/main/USER-GUIDE.md).
|
|
29
|
+
- [Create groups in automations](https://github.com/davehocking/PyLoxone-Audio/blob/main/AUTOMATION-GROUPING.md).
|
|
30
|
+
- [Report a problem](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS.md).
|
|
31
|
+
- [Maintainer review](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md).
|
|
32
|
+
|
|
33
|
+
<a id="required-audio-server-configuration"></a>
|
|
34
|
+
|
|
35
|
+
## Required setup
|
|
36
|
+
|
|
37
|
+
In **Settings > Devices & services**, open the existing Loxone entry's configuration/options:
|
|
38
|
+
|
|
39
|
+
1. Set **Audioserver host** to the Audio Server's hostname or IP address.
|
|
40
|
+
2. Enable **Use Audio Server player play/pause (experimental; off by default)** (`audioserver_playback: true`).
|
|
41
|
+
3. Save.
|
|
42
|
+
|
|
43
|
+
Despite its name, that option also enables Browse/Search, source selection and return, supported seeking, Shuffle/Repeat, announcements and enhanced grouping. It uses the existing Loxone authentication; you do not need another integration or a Home Assistant Spotify login. Configure your music accounts in Loxone as usual.
|
|
44
|
+
|
|
45
|
+
**Audio diagnostics** is a separate, optional switch. It does not enable playback.
|
|
46
|
+
|
|
47
|
+
## What it adds
|
|
48
|
+
|
|
49
|
+
- Now-playing information and Browse/Search for supported native sources.
|
|
50
|
+
- Previous-source selection with remembered content and best-effort position return.
|
|
51
|
+
- Native audio groups through the player's **Join** control, with whole-group and individual-room controls.
|
|
52
|
+
- Group music controls on the leader, with a link from followers to the leader's player.
|
|
53
|
+
- Grouping actions for automations and optional diagnostic downloads.
|
|
54
|
+
|
|
55
|
+
See the [user guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/USER-GUIDE.md) for how the controls work.
|
|
56
|
+
|
|
57
|
+
## Current limits
|
|
58
|
+
|
|
59
|
+
Previous-source bookmarks are held in memory and can be lost when Home Assistant restarts or the integration reloads. Position restoration and seeking depend on the native source/player; a full queue is not restored. Native startup/resume volume behaviour is unchanged. Group management supports dynamic groups on one Audio Server.
|
|
60
|
+
|
|
61
|
+
Radio startup delays and room-favourite artwork remain known limitations. See [Known issues](https://github.com/davehocking/PyLoxone-Audio/blob/main/KNOWN-ISSUES.md).
|
|
62
|
+
|
|
63
|
+
## For developers
|
|
64
|
+
|
|
65
|
+
The Home Assistant-independent library owns native audio communication and playback state. The adapter connects it to PyLoxone's existing configuration, entities and lifecycle. The preview is a versioned reference for PyLoxone 0.10.3, not files to copy over every future upstream release.
|
|
66
|
+
|
|
67
|
+
[Maintainer guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md) identifies the patch and files to review. Detailed source maps and developer test instructions are optional references linked there.
|
|
68
|
+
|
|
69
|
+
## Credits and licence
|
|
70
|
+
|
|
71
|
+
Built on PyLoxone and its contributors' work. Thanks to Sebastian (@SebastianEitzert) for his contributions. Development is human-directed with LLM assistance.
|
|
72
|
+
|
|
73
|
+
[Apache License 2.0](https://github.com/davehocking/PyLoxone-Audio/blob/main/LICENSE); existing copyright and [notices](https://github.com/davehocking/PyLoxone-Audio/blob/main/NOTICE.md) are retained.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: PyLoxone-Audio
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: Native audio transport and source policies for PyLoxone
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Homepage, https://github.com/davehocking/PyLoxone-Audio
|
|
7
|
+
Project-URL: Repository, https://github.com/davehocking/PyLoxone-Audio
|
|
8
|
+
Project-URL: Issues, https://github.com/davehocking/PyLoxone-Audio/issues
|
|
9
|
+
Project-URL: Releases, https://github.com/davehocking/PyLoxone-Audio/releases
|
|
10
|
+
Requires-Python: >=3.14
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE.md
|
|
14
|
+
Requires-Dist: websockets<16,>=14
|
|
15
|
+
Requires-Dist: pycryptodome>=3.20
|
|
16
|
+
Requires-Dist: aiohttp
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# PyLoxone-Audio
|
|
20
|
+
|
|
21
|
+
Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using your existing Home Assistant integration and room players.
|
|
22
|
+
|
|
23
|
+
**Version 0.1.3:** library **0.1.3**, reference adapter **0.10.3.dev18**, frontend **r10**, based on PyLoxone **0.10.3**. Install the matching preview below; Home Assistant resolves `PyLoxone-Audio==0.1.3` through its normal dependency handling. Installing the library alone does not update the integration.
|
|
24
|
+
|
|
25
|
+
## Start here
|
|
26
|
+
|
|
27
|
+
- [Install or upgrade](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md), including backup and rollback.
|
|
28
|
+
- [Use the players and groups](https://github.com/davehocking/PyLoxone-Audio/blob/main/USER-GUIDE.md).
|
|
29
|
+
- [Create groups in automations](https://github.com/davehocking/PyLoxone-Audio/blob/main/AUTOMATION-GROUPING.md).
|
|
30
|
+
- [Report a problem](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS.md).
|
|
31
|
+
- [Maintainer review](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md).
|
|
32
|
+
|
|
33
|
+
<a id="required-audio-server-configuration"></a>
|
|
34
|
+
|
|
35
|
+
## Required setup
|
|
36
|
+
|
|
37
|
+
In **Settings > Devices & services**, open the existing Loxone entry's configuration/options:
|
|
38
|
+
|
|
39
|
+
1. Set **Audioserver host** to the Audio Server's hostname or IP address.
|
|
40
|
+
2. Enable **Use Audio Server player play/pause (experimental; off by default)** (`audioserver_playback: true`).
|
|
41
|
+
3. Save.
|
|
42
|
+
|
|
43
|
+
Despite its name, that option also enables Browse/Search, source selection and return, supported seeking, Shuffle/Repeat, announcements and enhanced grouping. It uses the existing Loxone authentication; you do not need another integration or a Home Assistant Spotify login. Configure your music accounts in Loxone as usual.
|
|
44
|
+
|
|
45
|
+
**Audio diagnostics** is a separate, optional switch. It does not enable playback.
|
|
46
|
+
|
|
47
|
+
## What it adds
|
|
48
|
+
|
|
49
|
+
- Now-playing information and Browse/Search for supported native sources.
|
|
50
|
+
- Previous-source selection with remembered content and best-effort position return.
|
|
51
|
+
- Native audio groups through the player's **Join** control, with whole-group and individual-room controls.
|
|
52
|
+
- Group music controls on the leader, with a link from followers to the leader's player.
|
|
53
|
+
- Grouping actions for automations and optional diagnostic downloads.
|
|
54
|
+
|
|
55
|
+
See the [user guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/USER-GUIDE.md) for how the controls work.
|
|
56
|
+
|
|
57
|
+
## Current limits
|
|
58
|
+
|
|
59
|
+
Previous-source bookmarks are held in memory and can be lost when Home Assistant restarts or the integration reloads. Position restoration and seeking depend on the native source/player; a full queue is not restored. Native startup/resume volume behaviour is unchanged. Group management supports dynamic groups on one Audio Server.
|
|
60
|
+
|
|
61
|
+
Radio startup delays and room-favourite artwork remain known limitations. See [Known issues](https://github.com/davehocking/PyLoxone-Audio/blob/main/KNOWN-ISSUES.md).
|
|
62
|
+
|
|
63
|
+
## For developers
|
|
64
|
+
|
|
65
|
+
The Home Assistant-independent library owns native audio communication and playback state. The adapter connects it to PyLoxone's existing configuration, entities and lifecycle. The preview is a versioned reference for PyLoxone 0.10.3, not files to copy over every future upstream release.
|
|
66
|
+
|
|
67
|
+
[Maintainer guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md) identifies the patch and files to review. Detailed source maps and developer test instructions are optional references linked there.
|
|
68
|
+
|
|
69
|
+
## Credits and licence
|
|
70
|
+
|
|
71
|
+
Built on PyLoxone and its contributors' work. Thanks to Sebastian (@SebastianEitzert) for his contributions. Development is human-directed with LLM assistance.
|
|
72
|
+
|
|
73
|
+
[Apache License 2.0](https://github.com/davehocking/PyLoxone-Audio/blob/main/LICENSE); existing copyright and [notices](https://github.com/davehocking/PyLoxone-Audio/blob/main/NOTICE.md) are retained.
|