PyLoxone-Audio 0.1.7__tar.gz → 0.2.0__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.7 → pyloxone_audio-0.2.0}/API.md +13 -5
- pyloxone_audio-0.2.0/AUTOMATION-GROUPING.md +3 -0
- pyloxone_audio-0.2.0/AUTOMATIONS.md +11 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/CHANGELOG.md +5 -1
- pyloxone_audio-0.2.0/DIAGNOSTICS-REFERENCE.md +9 -0
- pyloxone_audio-0.2.0/DIAGNOSTICS.md +32 -0
- pyloxone_audio-0.2.0/GROUPS.md +27 -0
- pyloxone_audio-0.2.0/KNOWN-ISSUES.md +7 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/MANIFEST.in +7 -1
- pyloxone_audio-0.2.0/PKG-INFO +73 -0
- pyloxone_audio-0.2.0/PyLoxone_Audio.egg-info/PKG-INFO +73 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/PyLoxone_Audio.egg-info/SOURCES.txt +38 -1
- pyloxone_audio-0.2.0/QUICKSTART.md +10 -0
- pyloxone_audio-0.2.0/README.md +55 -0
- pyloxone_audio-0.2.0/RELEASE-NOTES-0.2.0.md +11 -0
- pyloxone_audio-0.2.0/SUPPORT.md +32 -0
- pyloxone_audio-0.2.0/UPDATING.md +13 -0
- pyloxone_audio-0.2.0/USER-GUIDE.md +7 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/__init__.py +2 -2
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/announcement.py +4 -4
- pyloxone_audio-0.2.0/pyloxone_audio/announcement_options.py +42 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/albums.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/artists.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/folder.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/genres-and-moods.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/liked-songs.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/line-in.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/local-library.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/loxone-radio.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/more-items.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/my-playlists.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/new-releases.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/other-playlists.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/playlists.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/podcast-episode.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/podcasts.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/popular-playlists.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/public-playlists.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/radio-station.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/radio.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/room-favourites.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/spotify.svg +29 -0
- pyloxone_audio-0.2.0/pyloxone_audio/artwork/track-song.svg +29 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/catalogue.py +299 -55
- pyloxone_audio-0.2.0/pyloxone_audio/content_id.py +71 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/diagnostic_events.py +51 -2
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/grouping.py +106 -5
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/metadata.py +115 -16
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/models.py +1 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/native.py +111 -10
- pyloxone_audio-0.2.0/pyloxone_audio/projection.py +158 -0
- pyloxone_audio-0.2.0/pyloxone_audio/report.py +469 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyproject.toml +2 -2
- pyloxone_audio-0.2.0/tests/library/test_announcement_observation_gap.py +41 -0
- pyloxone_audio-0.2.0/tests/library/test_long_event_lifecycle.py +163 -0
- pyloxone_audio-0.2.0/tests/library/test_metadata_observation.py +121 -0
- pyloxone_audio-0.2.0/tests/library/test_native_status_aliases.py +131 -0
- pyloxone_audio-0.2.0/tests/library/test_native_status_decoding.py +35 -0
- pyloxone_audio-0.2.0/tests/library/test_native_status_report_preparation.py +177 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_volume_failure_recovery.py +26 -3
- pyloxone_audio-0.1.7/AUTOMATION-GROUPING.md +0 -37
- pyloxone_audio-0.1.7/DIAGNOSTICS-REFERENCE.md +0 -316
- pyloxone_audio-0.1.7/DIAGNOSTICS.md +0 -22
- pyloxone_audio-0.1.7/KNOWN-ISSUES.md +0 -23
- pyloxone_audio-0.1.7/PKG-INFO +0 -77
- pyloxone_audio-0.1.7/PyLoxone_Audio.egg-info/PKG-INFO +0 -77
- pyloxone_audio-0.1.7/README.md +0 -59
- pyloxone_audio-0.1.7/RELEASE-NOTES-0.1.7.md +0 -11
- pyloxone_audio-0.1.7/USER-GUIDE.md +0 -43
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/LICENSE +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/NOTICE.md +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/PyLoxone_Audio.egg-info/dependency_links.txt +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/PyLoxone_Audio.egg-info/requires.txt +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/PyLoxone_Audio.egg-info/top_level.txt +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/clock.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/py.typed +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/radio.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/selection.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/session.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/pyloxone_audio/sources.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/setup.cfg +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/conftest.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/fixtures/audioserver/README.md +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/fixtures/audioserver/sebastian_alarm_end.txt +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/fixtures/audioserver/sebastian_loxone_radio.json +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/fixtures/audioserver/sebastian_tts.json +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/fixtures/audioserver/sebastian_tunein.json +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/pytest.ini +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/session_support.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audio_grouping.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audio_modes.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_announcement.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_connection.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_events.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_library_source.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_metadata.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_playback.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_seek.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_timing.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_audioserver_wire.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_automation_group_intent.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_boundary_environment.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_boundary_ownership.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_boundary_qualification.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_diagnostic_events.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_diagnostic_operations.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_diagnostic_request_kinds.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_diagnostic_timing.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_diagnostic_wire.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_distribution_dependencies.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_exact_track_start.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_folder_echo_regression.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_group_commands.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_group_coordinator.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_group_planning.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_group_revocation_r1.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_group_transport.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_grouping_numeric_validation.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_playback_failure_recovery.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_portable_policies.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_published_authentication.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_restore_readiness.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_reusable_command_session.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_room_absolute_rebase.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_room_reply_review03.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_room_transport.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_session_benchmark.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_session_cancelled_close.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_session_isolation.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_session_owner_controls.py +0 -0
- {pyloxone_audio-0.1.7 → pyloxone_audio-0.2.0}/tests/library/test_session_playback_policy.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# PyLoxone-Audio 0.
|
|
1
|
+
# PyLoxone-Audio 0.2.0 — API and compatibility
|
|
2
2
|
|
|
3
3
|
## Command-session lifecycle
|
|
4
4
|
|
|
5
|
-
The 0.
|
|
5
|
+
The 0.2.0 adapter explicitly enables `AudioServerCommands.reuse_session`. Direct library consumers retain the original one-shot default. One command owner belongs to one entry/server/current authentication lifetime; never share it between entries or accounts. The host publishes token revocation through `observe_authentication()` and awaits `async_close()` on unload. Changing host/options uses the existing unload/new-owner lifecycle, not mutation of an active owner's endpoint.
|
|
6
6
|
|
|
7
7
|
The reusable transport keeps the existing single-request lock, authentication/serializers and command proof. After authentication, one bounded-inbox reader owns receive. Unsolicited events are drained but are not metadata authority; command echoes must match the active command (including the vendor's search-query key convention). An uncertain, cancelled, timed-out, malformed or uncorrelated session is retired without replay. The native protocol has no demonstrated unique request ID for a delayed identical echo.
|
|
8
8
|
|
|
@@ -11,8 +11,10 @@ Mapped metadata bindings call `observe_playback(player_id, playing)` from native
|
|
|
11
11
|
Diagnostics adds `session_reused` rather than inventing new connection/authentication stages for warm requests. `request_finished` still follows the actual request boundary. The Miniserver and metadata/event connections are separate and unchanged.
|
|
12
12
|
|
|
13
13
|
An Apache-2.0 Python library for native audio communication, consumed by the
|
|
14
|
-
existing PyLoxone integration. The matching reference adapter is 0.
|
|
15
|
-
|
|
14
|
+
existing PyLoxone integration. The matching reference adapter is 0.2.0.
|
|
15
|
+
Its stable host compatibility baseline is PyLoxone 0.12.1; the host contribution
|
|
16
|
+
is based on JoDehli/PyLoxone master `ede773fcf52b42b3caa1ddbf070a15ec012920c9`
|
|
17
|
+
and preserves the subsequent upstream changes. See [NOTICE.md](NOTICE.md) for attribution.
|
|
16
18
|
|
|
17
19
|
## Concrete public API and ownership
|
|
18
20
|
|
|
@@ -95,10 +97,16 @@ the supported enable/export workflow, exact bounds and evidence/privacy limits.
|
|
|
95
97
|
|
|
96
98
|
## Installation and host compatibility
|
|
97
99
|
|
|
98
|
-
Requires Python >=3.14. Install `PyLoxone-Audio==0.
|
|
100
|
+
Requires Python >=3.14. Install `PyLoxone-Audio==0.2.0` for standalone consumers.
|
|
99
101
|
Home Assistant users need the matching component and frontend described in the
|
|
100
102
|
[installation guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/preview-build/README.md); HA installs Python dependencies.
|
|
101
103
|
Keep domain `loxone`, existing entries/entities and the exact compatible pin.
|
|
104
|
+
The host adapter requires the guarded-send/observer extension to `pyloxone-api`;
|
|
105
|
+
stock public API 0.6.1 lacks that interface. Use the maintainer-selected compatible
|
|
106
|
+
public API release and pin its exact version before installing the host adapter.
|
|
107
|
+
The standalone audio library has no `pyloxone-api` dependency. Update the library
|
|
108
|
+
and matching reference adapter together; changing a Python dependency alone does
|
|
109
|
+
not replace host component files or frontend resources.
|
|
102
110
|
Source and installed-wheel checks use synthetic external I/O and real local
|
|
103
111
|
WebSocket/crypto boundaries. They do not require household credentials.
|
|
104
112
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Announcements and automations
|
|
2
|
+
|
|
3
|
+
Use the matching integration's actions and the services schema supplied with that component. Pick the actual media-player entity in your own installation; examples do not contain household identifiers.
|
|
4
|
+
|
|
5
|
+
## Explicit announcement target
|
|
6
|
+
|
|
7
|
+
Choose exactly one supported target: an individual speaker, its current dynamic group, or its Config fixed group. An individual target stays individual even when it is a group member. Group targeting preserves membership. Existing omitted targeting remains available for independent rooms; grouped rooms require an explicit choice. This is not support for arbitrary unrelated concurrent announcements.
|
|
8
|
+
|
|
9
|
+
Use a short, nonessential test only under a separately agreed test window. An upload or command acknowledgement does not prove sound, synchronisation or successful return to music. Do not use this integration as a safety-alarm delivery guarantee.
|
|
10
|
+
|
|
11
|
+
## Daily report policy
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
Explicit announcement targets; source artwork; group/preset management; fixed-group playback and proportional volume; capability-based native UI integration; improved ownership and announcement observations. See [release notes](RELEASE-NOTES-0.2.0.md).
|
|
6
|
+
|
|
3
7
|
## 0.1.7
|
|
4
8
|
|
|
5
9
|
- Matching library/adapter 0.1.7 and frontend r14.
|
|
@@ -28,4 +32,4 @@
|
|
|
28
32
|
- Full-width group/member volume sliders with percentage and −/+ controls.
|
|
29
33
|
- Original release: library 0.1.4, reference adapter 0.10.3.dev19 and frontend r12 on stock PyLoxone 0.10.3.
|
|
30
34
|
|
|
31
|
-
[Current release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.
|
|
35
|
+
[Current release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.0.md). Earlier releases remain in Git history and GitHub Releases.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Audio diagnostic reference
|
|
2
|
+
|
|
3
|
+
The audio support ZIP is generated locally by the authenticated host adapter. It includes bounded event/request summaries and build identities, not credentials or a full Home Assistant configuration. Downloading it does not upload it anywhere. See [collection and sharing](DIAGNOSTICS.md).
|
|
4
|
+
|
|
5
|
+
The exporter uses export-local aliases and omits direct household identifiers. Timestamps, activity patterns and aliases still provide privacy minimisation, not guaranteed anonymity. Inspect the actual ZIP before sharing and supply only the necessary failure window.
|
|
6
|
+
|
|
7
|
+
Collection state and retained-data availability are separate: stopped collection can still have records, while an empty export is not evidence that an operation succeeded. A send attempt, socket completion, device reply and observed physical effect are different observations.
|
|
8
|
+
|
|
9
|
+
Stock Home Assistant integration diagnostics are a separate export surface. Do not assume the audio ZIP's field policy applies to an unrelated log or Home Assistant diagnostic download.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Versions and audio diagnostics
|
|
2
|
+
|
|
3
|
+
Open **Audioserver Management → About PyLoxone-Audio** for version information and help with a problem. Opening About does not enable collection or operate your audio rooms.
|
|
4
|
+
|
|
5
|
+
## Collect a support ZIP
|
|
6
|
+
|
|
7
|
+
A Home Assistant administrator can:
|
|
8
|
+
|
|
9
|
+
1. Open **Enable diagnostics** in About. It opens the existing **Audio diagnostics** switch; turn it on deliberately.
|
|
10
|
+
2. Repeat the problem using your normal controls. No sound is recorded.
|
|
11
|
+
3. Reopen About, check the retained record range and choose **Download diagnostics (.zip)**.
|
|
12
|
+
4. Turn collection off with the same control when finished.
|
|
13
|
+
|
|
14
|
+
If there are no records, the download button is disabled: enable diagnostics and repeat the problem first. **Collection off does not prevent downloading earlier retained records.** First and last records are observations, not proof of uninterrupted coverage. The ZIP records known gaps, dropped events and export omissions.
|
|
15
|
+
|
|
16
|
+
The file stays on your device. Nothing is automatically uploaded. Inspect it before choosing where to share it.
|
|
17
|
+
|
|
18
|
+
## What the ZIP contains
|
|
19
|
+
|
|
20
|
+
- `diagnostics.json`: bounded state/error codes, timings and anonymous references used only within that export.
|
|
21
|
+
- `versions.json`: the backend-load version snapshot and build identity.
|
|
22
|
+
- `README.txt`: a short contents, coverage and omissions note.
|
|
23
|
+
|
|
24
|
+
It excludes usernames, credentials, tokens, IP addresses, unnecessary network/device/account identities, real room names, media titles and URLs, announcement text, raw household configuration and unrelated logs. Unknown fields and raw command routes are omitted. This is not a general Home Assistant diagnostic dump, and a command result does not prove physical playback.
|
|
25
|
+
|
|
26
|
+
## Understand the versions
|
|
27
|
+
|
|
28
|
+
About distinguishes installed package labels, loaded-code reports, the backend's captured build and the browser UI actually loaded. Open **Build details** for the full values. Labels can differ; package metadata alone does not prove which code is running. Missing values are shown as unavailable. **Copy version information** copies only those displayed version/build fields.
|
|
29
|
+
|
|
30
|
+
A browser/backend mismatch can mean cached UI; refresh the page normally. If an enhancement is incompatible, use the existing integration diagnostics and version information in Settings.
|
|
31
|
+
|
|
32
|
+
Diagnostics is optional and separate from the audio playback option in [setup](QUICKSTART.md). For a matching update or rollback, follow [Update and recover](UPDATING.md).
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Groups and presets
|
|
2
|
+
|
|
3
|
+
Open **Audioserver Management** from the native Group/Join entry or the supplied dashboard card. A room's controls act on that room. A group's **Media Controls** opens a group-named playback view using group actions, not an arbitrary member's player dialog.
|
|
4
|
+
|
|
5
|
+
## Config fixed groups
|
|
6
|
+
|
|
7
|
+
Membership is defined in Loxone Config and cannot be edited here. **Membership locked** is a passive roster label: it does not disable playback or group volume. The group view shows the fixed members and available group actions. The request-address room is not an elected leader or a replacement for the group.
|
|
8
|
+
|
|
9
|
+
## Temporary groups
|
|
10
|
+
|
|
11
|
+
Use the existing grouping controls to select eligible rooms and save useful arrangements as presets. Available actions depend on current topology, source and feedback. A stale or changed group can refuse an action instead of applying it to a different set of rooms.
|
|
12
|
+
|
|
13
|
+
## Rooms & Speakers
|
|
14
|
+
|
|
15
|
+
The directory lists audio rooms alphabetically, including Config-group rooms. A link icon and group name show actual deployed membership; a saved template alone does not make a room grouped. **View group** highlights that exact group in Deployed Groups, where **Media Controls** opens its shared playback view. An independent room's **Media Controls** opens its ordinary room player. Unknown or incomplete membership is not called independent. Search and **Grouped only** affect this directory only.
|
|
16
|
+
|
|
17
|
+
Room volumes in the directory are read-only. Playback and volume stay in the existing room and group controls. On narrow screens the directory stacks below the group/template panels.
|
|
18
|
+
|
|
19
|
+
## Volume
|
|
20
|
+
|
|
21
|
+
Config fixed-group volume now scales each room proportionally from its confirmed starting level. For example, rooms at 20% and 40% become 30% and 60% when the group is moved from 30% to 45%. Targets round to the nearest integer (halves up) and cap each room at 100%, without redistributing the excess. The displayed group value is the rounded average of the actual resulting room levels, so saturation can make it lower than requested. A room at zero stays zero while another room has a positive starting level.
|
|
22
|
+
|
|
23
|
+
Requesting zero silences all members. Requesting the already displayed nonzero group level is a no-op. If all rooms are at zero, positive proportional scaling has no known balance: set an individual room level first. Temporary/dynamic groups retain their existing equal percentage-point adjustments, and room-only volume remains absolute. Preset volumes and announcements are unchanged.
|
|
24
|
+
|
|
25
|
+
Feedback and errors remain tied to the current selection; normal use does not require deliberate pauses between adjustments. Each changed fixed room needs a strict native command acknowledgement. Group requests finish on native acceptance even when feedback is delayed, clamped or unchanged; displayed levels remain passive observations, not a claim of physical confirmation. A failed or uncertain partial operation is not automatically retried or undone.
|
|
26
|
+
|
|
27
|
+
See [announcements](AUTOMATIONS.md) for explicit target choices. Announcements do not change group membership.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Current limits
|
|
2
|
+
|
|
3
|
+
- Previous-source bookmarks are in memory; reload/restart can discard them.
|
|
4
|
+
- Seeking and position return depend on source/player support; complete queues are not reconstructed.
|
|
5
|
+
- Fixed-group membership is managed in Loxone Config.
|
|
6
|
+
- Announcements require a qualified target and native event feedback; missing or uncertain feedback can leave an operation unavailable rather than replaying it blindly.
|
|
7
|
+
- The reference adapter requires a compatible guarded-send/observer API release; stock API 0.6.1 lacks that contract.
|
|
@@ -15,7 +15,13 @@ include DIAGNOSTICS.md
|
|
|
15
15
|
include KNOWN-ISSUES.md
|
|
16
16
|
include CHANGELOG.md
|
|
17
17
|
|
|
18
|
-
include RELEASE-NOTES-0.
|
|
18
|
+
include RELEASE-NOTES-0.2.0.md
|
|
19
19
|
include USER-GUIDE.md
|
|
20
20
|
include DIAGNOSTICS-REFERENCE.md
|
|
21
21
|
include AUTOMATION-GROUPING.md
|
|
22
|
+
|
|
23
|
+
include GROUPS.md
|
|
24
|
+
include AUTOMATIONS.md
|
|
25
|
+
include QUICKSTART.md
|
|
26
|
+
include SUPPORT.md
|
|
27
|
+
include UPDATING.md
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: PyLoxone-Audio
|
|
3
|
+
Version: 0.2.0
|
|
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 the music accounts already configured in Loxone and the existing Home Assistant room players. No second integration or separate audio login.
|
|
22
|
+
|
|
23
|
+
**Library 0.2.0** and **reference audio adapter 0.2.0** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
|
|
24
|
+
|
|
25
|
+
## What it adds
|
|
26
|
+
|
|
27
|
+
- Now-playing information, artwork, Browse and Search for supported Local Library, Spotify and radio sources.
|
|
28
|
+
- Playback, volume, source selection and supported seeking; Line-In mutes/unmutes instead of pausing external equipment.
|
|
29
|
+
- Temporary groups, saved presets, and playback controls for Config fixed groups without changing their membership.
|
|
30
|
+
- A group-named **Media Controls** view and **Audioserver Management**.
|
|
31
|
+
- Announcements to an explicitly selected speaker, dynamic group or Config fixed group.
|
|
32
|
+
- Version information and optional local diagnostic downloads.
|
|
33
|
+
|
|
34
|
+
## Required setup
|
|
35
|
+
|
|
36
|
+
Use a matching host adapter. In **Settings → Devices & services → Loxone**, open the existing entry's options:
|
|
37
|
+
|
|
38
|
+
1. Set **Audioserver host** to your Audio Server's hostname or IP address.
|
|
39
|
+
2. Enable **Use Audio Server player play/pause (experimental; off by default)** (`audioserver_playback`).
|
|
40
|
+
3. Save.
|
|
41
|
+
|
|
42
|
+
Despite its name, that option also enables browsing, source selection and return, supported seeking, Shuffle/Repeat, announcements and enhanced grouping. **Audio diagnostics** is separate and optional. Keep music accounts configured in Loxone; native Spotify does not require a separate Home Assistant Spotify login.
|
|
43
|
+
|
|
44
|
+
## Compatibility and installation
|
|
45
|
+
|
|
46
|
+
The reference adapter targets PyLoxone's extracted `pyloxone-api` architecture. It requires the guarded-send/observer API extension: unmodified `pyloxone-api==0.6.1` does not provide that interface. Do not replace the dependency with stock 0.6.1 or copy this adapter over an arbitrary host version. See the [version-bound adapter guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md) for the exact host base and dependency requirements.
|
|
47
|
+
|
|
48
|
+
For standalone library development on Python 3.14 or newer:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
python -m pip install PyLoxone-Audio==0.2.0
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Home Assistant users should obtain the matching integration through its supported installation route rather than manually running pip in Home Assistant OS. A nested preview directory is not a HACS repository.
|
|
55
|
+
|
|
56
|
+
## Guides
|
|
57
|
+
|
|
58
|
+
- [Players and groups](https://github.com/davehocking/PyLoxone-Audio/blob/main/USER-GUIDE.md)
|
|
59
|
+
- [Groups and presets](https://github.com/davehocking/PyLoxone-Audio/blob/main/GROUPS.md)
|
|
60
|
+
- [Announcements and automations](https://github.com/davehocking/PyLoxone-Audio/blob/main/AUTOMATIONS.md)
|
|
61
|
+
- [Update and recovery](https://github.com/davehocking/PyLoxone-Audio/blob/main/UPDATING.md)
|
|
62
|
+
- [Local diagnostics](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS.md)
|
|
63
|
+
- [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.0.md)
|
|
64
|
+
|
|
65
|
+
## Limits
|
|
66
|
+
|
|
67
|
+
Source controls depend on the player's current state and advertised capability. Previous-source bookmarks are held in memory and may be lost on reload/restart; position return is best effort and does not reconstruct an entire queue. Fixed-group membership remains controlled by Loxone Config. Multiple supported announcement target types do not imply arbitrary concurrent announcements. A command acknowledgement is not acoustic confirmation in every room.
|
|
68
|
+
|
|
69
|
+
## Developers and credits
|
|
70
|
+
|
|
71
|
+
The Home Assistant-independent library owns Audio Server commands, events and source policies. The host adapter owns setup, entities and cleanup and supplies current authentication. See [API](https://github.com/davehocking/PyLoxone-Audio/blob/main/API.md) and [contribution/testing](https://github.com/davehocking/PyLoxone-Audio/blob/main/CONTRIBUTING-RELEASE.md).
|
|
72
|
+
|
|
73
|
+
Built on PyLoxone and its contributors' work. Thanks to Sebastian (@SebastianEitzert) for his contributions. Development is human-directed with LLM assistance. [Apache-2.0](https://github.com/davehocking/PyLoxone-Audio/blob/main/LICENSE); existing [notices](https://github.com/davehocking/PyLoxone-Audio/blob/main/NOTICE.md) are retained. The separate communication API retains its own licence.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: PyLoxone-Audio
|
|
3
|
+
Version: 0.2.0
|
|
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 the music accounts already configured in Loxone and the existing Home Assistant room players. No second integration or separate audio login.
|
|
22
|
+
|
|
23
|
+
**Library 0.2.0** and **reference audio adapter 0.2.0** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
|
|
24
|
+
|
|
25
|
+
## What it adds
|
|
26
|
+
|
|
27
|
+
- Now-playing information, artwork, Browse and Search for supported Local Library, Spotify and radio sources.
|
|
28
|
+
- Playback, volume, source selection and supported seeking; Line-In mutes/unmutes instead of pausing external equipment.
|
|
29
|
+
- Temporary groups, saved presets, and playback controls for Config fixed groups without changing their membership.
|
|
30
|
+
- A group-named **Media Controls** view and **Audioserver Management**.
|
|
31
|
+
- Announcements to an explicitly selected speaker, dynamic group or Config fixed group.
|
|
32
|
+
- Version information and optional local diagnostic downloads.
|
|
33
|
+
|
|
34
|
+
## Required setup
|
|
35
|
+
|
|
36
|
+
Use a matching host adapter. In **Settings → Devices & services → Loxone**, open the existing entry's options:
|
|
37
|
+
|
|
38
|
+
1. Set **Audioserver host** to your Audio Server's hostname or IP address.
|
|
39
|
+
2. Enable **Use Audio Server player play/pause (experimental; off by default)** (`audioserver_playback`).
|
|
40
|
+
3. Save.
|
|
41
|
+
|
|
42
|
+
Despite its name, that option also enables browsing, source selection and return, supported seeking, Shuffle/Repeat, announcements and enhanced grouping. **Audio diagnostics** is separate and optional. Keep music accounts configured in Loxone; native Spotify does not require a separate Home Assistant Spotify login.
|
|
43
|
+
|
|
44
|
+
## Compatibility and installation
|
|
45
|
+
|
|
46
|
+
The reference adapter targets PyLoxone's extracted `pyloxone-api` architecture. It requires the guarded-send/observer API extension: unmodified `pyloxone-api==0.6.1` does not provide that interface. Do not replace the dependency with stock 0.6.1 or copy this adapter over an arbitrary host version. See the [version-bound adapter guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md) for the exact host base and dependency requirements.
|
|
47
|
+
|
|
48
|
+
For standalone library development on Python 3.14 or newer:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
python -m pip install PyLoxone-Audio==0.2.0
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Home Assistant users should obtain the matching integration through its supported installation route rather than manually running pip in Home Assistant OS. A nested preview directory is not a HACS repository.
|
|
55
|
+
|
|
56
|
+
## Guides
|
|
57
|
+
|
|
58
|
+
- [Players and groups](https://github.com/davehocking/PyLoxone-Audio/blob/main/USER-GUIDE.md)
|
|
59
|
+
- [Groups and presets](https://github.com/davehocking/PyLoxone-Audio/blob/main/GROUPS.md)
|
|
60
|
+
- [Announcements and automations](https://github.com/davehocking/PyLoxone-Audio/blob/main/AUTOMATIONS.md)
|
|
61
|
+
- [Update and recovery](https://github.com/davehocking/PyLoxone-Audio/blob/main/UPDATING.md)
|
|
62
|
+
- [Local diagnostics](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS.md)
|
|
63
|
+
- [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.0.md)
|
|
64
|
+
|
|
65
|
+
## Limits
|
|
66
|
+
|
|
67
|
+
Source controls depend on the player's current state and advertised capability. Previous-source bookmarks are held in memory and may be lost on reload/restart; position return is best effort and does not reconstruct an entire queue. Fixed-group membership remains controlled by Loxone Config. Multiple supported announcement target types do not imply arbitrary concurrent announcements. A command acknowledgement is not acoustic confirmation in every room.
|
|
68
|
+
|
|
69
|
+
## Developers and credits
|
|
70
|
+
|
|
71
|
+
The Home Assistant-independent library owns Audio Server commands, events and source policies. The host adapter owns setup, entities and cleanup and supplies current authentication. See [API](https://github.com/davehocking/PyLoxone-Audio/blob/main/API.md) and [contribution/testing](https://github.com/davehocking/PyLoxone-Audio/blob/main/CONTRIBUTING-RELEASE.md).
|
|
72
|
+
|
|
73
|
+
Built on PyLoxone and its contributors' work. Thanks to Sebastian (@SebastianEitzert) for his contributions. Development is human-directed with LLM assistance. [Apache-2.0](https://github.com/davehocking/PyLoxone-Audio/blob/main/LICENSE); existing [notices](https://github.com/davehocking/PyLoxone-Audio/blob/main/NOTICE.md) are retained. The separate communication API retains its own licence.
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
API.md
|
|
2
2
|
AUTOMATION-GROUPING.md
|
|
3
|
+
AUTOMATIONS.md
|
|
3
4
|
CHANGELOG.md
|
|
4
5
|
DIAGNOSTICS-REFERENCE.md
|
|
5
6
|
DIAGNOSTICS.md
|
|
7
|
+
GROUPS.md
|
|
6
8
|
KNOWN-ISSUES.md
|
|
7
9
|
LICENSE
|
|
8
10
|
MANIFEST.in
|
|
9
11
|
NOTICE.md
|
|
12
|
+
QUICKSTART.md
|
|
10
13
|
README.md
|
|
11
|
-
RELEASE-NOTES-0.
|
|
14
|
+
RELEASE-NOTES-0.2.0.md
|
|
15
|
+
SUPPORT.md
|
|
16
|
+
UPDATING.md
|
|
12
17
|
USER-GUIDE.md
|
|
13
18
|
pyproject.toml
|
|
14
19
|
PyLoxone_Audio.egg-info/PKG-INFO
|
|
@@ -18,21 +23,48 @@ PyLoxone_Audio.egg-info/requires.txt
|
|
|
18
23
|
PyLoxone_Audio.egg-info/top_level.txt
|
|
19
24
|
pyloxone_audio/__init__.py
|
|
20
25
|
pyloxone_audio/announcement.py
|
|
26
|
+
pyloxone_audio/announcement_options.py
|
|
21
27
|
pyloxone_audio/catalogue.py
|
|
22
28
|
pyloxone_audio/clock.py
|
|
29
|
+
pyloxone_audio/content_id.py
|
|
23
30
|
pyloxone_audio/diagnostic_events.py
|
|
24
31
|
pyloxone_audio/grouping.py
|
|
25
32
|
pyloxone_audio/metadata.py
|
|
26
33
|
pyloxone_audio/models.py
|
|
27
34
|
pyloxone_audio/native.py
|
|
35
|
+
pyloxone_audio/projection.py
|
|
28
36
|
pyloxone_audio/py.typed
|
|
29
37
|
pyloxone_audio/radio.py
|
|
38
|
+
pyloxone_audio/report.py
|
|
30
39
|
pyloxone_audio/selection.py
|
|
31
40
|
pyloxone_audio/session.py
|
|
32
41
|
pyloxone_audio/sources.py
|
|
42
|
+
pyloxone_audio/artwork/albums.svg
|
|
43
|
+
pyloxone_audio/artwork/artists.svg
|
|
44
|
+
pyloxone_audio/artwork/folder.svg
|
|
45
|
+
pyloxone_audio/artwork/genres-and-moods.svg
|
|
46
|
+
pyloxone_audio/artwork/liked-songs.svg
|
|
47
|
+
pyloxone_audio/artwork/line-in.svg
|
|
48
|
+
pyloxone_audio/artwork/local-library.svg
|
|
49
|
+
pyloxone_audio/artwork/loxone-radio.svg
|
|
50
|
+
pyloxone_audio/artwork/more-items.svg
|
|
51
|
+
pyloxone_audio/artwork/my-playlists.svg
|
|
52
|
+
pyloxone_audio/artwork/new-releases.svg
|
|
53
|
+
pyloxone_audio/artwork/other-playlists.svg
|
|
54
|
+
pyloxone_audio/artwork/playlists.svg
|
|
55
|
+
pyloxone_audio/artwork/podcast-episode.svg
|
|
56
|
+
pyloxone_audio/artwork/podcasts.svg
|
|
57
|
+
pyloxone_audio/artwork/popular-playlists.svg
|
|
58
|
+
pyloxone_audio/artwork/public-playlists.svg
|
|
59
|
+
pyloxone_audio/artwork/radio-station.svg
|
|
60
|
+
pyloxone_audio/artwork/radio.svg
|
|
61
|
+
pyloxone_audio/artwork/room-favourites.svg
|
|
62
|
+
pyloxone_audio/artwork/spotify.svg
|
|
63
|
+
pyloxone_audio/artwork/track-song.svg
|
|
33
64
|
tests/library/conftest.py
|
|
34
65
|
tests/library/pytest.ini
|
|
35
66
|
tests/library/session_support.py
|
|
67
|
+
tests/library/test_announcement_observation_gap.py
|
|
36
68
|
tests/library/test_audio_grouping.py
|
|
37
69
|
tests/library/test_audio_modes.py
|
|
38
70
|
tests/library/test_audioserver_announcement.py
|
|
@@ -62,6 +94,11 @@ tests/library/test_group_planning.py
|
|
|
62
94
|
tests/library/test_group_revocation_r1.py
|
|
63
95
|
tests/library/test_group_transport.py
|
|
64
96
|
tests/library/test_grouping_numeric_validation.py
|
|
97
|
+
tests/library/test_long_event_lifecycle.py
|
|
98
|
+
tests/library/test_metadata_observation.py
|
|
99
|
+
tests/library/test_native_status_aliases.py
|
|
100
|
+
tests/library/test_native_status_decoding.py
|
|
101
|
+
tests/library/test_native_status_report_preparation.py
|
|
65
102
|
tests/library/test_playback_failure_recovery.py
|
|
66
103
|
tests/library/test_portable_policies.py
|
|
67
104
|
tests/library/test_published_authentication.py
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Quick start
|
|
2
|
+
|
|
3
|
+
Use the matching PyLoxone audio adapter and PyLoxone-Audio 0.2.0 together. Installing the library alone does not replace Home Assistant component files or browser resources.
|
|
4
|
+
|
|
5
|
+
1. Check the exact host base and communication API requirements in [the adapter guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md). Stock API 0.6.1 does not implement the required guarded-send interface.
|
|
6
|
+
2. Back up Home Assistant and the complete existing component before installation or upgrade; follow [update and recovery](UPDATING.md).
|
|
7
|
+
3. In the existing Loxone entry's options, set **Audioserver host**, enable **Use Audio Server player play/pause (experimental; off by default)** and save. Diagnostics are optional.
|
|
8
|
+
4. Open a room player or **Audioserver Management**. See [players and groups](USER-GUIDE.md).
|
|
9
|
+
|
|
10
|
+
A nested preview directory is not a HACS repository. Use a version-bound integration installer, not an arbitrary full-file overlay on a different host release.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# PyLoxone-Audio
|
|
2
|
+
|
|
3
|
+
Audio features for [PyLoxone](https://github.com/JoDehli/PyLoxone), using the music accounts already configured in Loxone and the existing Home Assistant room players. No second integration or separate audio login.
|
|
4
|
+
|
|
5
|
+
**Library 0.2.0** and **reference audio adapter 0.2.0** must be updated together. The upstream PyLoxone host version is a separate compatibility baseline. Installing the Python library alone does not replace the host integration or its frontend.
|
|
6
|
+
|
|
7
|
+
## What it adds
|
|
8
|
+
|
|
9
|
+
- Now-playing information, artwork, Browse and Search for supported Local Library, Spotify and radio sources.
|
|
10
|
+
- Playback, volume, source selection and supported seeking; Line-In mutes/unmutes instead of pausing external equipment.
|
|
11
|
+
- Temporary groups, saved presets, and playback controls for Config fixed groups without changing their membership.
|
|
12
|
+
- A group-named **Media Controls** view and **Audioserver Management**.
|
|
13
|
+
- Announcements to an explicitly selected speaker, dynamic group or Config fixed group.
|
|
14
|
+
- Version information and optional local diagnostic downloads.
|
|
15
|
+
|
|
16
|
+
## Required setup
|
|
17
|
+
|
|
18
|
+
Use a matching host adapter. In **Settings → Devices & services → Loxone**, open the existing entry's options:
|
|
19
|
+
|
|
20
|
+
1. Set **Audioserver host** to your Audio Server's hostname or IP address.
|
|
21
|
+
2. Enable **Use Audio Server player play/pause (experimental; off by default)** (`audioserver_playback`).
|
|
22
|
+
3. Save.
|
|
23
|
+
|
|
24
|
+
Despite its name, that option also enables browsing, source selection and return, supported seeking, Shuffle/Repeat, announcements and enhanced grouping. **Audio diagnostics** is separate and optional. Keep music accounts configured in Loxone; native Spotify does not require a separate Home Assistant Spotify login.
|
|
25
|
+
|
|
26
|
+
## Compatibility and installation
|
|
27
|
+
|
|
28
|
+
The reference adapter targets PyLoxone's extracted `pyloxone-api` architecture. It requires the guarded-send/observer API extension: unmodified `pyloxone-api==0.6.1` does not provide that interface. Do not replace the dependency with stock 0.6.1 or copy this adapter over an arbitrary host version. See the [version-bound adapter guide](https://github.com/davehocking/PyLoxone-Audio/blob/main/adapters/pyloxone/jo-review/README.md) for the exact host base and dependency requirements.
|
|
29
|
+
|
|
30
|
+
For standalone library development on Python 3.14 or newer:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
python -m pip install PyLoxone-Audio==0.2.0
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Home Assistant users should obtain the matching integration through its supported installation route rather than manually running pip in Home Assistant OS. A nested preview directory is not a HACS repository.
|
|
37
|
+
|
|
38
|
+
## Guides
|
|
39
|
+
|
|
40
|
+
- [Players and groups](https://github.com/davehocking/PyLoxone-Audio/blob/main/USER-GUIDE.md)
|
|
41
|
+
- [Groups and presets](https://github.com/davehocking/PyLoxone-Audio/blob/main/GROUPS.md)
|
|
42
|
+
- [Announcements and automations](https://github.com/davehocking/PyLoxone-Audio/blob/main/AUTOMATIONS.md)
|
|
43
|
+
- [Update and recovery](https://github.com/davehocking/PyLoxone-Audio/blob/main/UPDATING.md)
|
|
44
|
+
- [Local diagnostics](https://github.com/davehocking/PyLoxone-Audio/blob/main/DIAGNOSTICS.md)
|
|
45
|
+
- [Release notes](https://github.com/davehocking/PyLoxone-Audio/blob/main/RELEASE-NOTES-0.2.0.md)
|
|
46
|
+
|
|
47
|
+
## Limits
|
|
48
|
+
|
|
49
|
+
Source controls depend on the player's current state and advertised capability. Previous-source bookmarks are held in memory and may be lost on reload/restart; position return is best effort and does not reconstruct an entire queue. Fixed-group membership remains controlled by Loxone Config. Multiple supported announcement target types do not imply arbitrary concurrent announcements. A command acknowledgement is not acoustic confirmation in every room.
|
|
50
|
+
|
|
51
|
+
## Developers and credits
|
|
52
|
+
|
|
53
|
+
The Home Assistant-independent library owns Audio Server commands, events and source policies. The host adapter owns setup, entities and cleanup and supplies current authentication. See [API](https://github.com/davehocking/PyLoxone-Audio/blob/main/API.md) and [contribution/testing](https://github.com/davehocking/PyLoxone-Audio/blob/main/CONTRIBUTING-RELEASE.md).
|
|
54
|
+
|
|
55
|
+
Built on PyLoxone and its contributors' work. Thanks to Sebastian (@SebastianEitzert) for his contributions. Development is human-directed with LLM assistance. [Apache-2.0](https://github.com/davehocking/PyLoxone-Audio/blob/main/LICENSE); existing [notices](https://github.com/davehocking/PyLoxone-Audio/blob/main/NOTICE.md) are retained. The separate communication API retains its own licence.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# PyLoxone-Audio 0.2.0
|
|
2
|
+
|
|
3
|
+
Update the library and matching reference audio adapter together. Updating the library alone does not replace integration files or static resources.
|
|
4
|
+
|
|
5
|
+
This release adds explicit speaker/dynamic-group/Config-group announcement targets, source artwork, richer group management and presets, a Rooms & Speakers directory, group-scoped playback views and proportional volume for fixed groups. It retains authenticated warm command sessions and strengthens request ownership, metadata recovery and announcement observation handling.
|
|
6
|
+
|
|
7
|
+
Audioserver Management and native Group entrypoints use the bundled frontend. Registration follows initial setup, later Options changes and existing enabled entries. When upgrading an existing manually registered audio module, update both the early-module YAML and any existing dashboard resource to the same new URL, or remove the obsolete audio duplicate; preserve unrelated resources.
|
|
8
|
+
|
|
9
|
+
Required setup remains **Audioserver host** plus **Use Audio Server player play/pause (experimental; off by default)**. Diagnostics are optional. The current reference adapter requires the guarded-send/observer communication API interface; stock 0.6.1 is insufficient. Consult the matching adapter guide before installation.
|
|
10
|
+
|
|
11
|
+
Bookmarks remain process-local; complete provider queues are not reconstructed. Group target support does not add arbitrary concurrent announcements or promise acoustic synchronisation across servers.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Versions and audio diagnostics
|
|
2
|
+
|
|
3
|
+
Open **Audioserver Management → About PyLoxone-Audio** for version information and help with a problem. Opening About does not enable collection or operate your audio rooms.
|
|
4
|
+
|
|
5
|
+
## Collect a support ZIP
|
|
6
|
+
|
|
7
|
+
A Home Assistant administrator can:
|
|
8
|
+
|
|
9
|
+
1. Open **Enable diagnostics** in About. It opens the existing **Audio diagnostics** switch; turn it on deliberately.
|
|
10
|
+
2. Repeat the problem using your normal controls. No sound is recorded.
|
|
11
|
+
3. Reopen About, check the retained record range and choose **Download diagnostics (.zip)**.
|
|
12
|
+
4. Turn collection off with the same control when finished.
|
|
13
|
+
|
|
14
|
+
If there are no records, the download button is disabled: enable diagnostics and repeat the problem first. **Collection off does not prevent downloading earlier retained records.** First and last records are observations, not proof of uninterrupted coverage. The ZIP records known gaps, dropped events and export omissions.
|
|
15
|
+
|
|
16
|
+
The file stays on your device. Nothing is automatically uploaded. Inspect it before choosing where to share it.
|
|
17
|
+
|
|
18
|
+
## What the ZIP contains
|
|
19
|
+
|
|
20
|
+
- `diagnostics.json`: bounded state/error codes, timings and anonymous references used only within that export.
|
|
21
|
+
- `versions.json`: the backend-load version snapshot and build identity.
|
|
22
|
+
- `README.txt`: a short contents, coverage and omissions note.
|
|
23
|
+
|
|
24
|
+
It excludes usernames, credentials, tokens, IP addresses, unnecessary network/device/account identities, real room names, media titles and URLs, announcement text, raw household configuration and unrelated logs. Unknown fields and raw command routes are omitted. This is not a general Home Assistant diagnostic dump, and a command result does not prove physical playback.
|
|
25
|
+
|
|
26
|
+
## Understand the versions
|
|
27
|
+
|
|
28
|
+
About distinguishes installed package labels, loaded-code reports, the backend's captured build and the browser UI actually loaded. Open **Build details** for the full values. Labels can differ; package metadata alone does not prove which code is running. Missing values are shown as unavailable. **Copy version information** copies only those displayed version/build fields.
|
|
29
|
+
|
|
30
|
+
A browser/backend mismatch can mean cached UI; refresh the page normally. If an enhancement is incompatible, use the existing integration diagnostics and version information in Settings.
|
|
31
|
+
|
|
32
|
+
Diagnostics is optional and separate from the audio playback option in [setup](QUICKSTART.md). For a matching update or rollback, follow [Update and recover](UPDATING.md).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Update and recovery
|
|
2
|
+
|
|
3
|
+
Update **PyLoxone-Audio 0.2.0 and reference audio adapter 0.2.0 together**. Use the adapter matching the documented upstream host base and communication API interface. A package-manager upgrade alone does not replace component files or static resources.
|
|
4
|
+
|
|
5
|
+
1. Make a supported full Home Assistant backup, including configuration and the current custom integration. Keep the previous complete integration and matching dependencies.
|
|
6
|
+
2. Stop Home Assistant through its supported administration route before replacing integration files. Install the complete matching component instead of stock PyLoxone, not alongside it. Do not overwrite an unrecognised customised tree; reconcile your changes offline first.
|
|
7
|
+
3. Let Home Assistant resolve the integration's declared dependencies through its supported route. Do not substitute unmodified API 0.6.1 for the required guarded-send interface.
|
|
8
|
+
4. Start Home Assistant, check configuration/errors and confirm existing entities, settings and presets. Refresh the browser.
|
|
9
|
+
5. If an early-module YAML entry and dashboard resource both register the audio module, update both to the same new URL or remove the obsolete audio duplicate, preserving unrelated resources.
|
|
10
|
+
|
|
11
|
+
For rollback, restore the complete previous component and its matching dependencies. Entry migration to version 5 can remove stored passwords; returning to PyLoxone 0.10.2 or earlier also requires restoring the pre-update configuration backup. Component-file rollback alone is not configuration recovery.
|
|
12
|
+
|
|
13
|
+
The reference is version-bound, not an evergreen overlay. Ordinary upstream updates can replace preview files. See the matching adapter guide before migrating to an upstream release.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Using PyLoxone audio
|
|
2
|
+
|
|
3
|
+
Complete the [required setup](README.md#required-setup), then use the existing room media players. Open Browse for supported music sources. Available playback and seek controls depend on the source and current state; Line-In controls mute/unmute, not the external player.
|
|
4
|
+
|
|
5
|
+
Open **Audioserver Management** for Rooms & Speakers, deployed groups and saved presets. **Media Controls** on a group opens that group's playback view; room controls stay room-scoped. Config groups show **Membership locked** because only Loxone Config changes their membership; playback and volume remain available.
|
|
6
|
+
|
|
7
|
+
See [groups and presets](GROUPS.md) for volume behaviour, [announcements](AUTOMATIONS.md) for explicit targets and [local diagnostics](DIAGNOSTICS.md) when reporting a problem.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Concrete PyLoxone-Audio API, independent of Home Assistant.
|
|
3
3
|
|
|
4
|
-
Apache-2.0. Version 0.
|
|
4
|
+
Apache-2.0. Version 0.2.0.
|
|
5
5
|
The historical fake-backed facade contract is outside this distribution.
|
|
6
6
|
"""
|
|
7
|
-
__version__ = "0.
|
|
7
|
+
__version__ = "0.2.0"
|
|
8
8
|
|
|
9
9
|
from .announcement import async_send_prepared_announcement
|
|
10
10
|
from .catalogue import AudioCatalogue, CatalogueTarget, ConfiguredSource
|
|
@@ -49,10 +49,10 @@ async def async_send_prepared_announcement( # noqa: PLR0913, PLR0915
|
|
|
49
49
|
if not finished.done():
|
|
50
50
|
finished.cancel()
|
|
51
51
|
|
|
52
|
-
def updated() -> None:
|
|
52
|
+
def updated(snapshot) -> None:
|
|
53
53
|
nonlocal started, completed
|
|
54
|
-
|
|
55
|
-
if snapshot is None:
|
|
54
|
+
# A received bare row breaks continuity; quiet age-out does not.
|
|
55
|
+
if snapshot is None or not snapshot.has_observation:
|
|
56
56
|
failed("Announcement event stream was lost; playback may have occurred; no replay was sent")
|
|
57
57
|
return
|
|
58
58
|
try:
|
|
@@ -80,7 +80,7 @@ async def async_send_prepared_announcement( # noqa: PLR0913, PLR0915
|
|
|
80
80
|
nonlocal dispatched
|
|
81
81
|
dispatched = True
|
|
82
82
|
|
|
83
|
-
remove = metadata.
|
|
83
|
+
remove = metadata.async_add_observer(player_id, updated)
|
|
84
84
|
fences[player_id] = release
|
|
85
85
|
try:
|
|
86
86
|
if not is_current():
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Pure validation only: no topology, network, ownership or report policy."""
|
|
2
|
+
from dataclasses import dataclass
|
|
3
|
+
from math import isfinite
|
|
4
|
+
|
|
5
|
+
@dataclass(frozen=True)
|
|
6
|
+
class AnnouncementOptions:
|
|
7
|
+
kind: str
|
|
8
|
+
explicit: bool
|
|
9
|
+
volume_percent: int
|
|
10
|
+
|
|
11
|
+
def normalize_announcement_options(extra, current_volume):
|
|
12
|
+
if extra is None:
|
|
13
|
+
extra = {}
|
|
14
|
+
if type(extra) is not dict:
|
|
15
|
+
raise ValueError("Invalid announcement options")
|
|
16
|
+
explicit = 'announcement_target' in extra
|
|
17
|
+
kind = extra.get('announcement_target', 'speaker')
|
|
18
|
+
if type(kind) is not str or kind not in ('speaker', 'dynamic_group', 'fixed_group'):
|
|
19
|
+
raise ValueError("Invalid announcement target")
|
|
20
|
+
if explicit and 'daily_report_group' in extra:
|
|
21
|
+
raise ValueError("Conflicting announcement policy")
|
|
22
|
+
if 'volume' in extra:
|
|
23
|
+
volume = extra['volume']
|
|
24
|
+
elif kind == 'speaker':
|
|
25
|
+
volume = current_volume
|
|
26
|
+
else:
|
|
27
|
+
raise ValueError("Explicit group volume required")
|
|
28
|
+
if type(volume) not in (int, float) or not 0 <= volume <= 1 or not isfinite(volume):
|
|
29
|
+
raise ValueError("Invalid announcement volume")
|
|
30
|
+
return AnnouncementOptions(kind, explicit, int(volume * 100))
|
|
31
|
+
|
|
32
|
+
def validate_announcement_members(members, *, singleton=False):
|
|
33
|
+
if type(members) not in (list, tuple) or not 1 <= len(members) <= 256 or singleton and len(members) != 1:
|
|
34
|
+
raise ValueError("Invalid announcement members")
|
|
35
|
+
seen = set()
|
|
36
|
+
result = []
|
|
37
|
+
for player in members:
|
|
38
|
+
if type(player) is not int or not 1 <= player <= 2147483647 or player in seen:
|
|
39
|
+
raise ValueError("Invalid announcement members")
|
|
40
|
+
seen.add(player)
|
|
41
|
+
result.append(player)
|
|
42
|
+
return tuple(result)
|