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
290 stars 9 forks source link

[Issue]: Daikin Onecta integration dissapeared #315

Closed garcru closed 3 weeks ago

garcru commented 3 weeks ago

Hello to everyone,

I ´ve been using this integration for a long time without any problems but a month ago everything changed to the point that right now i cant even see de integration in the integration dashboard.

The problem was that the link with the Daiken Api failed every half an hour more or less or after every HA reestart. Ather a few weeks with this problem i decided to start over, i deleted Daikin onecta from HACS, i deleted de credentials and the integration i even deleted de app from the daikin APi

Then i created a new API, downloaded the repository from HACS, went to integration dashboard, add the integration, enter the name, client iD, token.. and continue. I was sent to the Daikin web, see the proxy screen, see the link account, click link and i get this problem:

Captura de pantalla 2024-10-11 082408

I have read a lot about the URL, but can solve it. Ofcourse i still cant see the integration in the integration dashboar and therefore i cant send you de register log. In this case if i try to install again the integration i keep on having the same problem.

If i do all this in my mobile phone instead of the 404 error i end up stuck in a blank page. After closing it if i try to download the integration again y get a message "Daikin Onecta already in progress" but it doesn´t work and it doesnt appear in the integration dashboar.

Core 2024.10.1 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.2

I added this to me configuration. yaml

my: https://my.home-assistant.io/redirect/oauth

logger: logs: custom_components.daikin_onecta: debug homeassistant.helpers.config_entry_oauth2_flow: debug

Please help i don´t know what else to do.

Thank you for your time, your help and your work and sorry for my english.

jwillemsen commented 3 weeks ago

Please search the closed issues, people have given there various solutions, different browser, make sure my home assistant is setup (seems it is not)

garcru commented 3 weeks ago

Hello again.

I managed to solve everything but one thing. After successfully installing the integration if i reestart Home Assistant it dessapears. I can see de credentials and the repository in the studio code server, but nothing works and i cant see the integration in the Integrations dashboard.

Thank you

jwillemsen commented 3 weeks ago

I have no idea, have you restarted HA? Anything in the log? Is the integration downloaded in the correct location, are you using HACS to install it?

garcru commented 3 weeks ago

Yes, i use HACS to install the integration and here is where it appears

image

And about the log this is what i get afther the restart.

Registrador: homeassistant.util.loop Fuente: util/loop.py:77 Ocurrió por primera vez: 21:26:21 (1 ocurrencias) Última vez registrado: 21:26:21

Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/pysiaalarm/data/sia_codes.json', 'rb') in /usr/local/lib/python3.12/site-packages/pkg_resources/init.py, line 1758: return open(self._fn(self.module_path, resource_name), 'rb') inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/pysiaalarm/aio/server.py", line 54, in handle_line event = self.parse_and_check_event(data) File "/usr/local/lib/python3.12/site-packages/pysiaalarm/base_server.py", line 64, in parse_and_check_event event = SIAEvent.from_line(line, self.accounts) File "/usr/local/lib/python3.12/site-packages/pysiaalarm/event.py", line 161, in from_line return SIAEvent( File "", line 28, in init File "/usr/local/lib/python3.12/site-packages/pysiaalarm/event.py", line 266, in post_init__ self.set_sia_code() File "/usr/local/lib/python3.12/site-packages/pysiaalarm/event.py", line 106, in set_sia_code self.sia_code = _load_sia_codes().get(self.code) # pylint: disable=E1101 File "/usr/local/lib/python3.12/site-packages/pysiaalarm/data/data.py", line 44, in _load_sia_codes data = _load_data(FILE_SIA_CODES) File "/usr/local/lib/python3.12/site-packages/pysiaalarm/data/data.py", line 38, in _load_data stream = pkg_resources.resource_stream(name, file) File "/usr/local/lib/python3.12/site-packages/pkg_resources/init.py", line 1248, in resource_stream return get_provider(package_or_requirement).get_resource_stream( File "/usr/local/lib/python3.12/site-packages/pkg_resources/init__.py", line 1758, in get_resource_stream return open(self._fn(self.module_path, resource_name), 'rb')

Registrador: homeassistant.helpers.storage Fuente: helpers/storage.py:542 Ocurrió por primera vez: 21:26:20 (1 ocurrencias) Última vez registrado: 21:26:20

Error writing config for core.config_entries: Failed to serialize to JSON: /config/.storage/core.config_entries. Bad data at

Registrador: homeassistant.helpers.json Fuente: helpers/json.py:220 Ocurrió por primera vez: 21:26:20 (1 ocurrencias) Última vez registrado: 21:26:20

Failed to serialize to JSON: /config/.storage/core.config_entries. Bad data at

Registrador: homeconnect Fuente: components/home_connect/api.py:72 Ocurrió por primera vez: 21:26:19 (1 ocurrencias) Última vez registrado: 21:26:19

Token expired.

Registrador: homeassistant.helpers.translation Fuente: helpers/translation.py:285 Ocurrió por primera vez: 21:26:17 (1 ocurrencias) Última vez registrado: 21:26:17

Validation of translation placeholders for localized (es) string component.control4.config.step.user.data.username failed: ({'name'} != set())

Thank you

jwillemsen commented 3 weeks ago

No error in the log, what is the content of the daikin_onecta directory?

garcru commented 3 weeks ago
image
jwillemsen commented 3 weeks ago

That looks good, no idea why it is not loaded, I assume you added it after having it installed

garcru commented 3 weeks ago

I think i did. I downloaded it with HACS, made HA a reset, went to the integration dashboard and added it. Everything worked fine (After solving my previous problems). But afther restarting HA it was gone and it is gone every time i repeat this process. I have tried to install local tuya a few minutes ago and exactly the same, it desapeared after a reset. I´m compleatly stuck.

jwillemsen commented 3 weeks ago

When tuya has the same issue please open a generic HA issue, maybe someone of the core developers can help