Repository navigation
Audio support, phase 1: claim and capture Audio (205) and Media Transport (192) lines - #181
Merged
Merged
Conversation
Capture only matched a network/application/group triple. Clock, Audio
and Media Transport address the application itself, so their lines
(for example "audio mute //BOARD/254/205 1 2 7") never matched and
cbus_raw_event_log_apps captured nothing for them. Fall back to the
network/application pair and publish to cbus/read/{net}/{app}/raw.
Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
Audio (205) and Media Transport (192) lines have a two-segment address, so CBusEvent warned "Could not parse event line" for every one, and the #-prefixed form was dropped as a comment before capture could see it. Claim both in a small handler that routes them to raw capture and logs a single INFO hint on how to capture. Nothing is decoded: the manual does not say what the zone function codes mean and there are no real captures yet, so a decoder would be a guess. Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
Records what the C-Gate manual says about Audio and Media Transport, what is still unknown, and how a tester captures the traffic. Also notes that Home Assistant has no MQTT media_player platform, which shapes what the issue's "media players" request can become. Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
Audio and Media Transport lines are captured instead of rejected as unreadable, so a tester can record real traffic for the decoder. Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First step of audio support for #172, released as 1.40.6. This change decodes nothing and adds no Home Assistant entities. It makes the traffic visible so the decoder can be built from real captures instead of guesses.
Problem
Audio (205) and Media Transport (192) event lines have a two-segment address (
//PROJ/254/205, no group). Before this change:CBusEventfails on every one and logs "Could not parse event line".#/#s#-prefixed form is dropped as a comment.cbus_raw_event_log_appscannot capture them, because capture requires a net/app/group triple. A tester has no way to produce the data a decoder needs.Changes
rawEventCapture: fall back to a net/app pair when a line has no group. Published tocbus/read/{net}/{app}/raw.AudioEventHandler: claimsaudioandmediatransportlines (including#/#s#/#e#prefixes), routes them to raw capture, and logs one INFO hint per application on how to capture.docs/AUDIO_INVESTIGATION.md: what the C-Gate manual gives us, what is unknown, tester capture steps, and the plan.Why no decoder yet
The manual lists command names and argument ranges but not what the zone function
codemeans (volume?), how feed numbers map to source names, or which events a real amp emits. A guessed decoder is the failure mode the HVAC work hit. Unknown semantics fail closed.Finding for the issue
Home Assistant's MQTT integration has no
media_playerdiscovery platform, so the "media players" request cannot be met through MQTT Discovery. The investigation doc proposesswitch/select/number/buttonentities once the protocol is confirmed.Testing
npm test(3436 passing),npm run lint,npm run typecheck,validate:translations,validate:addon-config,validate:changelog.