『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 2124|回复: 1

[求助] 请教各位大神,小米网关的关联子设备显示异常

[复制链接]

1

主题

8

帖子

70

积分

注册会员

Rank: 2

积分
70
金钱
62
HASS币
0
发表于 2018-6-11 15:08:16 | 显示全部楼层 |阅读模式
我的配置:
xiaomi_aqara:
   gateways:
       - mac: 7C49EB******
          key: 5mp1vtq2sfcbgaa1
          host: '192.168.0.107'


捕获.PNG

查看启动信息,可以找到小米网关,但关联子设备初始化有问题。问题是,我在配置文件configuration.yaml中,没有配置关联子设备。

还请各位大神解惑,感激不尽。

Microsoft Windows [版本 10.0.16299.334]
(c) 2017 Microsoft Corporation。保留所有权利。


Config directory: C:\Users\lyp\AppData\Roaming\.homeassistant
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=toggle>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=restart>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=check_config>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=reload_core_config>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=create>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=dismiss>
2018-06-11 15:01:54 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded introduction from homeassistant.components.introduction
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setting up introduction
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.components.introduction]

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        Hello, and welcome to Home Assistant!

        We'll hope that we can make all your dreams come true.

        Here are some resources to get started:

         - Configuring Home Assistant:
           https://home-assistant.io/getting-started/configuration/

         - Available components:
           https://home-assistant.io/components/

         - Troubleshooting your configuration:
           https://home-assistant.io/gettin ... ting-configuration/

         - Getting help:
           https://home-assistant.io/help/

        This message is generated by the introduction component. You can
        disable it in configuration.yaml.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=introduction>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Welcome Home!, message=
Here are some resources to get started:

- [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
- [Available components](https://home-assistant.io/components/)
- [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
- [Getting help](https://home-assistant.io/help/)

To not see this card popup in the future, edit your config in
`configuration.yaml` and disable the `introduction` component.
, service_call_id=50530096-1>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.notification, old_state=None, new_state=<state persistent_notification.notification=notifying; title=Welcome Home!, message=Here are some resources to get started:

- [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
- [Available components](https://home-assistant.io/components/)
- [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
- [Getting help](https://home-assistant.io/help/)

To not see this card popup in the future, edit your config in
`configuration.yaml` and disable the `introduction` component. @ 2018-06-11T15:01:55.543645+08:00>>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=50530096-1>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setting up http
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=http>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setting up api
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=websocket_api>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setting up system_log
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=system_log, service=clear>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=system_log, service=write>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=system_log>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=api>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setting up recorder
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=recorder, service=purge>
2018-06-11 15:01:55 INFO (MainThread) [homeassistant.setup] Setting up frontend
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.3 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=frontend>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.8 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=recorder>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up history
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=history>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded xiaomi_aqara from homeassistant.components.xiaomi_aqara
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded updater from homeassistant.components.updater
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded sun from homeassistant.components.sun
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up sun
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=sun>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded automation from homeassistant.components.automation
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded group from homeassistant.components.group
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded tts from homeassistant.components.tts
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded tts.google from homeassistant.components.tts.google
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config from homeassistant.components.config
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up group
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=reload>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=set>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=remove>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=set_visibility>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=group>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded map from homeassistant.components.map
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up map
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=map>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded script from homeassistant.components.script
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=None, new_state=<state sun.sun=above_horizon; next_dawn=2018-06-11T21:15:31+00:00, next_dusk=2018-06-11T11:37:39+00:00, next_midnight=2018-06-11T16:26:48+00:00, next_noon=2018-06-12T04:26:45+00:00, next_rising=2018-06-11T21:40:44+00:00, next_setting=2018-06-11T11:12:27+00:00, elevation=54.42, azimuth=277.85, friendly_name=Sun @ 2018-06-11T15:01:56.654378+08:00>>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up xiaomi_aqara
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up logbook
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up automation
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=trigger>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=reload>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=toggle>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=turn_on>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=turn_off>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=automation>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up conversation
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=conversation, service=process>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=conversation>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up config
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up script
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=script, service=reload>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=script, service=turn_on>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=script, service=turn_off>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=script, service=toggle>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=script>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=logbook, service=log>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config.group from homeassistant.components.config.group
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.group>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config.automation from homeassistant.components.config.automation
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.automation>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config.config_entries from homeassistant.components.config.config_entries
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config.entity_registry from homeassistant.components.config.entity_registry
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.entity_registry>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config.customize from homeassistant.components.config.customize
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.customize>
2018-06-11 15:01:56 INFO (SyncWorker_0) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 1)
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config.script from homeassistant.components.config.script
2018-06-11 15:01:56 INFO (SyncWorker_0) [xiaomi_gateway] Xiaomi Gateway 7c49eb18e374 configured at IP 192.168.0.107:9898
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.script>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config.core from homeassistant.components.config.core
2018-06-11 15:01:56 INFO (SyncWorker_0) [xiaomi_gateway] Discovering Xiaomi Devices
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.core>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.loader] Loaded config.hassbian from homeassistant.components.config.hassbian
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.1 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=logbook>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up updater
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=updater>
2018-06-11 15:01:56 INFO (SyncWorker_0) [xiaomi_gateway] Found 1 devices
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up tts
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setting up cloud
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=cloud>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.config_entries>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.3 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=tts, service=google_say>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=tts, service=clear_cache>
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.2 seconds.
2018-06-11 15:01:56 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=tts>
2018-06-11 15:02:01 INFO (SyncWorker_0) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2018-06-11 15:02:01 INFO (SyncWorker_0) [xiaomi_gateway] Creating Multicast Socket
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.loader] Loaded binary_sensor from custom_components.binary_sensor
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2018-06-11 15:02:01 ERROR (MainThread) [homeassistant.setup] Error during setup of component binary_sensor
Traceback (most recent call last):
  File "c:\users\lyp\appdata\local\programs\python\python37-32\lib\site-packages\homeassistant\setup.py", line 146, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
AttributeError: module 'custom_components.binary_sensor' has no attribute 'setup'
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)

Please check your config., notification_id=invalid_config, service_call_id=50530096-2>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.loader] Loaded sensor from custom_components.sensor
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.setup] Setting up sensor
2018-06-11 15:02:01 ERROR (MainThread) [homeassistant.setup] Error during setup of component sensor
Traceback (most recent call last):
  File "c:\users\lyp\appdata\local\programs\python\python37-32\lib\site-packages\homeassistant\setup.py", line 146, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
AttributeError: module 'custom_components.sensor' has no attribute 'setup'
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=xiaomi_aqara, service=play_ringtone>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)

Please check your config. @ 2018-06-11T15:02:01.816679+08:00>>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=50530096-2>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)
- [sensor](https://home-assistant.io/components/sensor/)

Please check your config., notification_id=invalid_config, service_call_id=50530096-3>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.loader] Loaded switch from custom_components.switch
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.setup] Setting up switch
2018-06-11 15:02:01 ERROR (MainThread) [homeassistant.setup] Error during setup of component switch
Traceback (most recent call last):
  File "c:\users\lyp\appdata\local\programs\python\python37-32\lib\site-packages\homeassistant\setup.py", line 146, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
