Homekit broken on latest update

My TV was showing up as a media player on the iOS home app, and it stopped working with a recent update.

The TV shows up, without any of the input sources available, and the sources show up as switched outside of the TV Controls. It also shows up as being turned on, when it’s not, and won’t turn on.

Were there any breaking changes? I read the changelog but it seemed that homekit only got some bug fixes and stability improvements.

My HomeKit configuration is just the following:

filter:
  include_domains:
    - media_player
    - light
    - sensor
    - switch
    - webostv
  # include_entities:
  #   - light.hue
  exclude_entities:
    - switch.bed_light
entity_config:
  media_player.living_room_tv:
    feature_list:
      - feature: on_off
      - feature: play_pause
      - feature: play_stop
      - feature: toggle_mute

And webostv.yaml has this:

host: 192.168.1.11
name: Living Room TV
turn_on_action:
  service: wake_on_lan.send_magic_packet
  data:
    mac: "XX:XX:XX:XX:XX:XX" # wired
customize:
  sources:
    - Plex
    - Spotify Music - Listen free on LG TV
    - YouTube
    - HDMI 1
    - Photo & Video

If you are having trouble with a specific accessory, please try the homekit.reset_accessory service.

1 Like

Just tried the reset, but still nothing. As far as I can tell I’m the only one with the issue, so it may be something in my setup.

If you have any iOS 12 devices, try signing them out of iCloud as this can sometimes cause problems with the tv media players.

Homekit breaks on every HA update and most times when HA is restarted.
All entities show ‘No response’.

I have not made any changes to IGMP, whatever that is. Can’t find it on my router.

homekit.reset_accessory has no effect.

Having to reinstall every time and go through 60+ devices is a pain. I can’t assign rooms and automations every time Homekit decides to stop.

Do you have any errors in your logs?

Have you tried enabling debug logging?

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

Let me try installing adding logger

Lots of Homekit related entries all INFO & DEBUG.

They seem mostly setting up of Homekit accessories. These are some extracts:

2020-07-09 17:50:14 INFO (MainThread) [homeassistant.setup] Setting up homekit
2020-07-09 17:50:15 INFO (MainThread) [homeassistant.setup] Setting up ios
2020-07-09 17:50:15 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {'installation_type': 'Home Assistant OS', 'version': '0.112.4', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.7.7', 'docker': True, 'arch': 'armv7l', 'timezone': 'Europe/Malta', 'os_name': 'Linux', 'os_version': '3.11.6', 'supervisor': '228', 'host_os': 'HassOS 4.11', 'chassis': 'embedded', 'docker_version': '19.03.8', 'distribution': 'alpine', 'huuid': '179f31399d9b404cab930366e52f7959'}
2020-07-09 17:50:15 INFO (MainThread) [homeassistant.setup] Setup of domain homekit took 0.1 seconds.
2020-07-09 17:50:15 INFO (MainThread) [homeassistant.setup] Setting up cast
2020-07-09 17:50:15 DEBUG (MainThread) [homeassistant.components.homekit] Begin setup HomeKit for HASS Bridge 571V
2020-07-09 17:50:25 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Name to HASS Bridge 571V
2020-07-09 17:50:25 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: SerialNumber to default
2020-07-09 17:50:25 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: FirmwareRevision to 0.112.4
2020-07-09 17:50:25 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Manufacturer to Home Assistant
2020-07-09 17:50:25 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: Model to Bridge
2020-07-09 17:50:25 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: SerialNumber to homekit.bridge
2020-07-09 17:52:25 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=closing; current_position=80, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:25.570207+02:00>
2020-07-09 17:52:25 DEBUG (MainThread) [pyhap.characteristic] set_value: PositionState to 0
2020-07-09 17:52:26 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=open; current_position=79, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:26.134471+02:00>
2020-07-09 17:52:26 DEBUG (MainThread) [pyhap.characteristic] set_value: CurrentPosition to 79
2020-07-09 17:52:26 DEBUG (MainThread) [pyhap.characteristic] set_value: TargetPosition to 79
2020-07-09 17:52:26 DEBUG (MainThread) [pyhap.characteristic] set_value: PositionState to 2
2020-07-09 17:52:26 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=opening; current_position=79, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:26.558866+02:00>
2020-07-09 17:52:26 DEBUG (MainThread) [pyhap.characteristic] set_value: PositionState to 1
2020-07-09 17:52:27 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=opening; current_position=83, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:26.558866+02:00>
2020-07-09 17:52:27 DEBUG (MainThread) [pyhap.characteristic] set_value: CurrentPosition to 83
2020-07-09 17:52:27 DEBUG (MainThread) [pyhap.characteristic] set_value: TargetPosition to 83
2020-07-09 17:52:28 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=opening; current_position=87, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:26.558866+02:00>
2020-07-09 17:52:28 DEBUG (MainThread) [pyhap.characteristic] set_value: CurrentPosition to 87
2020-07-09 17:52:28 DEBUG (MainThread) [pyhap.characteristic] set_value: TargetPosition to 87
2020-07-09 17:52:29 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=opening; current_position=91, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:26.558866+02:00>
2020-07-09 17:52:29 DEBUG (MainThread) [pyhap.characteristic] set_value: CurrentPosition to 91
2020-07-09 17:52:29 DEBUG (MainThread) [pyhap.characteristic] set_value: TargetPosition to 91
2020-07-09 17:52:30 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=opening; current_position=95, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:26.558866+02:00>
2020-07-09 17:52:30 DEBUG (MainThread) [pyhap.characteristic] set_value: CurrentPosition to 95
2020-07-09 17:52:30 DEBUG (MainThread) [pyhap.characteristic] set_value: TargetPosition to 95
2020-07-09 17:52:31 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=opening; current_position=99, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:26.558866+02:00>
2020-07-09 17:52:31 DEBUG (MainThread) [pyhap.characteristic] set_value: CurrentPosition to 99
2020-07-09 17:52:31 DEBUG (MainThread) [pyhap.characteristic] set_value: TargetPosition to 99
2020-07-09 17:52:32 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state cover.kitchen_shutter=open; current_position=100, friendly_name=Kitchen, assumed_state=True, supported_features=15, device_class=shutter, homebridge_name=Kitchen, homebridge_cover_type=rollershutter @ 2020-07-09T17:52:32.222484+02:00>
2020-07-09 17:52:32 DEBUG (MainThread) [pyhap.characteristic] set_value: CurrentPosition to 100
2020-07-09 17:52:32 DEBUG (MainThread) [pyhap.characteristic] set_value: TargetPosition to 100
2020-07-09 17:52:32 DEBUG (MainThread) [pyhap.characteristic] set_value: PositionState to 2

Nothing stands out in the log. Would you please open an issue with the full log.