jwillemsen / daikin_onecta

Home Assistant Integration for devices supported by the Daikin Onecta App
https://github.com/jwillemsen/daikin_onecta
GNU General Public License v3.0
242 stars 9 forks source link

[Issue]: ModuleNotFoundError: Platform daikin_onecta.binary_sensor not found #273

Closed jaguge closed 1 month ago

jaguge commented 1 month ago

Hello,

I have just installed the integration, created my app and did everything according to the documentation (if I'm not mistaken) but it's not working. It says "No devices nor entities", despite having one working without problem in Onecta app.

I haves activated the debug and I can see that my AC unit is found, but after that there is an error:

2024-08-01 21:23:47.656 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] Initialing Daikin Onecta API...
2024-08-01 21:23:47.656 INFO (MainThread) [custom_components.daikin_onecta.daikin_api] Daikin Onecta API initialized.
2024-08-01 21:23:47.656 INFO (MainThread) [custom_components.daikin_onecta.coordinator] Daikin coordinator initialized with 0:10:00 interval.
2024-08-01 21:23:47.657 DEBUG (MainThread) [custom_components.daikin_onecta.coordinator] Daikin coordinator start _async_update_data.
2024-08-01 21:23:47.657 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER REQUEST URL: https://api.onecta.daikineurope.com/v1/gateway-devices
2024-08-01 21:23:47.657 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER TYPE GET JSON: None
2024-08-01 21:23:47.888 DEBUG (MainThread) [custom_components.daikin_onecta.daikin_api] BEARER RESPONSE CODE: 200 LIMIT: {'minute': 20, 'day': 200, 'remaining_minutes': 19, 'remaining_day': 197, 'retry_after': 0, 'ratelimit_reset': 13}
2024-08-01 21:23:47.889 INFO (MainThread) [custom_components.daikin_onecta.device] Initialized Daikin Onecta Device 'DaikinAP31627' (id 3b4563c9-2534-41aa-8bd2-08a8527f81ff)
2024-08-01 21:23:47.889 DEBUG (MainThread) [custom_components.daikin_onecta.coordinator] Daikin coordinator finished _async_update_data, interval 0:10:00.
2024-08-01 21:23:47.889 DEBUG (MainThread) [custom_components.daikin_onecta.coordinator] Finished fetching daikin_onecta data in 0.232 seconds (success: True)
2024-08-01 21:23:47.889 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry daikin_onecta for daikin_onecta
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/daikin_onecta/__init__.py", line 60, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(config_entry, COMPONENT_TYPES)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2046, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1116, in async_get_platforms
    if platform := self._get_platform_cached_or_raise(platform_name):
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1207, in _get_platform_cached_or_raise
    raise ModuleNotFoundError(
ModuleNotFoundError: Platform daikin_onecta.binary_sensor not found

"DaikinAP31627" is my AC unit (it has the same name in the onecta app), so it is there, but in the integration says that it can't be configured and that there is no entities nor devices.

Thanks in advance.

jwillemsen commented 1 month ago

What is the content of the daikin_onecta folder on disk, I think some files are not installed

jaguge commented 1 month ago

What is the content of the daikin_onecta folder on disk, I think some files are not installed

It seems that it could be the problem, because I downgraded the repository and updated again to the last version and it worked flawlessly.

Thanks for the quick response.