core: 0.104.0b0 - homekit fails to start
Home Assistant release with the issue:
0.104.0b0
Last working Home Assistant release (if known): 0 103.6
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Integration:
homekit
Description of problem: homekit fails to start
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
homekit:
auto_start: false
filter:
include_domains:
- climate
- light
- switch
Traceback (if applicable):
2020-01-09 23:20:00 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.start_homekit. Unknown error for call_service at pos 1:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 449, in action
await script_obj.async_run(variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 189, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 272, in _handle_action
await self._actions[_determine_action(action)](action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 354, in _async_call_service
context=context,
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 96, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context
File "/usr/src/homeassistant/homeassistant/core.py", line 1226, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in _execute_service
await self._hass.async_add_executor_job(handler.func, service_call)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/homekit/__init__.py", line 167, in handle_homekit_service_start
homekit.start()
File "/usr/src/homeassistant/homeassistant/components/homekit/__init__.py", line 378, in start
self.add_bridge_accessory(state)
File "/usr/src/homeassistant/homeassistant/components/homekit/__init__.py", line 348, in add_bridge_accessory
acc = get_accessory(self.hass, self.driver, state, aid, conf)
File "/usr/src/homeassistant/homeassistant/components/homekit/__init__.py", line 264, in get_accessory
return TYPES[a_type](hass, driver, name, state.entity_id, aid, config)
File "/usr/src/homeassistant/homeassistant/components/homekit/type_lights.py", line 69, in __init__
if self._features & SUPPORT_BRIGHTNESS:
TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
Additional information:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (20 by maintainers)
I’ve spent almost 2 hours now trying to reproduce this issue, which I was not able to. I’ve tested with both WLED & Hue, and was not able to break.
And all kinds of other weird timing things (like connecting WLED during startup). I could not get it to throw anything. So that is a good thing.
I did find some other things, but not related to this specific issue.