I’m trying to add my android TV remote instance into HomeKit and cannot get it to add successfully.
The remote works great within HA so I know there is no issue there.
I’ve tried adding it in the UI by creating a new configuration, including remote instance and using as accessory. When I do this, it creates a phantom bridge and a separate accessory instance for the android TV device (chromecast) but it says configuration fails.
I tried adding it via YAML and get the same error as I did when trying to create the remote accessory via UI:
Logger: homeassistant
Source: components/homekit/type_remotes.py:150
First occurred: 2:05:49 PM (1 occurrences)
Last logged: 2:05:49 PM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/homekit/__init__.py", line 793, in async_start
if not await self._async_create_accessories():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homekit/__init__.py", line 977, in _async_create_accessories
acc = self._async_create_single_accessory(entity_states)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homekit/__init__.py", line 906, in _async_create_single_accessory
acc = get_accessory(self.hass, self.driver, state, STANDALONE_AID, conf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homekit/accessories.py", line 259, in get_accessory
return TYPES[a_type](hass, driver, name, state.entity_id, aid, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homekit/type_remotes.py", line 223, in __init__
super().__init__(
File "/usr/src/homeassistant/homeassistant/components/homekit/type_remotes.py", line 101, in __init__
sources = self._get_ordered_source_list_from_state(state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homekit/type_remotes.py", line 162, in _get_ordered_source_list_from_state
return list(self._get_mapped_sources(state))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homekit/type_remotes.py", line 150, in _get_mapped_sources
self._mapped_sources = {
^
TypeError: 'NoneType' object is not iterable
My YAML code is:
Homekit.yaml:
- name: ChromecastTest
port: 21611
mode: accessory
filter:
include_entities:
- remote.chromecast
Any suggestions?
Thanks!