AttributeError: module 'custom_components.switch' has no attribute 'setup'
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.loader] Loaded light from custom_components.light
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.setup] Setting up light
2018-06-11 15:02:01 ERROR (MainThread) [homeassistant.setup] Error during setup of component light
Traceback (most recent call last):
  File "c:\users\lyp\appdata\local\programs\python\python37-32\lib\site-packages\homeassistant\setup.py", line 146, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
AttributeError: module 'custom_components.light' has no attribute 'setup'
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.loader] Loaded cover from homeassistant.components.cover
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=xiaomi_aqara, service=stop_ringtone>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)

Please check your config. @ 2018-06-11T15:02:01.816679+08:00>, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)
- [sensor](https://home-assistant.io/components/sensor/)

Please check your config. @ 2018-06-11T15:02:01.816679+08:00>>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=50530096-3>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)
- [sensor](https://home-assistant.io/components/sensor/)
- [switch](https://home-assistant.io/components/switch/)

Please check your config., notification_id=invalid_config, service_call_id=50530096-4>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)
- [sensor](https://home-assistant.io/components/sensor/)
- [switch](https://home-assistant.io/components/switch/)
- [light](https://home-assistant.io/components/light/)

Please check your config., notification_id=invalid_config, service_call_id=50530096-5>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=xiaomi_aqara, service=add_device>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)
- [sensor](https://home-assistant.io/components/sensor/)

Please check your config. @ 2018-06-11T15:02:01.816679+08:00>, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)
- [sensor](https://home-assistant.io/components/sensor/)
- [switch](https://home-assistant.io/components/switch/)

Please check your config. @ 2018-06-11T15:02:01.816679+08:00>>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=50530096-4>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)
- [sensor](https://home-assistant.io/components/sensor/)
- [switch](https://home-assistant.io/components/switch/)

Please check your config. @ 2018-06-11T15:02:01.816679+08:00>, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

- [binary-sensor](https://home-assistant.io/components/binary_sensor/)
- [sensor](https://home-assistant.io/components/sensor/)
- [switch](https://home-assistant.io/components/switch/)
- [light](https://home-assistant.io/components/light/)

Please check your config. @ 2018-06-11T15:02:01.816679+08:00>>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=50530096-5>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=xiaomi_aqara, service=remove_device>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.setup] Setting up cover
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=cover, service=open_cover>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=cover, service=close_cover>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=cover, service=set_cover_position>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=cover, service=stop_cover>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=cover, service=open_cover_tilt>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=cover, service=close_cover_tilt>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=cover, service=stop_cover_tilt>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=cover, service=set_cover_tilt_position>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.0 seconds.
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=cover>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.cover, platform=xiaomi_aqara, discovered=>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.setup] Setup of domain xiaomi_aqara took 5.2 seconds.
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=xiaomi_aqara>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.loader] Loaded cover.xiaomi_aqara from homeassistant.components.cover.xiaomi_aqara
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.components.cover] Setting up cover.xiaomi_aqara
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 7.10s
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Starting Home Assistant core loop
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_start[L]>
2018-06-11 15:02:01 INFO (MainThread) [homeassistant.core] Timer:starting
2018-06-11 15:02:02 INFO (MainThread) [homeassistant.components.http.view] Serving / to 192.168.0.106 (auth: True)
2018-06-11 15:02:02 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.0.106 (auth: True)
2018-06-11 15:02:03 INFO (MainThread) [homeassistant.components.http.view] Serving /api/themes to 192.168.0.106 (auth: True)
2018-06-11 15:02:03 INFO (MainThread) [homeassistant.components.http.view] Serving /api/translations/zh-Hans to 192.168.0.106 (auth: True)
2018-06-11 15:02:03 INFO (MainThread) [homeassistant.loader] Loaded hue from homeassistant.components.hue
2018-06-11 15:02:03 INFO (MainThread) [homeassistant.loader] Loaded zone from homeassistant.components.zone
2018-06-11 15:02:03 INFO (MainThread) [homeassistant.loader] Loaded deconz from homeassistant.components.deconz
2018-06-11 15:02:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=<state sun.sun=above_horizon; next_dawn=2018-06-11T21:15:31+00:00, next_dusk=2018-06-11T11:37:39+00:00, next_midnight=2018-06-11T16:26:48+00:00, next_noon=2018-06-12T04:26:45+00:00, next_rising=2018-06-11T21:40:44+00:00, next_setting=2018-06-11T11:12:27+00:00, elevation=54.42, azimuth=277.85, friendly_name=Sun @ 2018-06-11T15:01:56.654378+08:00>, new_state=<state sun.sun=above_horizon; next_dawn=2018-06-11T21:15:31+00:00, next_dusk=2018-06-11T11:37:39+00:00, next_midnight=2018-06-11T16:26:48+00:00, next_noon=2018-06-12T04:26:45+00:00, next_rising=2018-06-11T21:40:44+00:00, next_setting=2018-06-11T11:12:27+00:00, elevation=54.29, azimuth=277.88, friendly_name=Sun @ 2018-06-11T15:01:56.654378+08:00>>
2018-06-11 15:03:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=<state sun.sun=above_horizon; next_dawn=2018-06-11T21:15:31+00:00, next_dusk=2018-06-11T11:37:39+00:00, next_midnight=2018-06-11T16:26:48+00:00, next_noon=2018-06-12T04:26:45+00:00, next_rising=2018-06-11T21:40:44+00:00, next_setting=2018-06-11T11:12:27+00:00, elevation=54.29, azimuth=277.88, friendly_name=Sun @ 2018-06-11T15:01:56.654378+08:00>, new_state=<state sun.sun=above_horizon; next_dawn=2018-06-11T21:15:31+00:00, next_dusk=2018-06-11T11:37:39+00:00, next_midnight=2018-06-11T16:26:48+00:00, next_noon=2018-06-12T04:26:45+00:00, next_rising=2018-06-11T21:40:44+00:00, next_setting=2018-06-11T11:12:27+00:00, elevation=54.06, azimuth=277.94, friendly_name=Sun @ 2018-06-11T15:01:56.654378+08:00>>
2018-06-11 15:04:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=<state sun.sun=above_horizon; next_dawn=2018-06-11T21:15:31+00:00, next_dusk=2018-06-11T11:37:39+00:00, next_midnight=2018-06-11T16:26:48+00:00, next_noon=2018-06-12T04:26:45+00:00, next_rising=2018-06-11T21:40:44+00:00, next_setting=2018-06-11T11:12:27+00:00, elevation=54.06, azimuth=277.94, friendly_name=Sun @ 2018-06-11T15:01:56.654378+08:00>, new_state=<state sun.sun=above_horizon; next_dawn=2018-06-11T21:15:31+00:00, next_dusk=2018-06-11T11:37:39+00:00, next_midnight=2018-06-11T16:26:48+00:00, next_noon=2018-06-12T04:26:45+00:00, next_rising=2018-06-11T21:40:44+00:00, next_setting=2018-06-11T11:12:27+00:00, elevation=53.84, azimuth=277.99, friendly_name=Sun @ 2018-06-11T15:01:56.654378+08:00>>


回复

使用道具 举报

1

主题

8

帖子

70

积分

注册会员

Rank: 2

积分
70
金钱
62
HASS币
0
 楼主| 发表于 2018-6-11 16:25:54 | 显示全部楼层
已经解决了,问题出在我在homeassistant目录下增加了一个custom_components目录,hass自动载入目录下的模块,把该目录删除即可。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-6-24 19:54 , Processed in 0.061571 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表