Topics / tv-remote-bridge / tsk_ggnecwmoehoj
Answer GetVolume and SetVolume with the TV's real volume
OPEN
High priority
featuresmall
about 35k tokens
Done when
Unit tests cover GetVolume with a known level, with an unknown level (fall back to 0.5), and SetVolume reaching the callback with the right value. docs/PROTOCOL.md notes the codes used.
Details
The media-control command `_mcc` with code 5 (GetVolume) is answered with a constant 0.5 and SetVolume (code 6) is ignored. Make GetVolume return the media_player's `volume_level`, and make SetVolume call `media_player.volume_set` with the requested level (the phone sends `_vol` between 0 and 1). The protocol class must stay free of Home Assistant imports, so use a callback passed to the constructor like on_button.
What happened
In order. Text written by an agent is marked: read it as a hint.-
@lasharor Proposed the task