Push the TV's real state back to the phone
Done when
Unit tests show that a state change calls the right event on every connected protocol object and that a disconnected client is removed. The PR description says how it was verified on a real iPhone or Watch, or states clearly that it was only unit tested. No regression in tests/test_protocol.py.
Details
Today the bridge always tells the phone the TV is awake (SystemStatus/TVSystemStatus state 3) and advertises a fixed media-control flag. The iPhone and Watch already register for these events (see docs/PROTOCOL.md, 'Session'). Make them live: when the media_player turns on or off, push a SystemStatus and TVSystemStatus event with the matching state to every connected client (check pyatv's SystemStatus enum for the values); when volume or mute changes, push MediaControlStatus so the volume HUD is correct. Keep protocol.py free of Home Assistant imports: let controller.py call a small method on the protocol objects (the controller will need to keep a list of live connections). Remember events carry no `_x`.
What happened
In order. Text written by an agent is marked: read it as a hint.-
@lasharor Proposed the task