home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.48k stars 30.7k forks source link

I've "bridged" my seperate entities, but still got an error that I didn't in the log #113676

Closed HuisAutomatisering closed 4 months ago

HuisAutomatisering commented 7 months ago

The problem

The log sayd that I needed to create separate bridges for some entities. The documentation what not 100% clear how that should look like. So with trial and error i seem to have found out to create 4 bridges that are being accepted by home kit. But now I still got the error in the log! It still says:

Logger: homeassistant.components.homekit
Source: components/homekit/__init__.py:707
integration: HomeKit Bridge (documentation, issues)
First occurred: 12:02:54 (3 occurrences)
Last logged: 12:02:54

The bridge Panasonic TV has entity media_player.panasonic_tv_beneden. For best performance, and to prevent unexpected unavailability, create and pair a separate HomeKit instance in accessory mode for this entity
The bridge Denon AVR has entity media_player.denon_avr. For best performance, and to prevent unexpected unavailability, create and pair a separate HomeKit instance in accessory mode for this entity
The bridge Camera parkeerplaats has entity camera.parkeerplaats. For best performance, and to prevent unexpected unavailability, create and pair a separate HomeKit instance in accessory mode for this entity

What version of Home Assistant Core has the issue?

2024.3.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

HomeKit Bridge

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit/

Diagnostics information

No response

Example YAML snippet

homekit:
  - filter:
      include_entities:
        - light.badkamer
        - person.mammie
        - person.pappie
        - person.gasten
        - input_boolean.automation_override
        - input_boolean.homekit_beweging_achter
        - input_boolean.homekit_beweging_zij
        - media_player.tascam_bd_mp4k
        - media_player.slaapkamer
        - switch.espresso_volautomaat_power
        - switch.oven_power
        - switch.vaatwasser_power
        - vacuum.roomba976
        - fan.nrg_itho_c1f4_fan
        - sensor.ac3829_pm2_5
        - alarm_control_panel.intrusion_detection_system
    entity_config:
      alarm_control_panel.intrusion_detection_system:
        code: 6666
      light.badkamer:
        name: Badkamerlicht
      media_player.tascam_bd_mp4k:
        feature_list:
          - feature: on_off
  - name: Panasonic TV
    port: 21065
    filter:
      include_entities:
        - media_player.panasonic_tv_beneden
    entity_config:
      media_player.panasonic_tv_beneden:
        feature_list:
          - feature: on_off
          - feature: play_pause
          - feature: play_stop
          - feature: toggle_mute
  - name: Denon AVR
    port: 21066
    filter:
      include_entities:
        - media_player.denon_avr
    entity_config:
      media_player.denon_avr:
        feature_list:
          - feature: on_off
  - name: Camera parkeerplaats
    port: 21067
    filter:
      include_entities:
        - camera.parkeerplaats
    entity_config:
      camera.parkeerplaats:
        support_audio: false
        linked_motion_sensor: binary_sensor.hikvision_ds_2cd2686g2_izs_motion_alarm
        max_width: 3840
        max_height: 2160
        max_fps: 25
        video_codec: copy

### Anything in the logs that might be useful for us?

```txt
Logger: homeassistant
Source: components/apple_tv/media_player.py:162
First occurred: 12:04:48 (2 occurrences)
Last logged: 12:04:49

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/apple_tv/media_player.py", line 162, in _update_app_list
    apps = await self.atv.apps.app_list()
                 ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyatv/support/shield.py", line 71, in _guard_method
    raise BlockedStateError(f"{func.__name__} is blocked")
pyatv.exceptions.BlockedStateError: apps is blocked
Logger: homeassistant
Source: components/media_player/__init__.py:1001
First occurred: 12:02:31 (1 occurrences)
Last logged: 12:02:31

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 963, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1113, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1052, in __async_calculate_state
    attr.update(self.state_attributes or {})
                ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1111, in state_attributes
    if self.support_grouping:
       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1001, in support_grouping
    return MediaPlayerEntityFeature.GROUPING in self.supported_features_compat
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/enum.py", line 1499, in __contains__
    raise TypeError(
TypeError: unsupported operand type(s) for 'in': 'MediaPlayerEntityFeature' and 'RemoteEntityFeature'


### Additional information

Running on RPi400
home-assistant[bot] commented 7 months ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `homekit` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign homekit` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


homekit documentation homekit source (message by IssueLinks)

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.