home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.96k stars 30.52k forks source link

vesync is not working #124030

Open Tapion1985 opened 2 months ago

Tapion1985 commented 2 months ago

The problem

i am geting the following log: Logger: homeassistant.config_entries Quelle: config_entries.py:819 Erstmals aufgetreten: 22:05:40 (4 Vorkommnisse) Zuletzt protokolliert: 22:05:40

Error unloading entry [my mail] for fan Error unloading entry [my mail] for light Error unloading entry [my mail] for sensor Error unloading entry [my mail] for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 211, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded!

What version of Home Assistant Core has the issue?

core-2024.8.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

VeSync

Link to integration documentation on our website

(https://www.home-assistant.io/integrations/vesync/)

Diagnostics information

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.8.1", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.12.4", "docker": true, "arch": "aarch64", "timezone": "Europe/Berlin", "os_name": "Linux", "os_version": "6.6.31-haos-raspi", "supervisor": "2024.08.0", "host_os": "Home Assistant OS 13.0", "docker_version": "26.1.4", "chassis": "embedded", "run_as_root": true }, "custom_components": { "hacs": { "documentation": "https://hacs.xyz/docs/configuration/start", "version": "1.34.0", "requirements": [ "aiogithubapi>=22.10.1" ] } }, "integration_manifest": { "domain": "vesync", "name": "VeSync", "codeowners": [ "markperdue", "webdjoe", "thegardenmonkey", "cdnninja" ], "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/vesync", "iot_class": "cloud_polling", "loggers": [ "pyvesync" ], "requirements": [ "pyvesync==2.1.12" ], "is_built_in": true }, "setup_times": { "null": { "setup": 6.761000258848071e-05 }, "01J5BT9X9FHH3618EB5Z62HPWS": { "config_entry_setup": 1.2599444329971448 } }, "data": { "vesync": { "bulb_count": 0, "fan_count": 0, "outlets_count": 0, "switch_count": 0, "timezone": "Europe/Berlin" }, "devices": { "bulbs": [], "fans": [], "outlets": [], "switches": [] } } }

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-08-16 09:11:52.826 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration 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 2024-08-16 10:31:06.685 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for fan Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 211, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 10:31:06.694 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 680, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 10:31:06.700 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 136, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 10:31:06.703 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/switch/init.py", line 98, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 10:31:19.817 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for fan Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 211, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 10:31:19.820 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 680, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 10:31:19.823 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 136, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 10:31:19.826 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/switch/init.py", line 98, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded!

Additional information

No response

Tapion1985 commented 2 months ago

btw, i try to include my fan LTF-F422S-KEU

joostlek commented 2 months ago

What are you trying to do? This is not a vesync specfic problem

Tapion1985 commented 2 months ago

hi, i have a fan that is working on my mobile with vesync, and i want to include it into home assistant. the errors in the logs are directly after i try to load the list from vesync

joostlek commented 2 months ago

The config entry is never loaded. Can you try restarting

Tapion1985 commented 2 months ago

restart home assistant? i have done several times :(

joostlek commented 2 months ago

What config entry is my mail?

Tapion1985 commented 2 months ago

this is my mail adresse i am using in vesync, i just removed it, so not everybody knows my mail XD

joostlek commented 2 months ago

Do you have full logs? It tries to unload the config entry, but nothing explains why it tries to do that

Tapion1985 commented 2 months ago

error_log.txt

joostlek commented 2 months ago

Can you try to get new logs? I have a hard time believing that a setup can go without logs for 80 minutes and suddenly do this

Tapion1985 commented 2 months ago

after pressing reload in vesync error_log2.txt

joostlek commented 2 months ago

Please don't press reload, restart HA

Tapion1985 commented 2 months ago

after restart HO this is the only entry: 2024-08-16 11:16:01.775 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration 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

Tapion1985 commented 2 months ago

btw HACs is deactivated at the moment, but vesync was not working before i installed hacs

joostlek commented 2 months ago

Do you have any custom logger settings?

Tapion1985 commented 2 months ago

not as far as i know, i am just starting with home assistant

all i have "changed" till now:

Tapion1985 commented 2 months ago

btw, this was only the log for "home assistant core" do you need some other?

joostlek commented 2 months ago

Can you enable debug logging for vesync?

Tapion1985 commented 2 months ago

done and HO restarted:

Home Assistant Core 2024-08-16 11:25:08.195 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration 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

Tapion1985 commented 2 months ago

after try to reload vesync (i hope this would trigger an update of the devices)

2024-08-16 11:25:08.195 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration 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 2024-08-16 11:26:33.628 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for fan Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 211, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 11:26:33.636 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 680, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 11:26:33.642 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 136, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded! 2024-08-16 11:26:33.645 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [my mail] for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload result = await component.async_unload_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/switch/init.py", line 98, in async_unload_entry return await component.async_unload_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 202, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded!

home-assistant[bot] commented 2 months ago

Hey there @markperdue, @webdjoe, @thegardenmonkey, @cdnninja, mind taking a look at this issue as it has been labeled with an integration (vesync) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `vesync` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign vesync` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


vesync documentation vesync source (message by IssueLinks)

Tapion1985 commented 2 months ago

any help?

cdnninja commented 2 months ago

That model isn't supported.

cdnninja commented 2 months ago

https://github.com/home-assistant/core/issues/124123

Tapion1985 commented 2 months ago

do you know if it is working with any other integration?

cdnninja commented 1 week ago

Not sure but doubtful since pyvesync is the go to underlying library for vesync.