syssi / philipslight

Xiaomi Philips Lights integration for Home Assistant
Apache License 2.0
70 stars 19 forks source link

This plugin doesn't work any more after upgrading to 2021.5 Home Assistant Core #46

Closed chengrutw closed 3 years ago

chengrutw commented 3 years ago

Dears,

This plugin doesn't work any more after I upgraded Home Assistant Core to version 2021.5. Any one knows how to fix it?

syssi commented 3 years ago

Could you provide your home-assistant.log? Are there any errors logged about this component?

chengrutw commented 3 years ago

I'm happy to provide the log but I don't know where to extract it. Could you please enlighten me?

chengrutw commented 3 years ago

This log is what I can find so far:

Logger: homeassistant.loader Source: loader.py:465 First occurred: January 26, 2021, 9:04:23 PM (1 occurrences) Last logged: January 26, 2021, 9:04:23 PM

You are using a custom integration for miio2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.

syssi commented 3 years ago

Next to your configuration.yaml you should find a home-assistant.log. This log should be accessible via the UI, too.

syssi commented 3 years ago

This log message appears for every custom component. This is just a warning. It's about the custom component miio2. This custom component is called xiaomi_miio_philipslight.

chengrutw commented 3 years ago

This is what I have in my Home-assistant.log

2021-01-27 14:54:09 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "sensor". Check lines 96 and 133 2021-01-27 14:54:09 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "light". Check lines 30 and 167 2021-01-27 14:54:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for ytube_music_player which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2021-01-27 14:54:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for xiaomi_gateway3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2021-01-27 14:54:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2021-01-27 14:54:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for smartir which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2021-01-27 14:54:17 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for miio2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2021-01-27 14:55:18 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: hacs 2021-01-27 14:56:47 WARNING (MainThread) [homeassistant.components.tuya] The 'tuya' option is deprecated, please remove it from your configuration 2021-01-27 14:57:05 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/smartir/climate.py", line 370, in _async_power_sensor_changed if new_state.state == old_state.state: AttributeError: 'NoneType' object has no attribute 'state' 2021-01-27 14:57:07 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404 2021-01-27 14:57:09 ERROR (SyncWorker_0) [pyhap.characteristic] SecuritySystemCurrentState: value=0 is an invalid value. 2021-01-27 14:57:09 ERROR (SyncWorker_0) [pyhap.characteristic] SecuritySystemTargetState: value=0 is an invalid value. 2021-01-27 15:28:48 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for ble_monitor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.

The issue here is that I don't have this entity - light.xiaomi_philips_eyecare_smart_lamp_2 any more.

syssi commented 3 years ago

It looks like your configuration is invalid. Please remove the second "light:" section:

homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "light". Check lines 30 and 167
chengrutw commented 3 years ago

It's fixed. Thanks a lot!!