在HA官网了论坛里搜了一圈,发现也有人问类似的问题。虽然最终也没得出结论,但是关闭Homekit的自启动,并且加入下列自动化,以确保在所有模块都启动后再启动homekit可以解决问题。
# Example checking specific entities to be available before start
homekit:
auto_start: False
automation:
- alias: 'Start HomeKit'
trigger:
- platform: homeassistant
event: start
action:
- wait_template: >-
{% if not states.light.kitchen_lights %}
false
{% elif not states.sensor.outside_temperature %}
false
# Repeat for every entity
{% else %}
true
{% endif %}
timeout: 00:15 # Waits 15 minutes
continue_on_timeout: false
- service: homekit.start
|