core: HomeKit TV Remote Widget Volume Control Not Working

The problem

Hello, I can’t control volume of the TV via the Remote widget on my iPhone using the side hardware buttons. All other controls visible on the screen are working and I was able to catch them via event homekit_tv_remote_key_pressed. But when I press the hardware volume buttons the event is not received nor the volume of entity is changed. I’m able to control the volume via media_player entity in Lovelace and also via service:

service: media_player.volume_up
target:
  entity_id: media_player.tv_obyvacka

I think the supported_features includes mandatory SUPPORT_VOLUME_MUTE, SUPPORT_VOLUME_SET and SUPPORT_VOLUME_STEP bits. Here is the TV entity info:

source_list: TV, HDMI, Plex, Kuki, YouTube
volume_level: 0.08
is_volume_muted: false
media_content_type: app
media_title: Plex
app_id: 3201512006963
source: Plex
ip_address: 192.168.2.111
device_class: tv
entity_picture: /api/media_player_proxy/media_player.tv_obyvacka?token=REDACTED&cache=REDACTED
icon: mdi:television
friendly_name: Obyvacka TV
supported_features: 24509
dwains_dashboard_popup: dwains-dashboard/addons/popups/media_player/obyvackaTv_popup.yaml

Below you can find my yaml configuration of the HomeKit Bridge in accessory mode.

I’ve enabled debug logging for HomeKit using below which I found here:

logger:
  default: warning
  logs:
    homeassistant.components.homekit: debug
    pyhap: debug

and below you can find the debug log. During the debugging I’ve done this in the Remote widget:

  • tap 5 times arrow_down on the screen
  • press 5 times volume_down
  • press 5 times volume_up
  • tap 5 times arrow_up on the screen

I don’t understant all from the logs but I think I can see there only five taps of arrow_down ({'characteristics': [{'aid': 1, 'iid': 15, 'value': 5}]}) and five taps of arrow_up ({'aid': 1, 'iid': 15, 'value': 4}), not the volume buttons presses between them.

Can you please help me with this?

Thanks a lot.

Regards, Pavol

What version of Home Assistant Core has the issue?

core-2021.12.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

homekit

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit/#cant-control-volume-of-your-tv-media-player

Example YAML snippet

homekit:
  - name: HA Bridge TVs
    mode: accessory
    port: 51828
    filter:
      include_entities:
        - media_player.tv_obyvacka
    entity_config:
      media_player.tv_obyvacka:
        feature_list:
          - feature: on_off
          - feature: play_pause
          - feature: play_stop
          - feature: toggle_mute

Anything in the logs that might be useful for us?

2021-12-29 21:53:40 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.138', 49463) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:40 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.138', 49463) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":5}]}'
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":5}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 5}]}
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 5 (original: 5) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:43 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 5
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":11,"value":1}]}'
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":11,"value":1}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 11, 'value': 1}]}
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.characteristic] client_update_value: Active to 1 (original: 1) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:43 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set switch state for "on_off" to 1
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:43 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":5}]}'
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":5}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 5}]}
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 5 (original: 5) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:44 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 5
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":5}]}'
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":5}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 5}]}
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 5 (original: 5) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:44 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 5
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:44 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":5}]}'
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":5}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 5}]}
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 5 (original: 5) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:45 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 5
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:45 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":5}]}'
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":5}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 5}]}
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 5 (original: 5) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:46 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 5
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:46 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":4}]}'
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":4}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 4}]}
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 4 (original: 4) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:52 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 4
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:52 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":4}]}'
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":4}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 4}]}
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 4 (original: 4) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:53 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 4
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":4}]}'
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":4}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 4}]}
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 4 (original: 4) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:53 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 4
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:53 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":4}]}'
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":4}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 4}]}
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 4 (original: 4) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:54 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 4
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Obyvacka\\032TV\\032D978C2._hap._tcp.local\r\nContent-Length: 50\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":1,"iid":15,"value":4}]}'
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: PAUSED
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Obyvacka\\032TV\\032D978C2._hap._tcp.local'), (b'content-length', b'50'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":1,"iid":15,"value":4}]}'), chunk_start=False, chunk_end=False)
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Request PUT for path '/characteristics': {'host': 'Obyvacka\\032TV\\032D978C2._hap._tcp.local', 'content-length': '50', 'content-type': 'application/hap+json'}
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.2.112', 61642): Set characteristics content: {'characteristics': [{'aid': 1, 'iid': 15, 'value': 4}]}
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.characteristic] client_update_value: RemoteKey to 4 (original: 4) from client: ('192.168.2.112', 61642)
2021-12-29 21:53:54 DEBUG (MainThread) [homeassistant.components.homekit.type_media_players] media_player.tv_obyvacka: Set remote key to 4
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-12-29 21:53:54 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.2.112', 61642) (509882e4-0903-4ac4-9f1b-e7828aaee1d2): h11 Event: NEED_DATA

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

EDIT: Of course, this morning, a HA reboot did not resolve like it has been for a few weeks. Even stranger is one of my TVs is working via iOS Remote widget volume control, but 2 others are not. Will continue to investigate.

Living Room TV diagnostics (this TV is not working) config_entry-homekit-f4419042382b1ae10fa90ddeeadd78c9.json.txt

Sofia TV diagnostics (working) config_entry-homekit-b5529fcffbfb8208a3f26f5e6638324a.json.txt

EDIT 2: Deleted the TV from Apple Home app, re-paired and is working for now.