Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daikin integration still fails on 2024.8.2 - SkyFi based units #124095

Closed
RonFac opened this issue Aug 17, 2024 · 41 comments · Fixed by #124802 or #124852
Closed

Daikin integration still fails on 2024.8.2 - SkyFi based units #124095

RonFac opened this issue Aug 17, 2024 · 41 comments · Fixed by #124802 or #124852

Comments

@RonFac
Copy link

RonFac commented Aug 17, 2024

The problem

My Daikin integration is still failing after upgrading HA to 2024.8.2.
My controller is a SkyFi BRP15A61.
The only way I can get the integration to work is by regressing to 2024.7.4

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

2024.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Daikin

Link to integration documentation on our website

No response

Diagnostics information

Logger: homeassistant.config_entries
Source: config_entries.py:604
First occurred: 18:54:49 (1 occurrences)
Last logged: 18:54:49

Error setting up entry 192.168.1.137 for daikin
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 49, in async_setup_entry
    daikin_api = await daikin_api_setup(
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 88, in daikin_api_setup
    device: Appliance = await DaikinFactory(
                        ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in __new__
    await instance.__init__(*a, **kw)
  File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in __init__
    await self._generated_object.init()
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 64, in init
    await self.update_status(self.HTTP_RESOURCES)
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
    self.values.update_by_resource(resource, task.result())
                                             ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
    return await copy(fn, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
    do = await self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
    result = await action(retry_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
    return call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource
    async with self.session.get(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
    await self._waiter
asyncio.exceptions.CancelledError


Logger: pydaikin.daikin_base
Source: components/daikin/__init__.py:88
First occurred: 18:54:49 (1 occurrences)
Last logged: 18:54:49

Exception in TaskGroup: Cannot connect to host 192.168.1.137:2000 ssl:default [Connect call failed ('192.168.1.137', 2000)]

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

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

Code owner commands

Code owners of daikin 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 daikin 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)


daikin documentation
daikin source
(message by IssueLinks)

@mib1185
Copy link
Contributor

mib1185 commented Aug 17, 2024

Please provide logs, thx 👍

@RonFac
Copy link
Author

RonFac commented Aug 17, 2024

Logs have been added

@fredrike
Copy link
Contributor

Logs have been added

Thanks, can you please format them using code formatting (```). Also, what module do you have?

@RonFac
Copy link
Author

RonFac commented Aug 17, 2024

How do I apply code formatting?
My module is a SkyFi BRP15A61 - has worked fine up until 2024.8.0 when it first failed.

@joostlek
Copy link
Member

I already added the formatting

@RonFac
Copy link
Author

RonFac commented Aug 17, 2024

I already added the formatting

Thanks

@tomlut
Copy link

tomlut commented Aug 17, 2024

Mine (Zena BRP072Cxx) is not failing completely (I can control it) but it is generating a lot of warnings and errors in the logs:

2024-08-17 21:10:09.137 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.downstairs_inside_temperature is taking over 10 seconds
2024-08-17 21:10:29.136 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-08-17 21:10:59.137 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-08-17 21:10:59.555 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 10.1.1.18:443 ssl:<ssl.SSLContext object at 0x7f894fe8bc50> [None]
2024-08-17 21:10:59.558 WARNING (MainThread) [homeassistant.components.daikin] Connection failed for 10.1.1.18
2024-08-17 21:11:09.141 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.downstairs_streamer is taking over 10 seconds
2024-08-17 21:11:29.141 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-08-17 21:11:59.141 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-08-17 21:14:10.268 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:14:33.476 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 10.1.1.18:443 ssl:<ssl.SSLContext object at 0x7f894fe8bc50> [None]
2024-08-17 21:17:10.270 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:18:10.270 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:19:10.271 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:20:10.272 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:22:10.275 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:23:10.275 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:23:24.742 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 10.1.1.18:443 ssl:<ssl.SSLContext object at 0x7f894fe8bc50> [None]
2024-08-17 21:24:10.276 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:24:22.007 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 10.1.1.18:443 ssl:<ssl.SSLContext object at 0x7f894fe8bc50> [None]
2024-08-17 21:24:22.007 WARNING (MainThread) [homeassistant.components.daikin] Connection failed for 10.1.1.18
2024-08-17 21:25:10.275 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.downstairs is taking over 10 seconds
2024-08-17 21:26:00.275 WARNING (MainThread) [homeassistant.components.climate] Updating daikin climate took longer than the scheduled update interval 0:01:00
2024-08-17 21:26:00.293 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 10.1.1.18:443 ssl:<ssl.SSLContext object at 0x7f894fe8bc50> [None]
2024-08-17 21:26:00.293 WARNING (MainThread) [homeassistant.components.daikin] Connection failed for 10.1.1.18
2024-08-17 21:27:39.171 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.downstairs_inside_temperature is taking over 10 seconds
2024-08-17 21:29:39.176 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.downstairs_inside_temperature is taking over 10 seconds

@Peter2016
Copy link

My controller is a SkyFi BRP15A61and I have exactly the same problem as RonFac. The only way I can get the integration to work is by going back to 2024.7.4. This works perfectly.

@digiblur
Copy link
Contributor

Same here... Rolling back to 2024.8.0 again fixes it.

@fredrike
Copy link
Contributor

Same here... Rolling back to 2024.8.0 again fixes it.

What model do you have? Trying to identify what's going on.

@lpdescamps
Copy link

hello,
i m on 2024.8.1 using BRP069B41 and get the error in the integration saying failed to setup
Uploading home-assistant_daikin_2024-08-20T06-52-11.857Z.log…

@cremor
Copy link

cremor commented Aug 20, 2024

@lpdescamps BRP069B41 was (should) be fixed in 2024.8.2.
This issue is about problems with 2024.8.2.

@lpdescamps
Copy link

@lpdescamps BRP069B41 was (should) be fixed in 2024.8.2. This issue is about problems with 2024.8.2.

sorry I didn't realise that.
upgraded to 2024.8.2. and all ok.
thank you

@digiblur
Copy link
Contributor

BRP072A43 here.

@tomlut
Copy link

tomlut commented Aug 20, 2024

More logs:

	Line 572: 2024-08-20 23:23:52.183 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikin_upstairs_system_temperature is taking over 10 seconds
	Line 575: 2024-08-21 02:01:52.467 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikin_upstairs_system_temperature is taking over 10 seconds
	Line 613: 2024-08-21 02:25:52.511 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikin_upstairs_system_temperature is taking over 10 seconds
	Line 614: 2024-08-21 08:29:53.427 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikin_upstairs_system_temperature is taking over 10 seconds
	Line 617: 2024-08-21 09:19:00.730 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 618: 2024-08-21 09:19:30.731 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 619: 2024-08-21 09:20:00.732 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 620: 2024-08-21 09:20:30.732 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 621: 2024-08-21 09:21:00.733 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 622: 2024-08-21 09:21:30.734 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 623: 2024-08-21 09:22:00.735 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 624: 2024-08-21 09:22:30.736 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 625: 2024-08-21 09:23:00.737 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 626: 2024-08-21 09:23:30.739 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 627: 2024-08-21 09:23:30.928 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: 
	Line 634:   File "/usr/src/homeassistant/homeassistant/components/daikin/sensor.py", line 198, in async_update
	Line 636:   File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 119, in async_update
	Line 638:   File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
	Line 664:   File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource

@starapo7348
Copy link

My Daikin integration with HA 2024.8.2 is working again.
FTXJ35MV with WLAN Adapter BRP069B41.

Warning Message is shown in the log:
2024-08-21 19:03:13.332 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikinap32865_inside_temperature is taking over 10 seconds

With HA 2024.8.0 no Daikin warnings were present in the log.

@fredrike
Copy link
Contributor

More logs:

	Line 572: 2024-08-20 23:23:52.183 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikin_upstairs_system_temperature is taking over 10 seconds
	Line 575: 2024-08-21 02:01:52.467 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikin_upstairs_system_temperature is taking over 10 seconds
	Line 613: 2024-08-21 02:25:52.511 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikin_upstairs_system_temperature is taking over 10 seconds
	Line 614: 2024-08-21 08:29:53.427 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikin_upstairs_system_temperature is taking over 10 seconds
	Line 617: 2024-08-21 09:19:00.730 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 618: 2024-08-21 09:19:30.731 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 619: 2024-08-21 09:20:00.732 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 620: 2024-08-21 09:20:30.732 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 621: 2024-08-21 09:21:00.733 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 622: 2024-08-21 09:21:30.734 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 623: 2024-08-21 09:22:00.735 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 624: 2024-08-21 09:22:30.736 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 625: 2024-08-21 09:23:00.737 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 626: 2024-08-21 09:23:30.739 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
	Line 627: 2024-08-21 09:23:30.928 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: 
	Line 634:   File "/usr/src/homeassistant/homeassistant/components/daikin/sensor.py", line 198, in async_update
	Line 636:   File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 119, in async_update
	Line 638:   File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
	Line 664:   File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource

Issues with the device being slow to respond is another issue. I suggest that we create a new issue for that.

@tomlut
Copy link

tomlut commented Aug 22, 2024

I'm more worried about the Exception in TaskGroup.

@fredrike
Copy link
Contributor

fredrike commented Aug 22, 2024

The problem

My Daikin integration is still failing after upgrading HA to 2024.8.2. My controller is a SkyFi BRP15A61. The only way I can get the integration to work is by regressing to 2024.7.4

Logger: homeassistant.config_entries
Source: config_entries.py:604
First occurred: 18:54:49 (1 occurrences)
Last logged: 18:54:49

Error setting up entry 192.168.1.137 for daikin
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 49, in async_setup_entry
    daikin_api = await daikin_api_setup(
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 88, in daikin_api_setup
    device: Appliance = await DaikinFactory(
                        ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in __new__
    await instance.__init__(*a, **kw)
  File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in __init__
    await self._generated_object.init()
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 64, in init
    await self.update_status(self.HTTP_RESOURCES)
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
    self.values.update_by_resource(resource, task.result())
                                             ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
    return await copy(fn, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
    do = await self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
    result = await action(retry_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
    return call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource
    async with self.session.get(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
    await self._waiter
asyncio.exceptions.CancelledError


Logger: pydaikin.daikin_base
Source: components/daikin/__init__.py:88
First occurred: 18:54:49 (1 occurrences)
Last logged: 18:54:49

Exception in TaskGroup: Cannot connect to host 192.168.1.137:2000 ssl:default [Connect call failed ('192.168.1.137', 2000)]

Are you sure that your device is on 192.168.1.137? I have to make some real deep dive on the pydaikin code to understand what's going on here..

These are the changes that needs to be investigated: fredrike/pydaikin@v2.11.1...v2.13.4

@fredrike
Copy link
Contributor

I'm more worried about the Exception in TaskGroup.

Yes, that's not good..

@RonFac
Copy link
Author

RonFac commented Aug 22, 2024

The problem

My Daikin integration is still failing after upgrading HA to 2024.8.2. My controller is a SkyFi BRP15A61. The only way I can get the integration to work is by regressing to 2024.7.4

Logger: homeassistant.config_entries
Source: config_entries.py:604
First occurred: 18:54:49 (1 occurrences)
Last logged: 18:54:49

Error setting up entry 192.168.1.137 for daikin
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 49, in async_setup_entry
    daikin_api = await daikin_api_setup(
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 88, in daikin_api_setup
    device: Appliance = await DaikinFactory(
                        ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in __new__
    await instance.__init__(*a, **kw)
  File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in __init__
    await self._generated_object.init()
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 64, in init
    await self.update_status(self.HTTP_RESOURCES)
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
    self.values.update_by_resource(resource, task.result())
                                             ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
    return await copy(fn, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
    do = await self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
    result = await action(retry_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
    return call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource
    async with self.session.get(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
    await self._waiter
asyncio.exceptions.CancelledError


Logger: pydaikin.daikin_base
Source: components/daikin/__init__.py:88
First occurred: 18:54:49 (1 occurrences)
Last logged: 18:54:49

Exception in TaskGroup: Cannot connect to host 192.168.1.137:2000 ssl:default [Connect call failed ('192.168.1.137', 2000)]

Are you sure that your device is on 192.168.1.137? I have to make some real deep dive on the pydaikin code to understand what's going on here..

These are the changes that needs to be investigated: fredrike/[email protected]

Absolutely sure that my SkyFi is on 192.168.1.137, port 2000. My HA RPI is on 192.168.1.107

@judo16
Copy link

judo16 commented Aug 24, 2024

I'm also having the same issue. Last known working version 2024.7.4 using the BRP15A61. 2024.8.2 is not working.

@fredrike
Copy link
Contributor

@icovada, @cremor, @kingy444 can you help me investigate what's going on here. Is there a subset of units that we have missed?

@kingy444
Copy link
Contributor

If I'm reading the thread correctly it looks like this might be related to the sslcontext having a default of None.

Can we test these devices with no sslcontext at all?

@fredrike
Copy link
Contributor

fredrike commented Aug 25, 2024

I think I've found the issue, we have missed setting the password (this is apparently the skyfi integration that's not working).

fredrike/pydaikin@v2.11.1...v2.13.4#diff-64a0d205181172c110e338cee7b146ec29c332840be6b57094e69fd70b19983aR137

Edit: there are several parts that have pass param that needs updates, unsure why update_resource is called but we need to ensure that the password always is sent.

Some more logs with debug level on pydaikin would be helpful.

@RonFac
Copy link
Author

RonFac commented Aug 25, 2024

I have regressed to 2024.7.4. Integration works OK.
Attaching DEBUG logs of a successful integration 2024.7.4:

2024-08-25 19:03:31.503 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-25 19:03:32.886 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=19:08&day=6&roomtemp=20&outsidetemp=19&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-25 19:03:34.270 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-25 19:03:34.271 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.137 successful
2024-08-25 19:03:34.608 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}']
2024-08-25 19:03:38.007 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=19:08&day=6&roomtemp=20&outsidetemp=19&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-25 19:04:34.614 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-25 19:04:38.949 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 3
2024-08-25 19:04:39.066 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientResponseError(RequestInfo(url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199'), method='GET', headers=<CIMultiDictProxy('Host': '192.168.1.137:2000', 'User-Agent': 'HomeAssistant/2024.7.4 aiohttp/3.9.5 Python/3.12', 'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br')>, real_url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199')), ()) #0
2024-08-25 19:04:44.975 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 2
2024-08-25 19:04:47.036 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=19:09&day=6&roomtemp=20&outsidetemp=19&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-25 19:04:48.414 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-25 19:05:34.616 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-25 19:05:36.053 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=19:10&day=6&roomtemp=20&outsidetemp=19&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-25 19:05:37.441 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-25 19:06:34.617 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-25 19:06:34.738 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientResponseError(RequestInfo(url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199'), method='GET', headers=<CIMultiDictProxy('Host': '192.168.1.137:2000', 'User-Agent': 'HomeAssistant/2024.7.4 aiohttp/3.9.5 Python/3.12', 'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br')>, real_url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199')), ()) #0
2024-08-25 19:06:36.020 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientResponseError(RequestInfo(url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199'), method='GET', headers=<CIMultiDictProxy('Host': '192.168.1.137:2000', 'User-Agent': 'HomeAssistant/2024.7.4 aiohttp/3.9.5 Python/3.12', 'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br')>, real_url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199')), ()) #1
2024-08-25 19:06:41.491 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 3
2024-08-25 19:06:43.562 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=19:11&day=6&roomtemp=20&outsidetemp=19&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-25 19:06:44.958 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus

@martingruening
Copy link

I have a Daikin unit with a BRP069B42 controller unit that also stopped working with 2024.8.x.

This is what I see in the logs

Logger: pydaikin.daikin_base
Quelle: components/daikin/init.py:88
Erstmals aufgetreten: 06:25:37 (2 Vorkommnisse)
Zuletzt protokolliert: 07:18:41

Exception in TaskGroup: 0, message='', url='http://192.168.181.125/common/get_holiday'
Exception in TaskGroup: 0, message='', url='http://192.168.181.125/aircon/get_sensor_info'

Logger: homeassistant.components.daikin
Quelle: components/daikin/init.py:99
Integration: Daikin AC (Dokumentation, Probleme)
Erstmals aufgetreten: 06:25:37 (2 Vorkommnisse)
Zuletzt protokolliert: 07:18:41

Unexpected error creating device 192.168.181.125

Let me know if further debug level logging would be helpful.

@fredrike
Copy link
Contributor

I have a Daikin unit with a BRP069B42 controller unit that also stopped working with 2024.8.x.

This is what I see in the logs

Logger: pydaikin.daikin_base
Quelle: components/daikin/init.py:88
Erstmals aufgetreten: 06:25:37 (2 Vorkommnisse)
Zuletzt protokolliert: 07:18:41
Exception in TaskGroup: 0, message='', url='http://192.168.181.125/common/get_holiday'
Exception in TaskGroup: 0, message='', url='http://192.168.181.125/aircon/get_sensor_info'

Logger: homeassistant.components.daikin
Quelle: components/daikin/init.py:99
Integration: Daikin AC (Dokumentation, Probleme)
Erstmals aufgetreten: 06:25:37 (2 Vorkommnisse)
Zuletzt protokolliert: 07:18:41
Unexpected error creating device 192.168.181.125

Let me know if further debug level logging would be helpful.

Your issue with BRP069B42 is another task, please create an issue on https://github.com/fredrike/pydaikin/issues for that.

@RonFac
Copy link
Author

RonFac commented Aug 26, 2024

As requested, more logs with the following actions:

  1. 17:45 - turn on heat
  2. 17:47 - increase temp to 22
  3. 17:49 - switch off
  4. 17:50 - turn on cooling
  5. 17:51 - switch to Fan only
  6. 17:52 - fan mode low
  7. 17:53 - off

2024-08-26 17:45:13.203 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'hot'}
2024-08-26 17:45:13.204 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}']
2024-08-26 17:45:14.565 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:49&day=0&roomtemp=27&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:45:14.565 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:45:14.566 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=20.0&f=3&m=2']
2024-08-26 17:45:15.977 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:49&day=0&roomtemp=27&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:45:39.488 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-26 17:45:40.852 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:50&day=0&roomtemp=27&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:45:42.228 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-26 17:46:39.488 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-26 17:46:40.323 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'stemp': '22'}
2024-08-26 17:46:40.323 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}']
2024-08-26 17:46:41.349 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #0
2024-08-26 17:46:42.356 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #1
2024-08-26 17:46:43.364 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #2
2024-08-26 17:46:44.374 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #3
2024-08-26 17:46:44.383 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 3
2024-08-26 17:46:44.440 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientResponseError(RequestInfo(url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199'), method='GET', headers=<CIMultiDictProxy('Host': '192.168.1.137:2000', 'User-Agent': 'HomeAssistant/2024.7.4 aiohttp/3.9.5 Python/3.12', 'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br')>, real_url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199')), ()) #0
2024-08-26 17:46:50.411 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 2
2024-08-26 17:46:50.485 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientResponseError(RequestInfo(url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199'), method='GET', headers=<CIMultiDictProxy('Host': '192.168.1.137:2000', 'User-Agent': 'HomeAssistant/2024.7.4 aiohttp/3.9.5 Python/3.12', 'Accept': '/', 'Accept-Encoding': 'gzip, deflate, br')>, real_url=URL('http://192.168.1.137:2000/ac.cgi?pass=17199')), ()) #0
2024-08-26 17:46:56.439 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 1
2024-08-26 17:46:58.426 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 0
2024-08-26 17:47:37.474 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'stemp': '21'}
2024-08-26 17:47:37.474 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}']
2024-08-26 17:47:38.814 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:47:38.815 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:47:38.815 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=21&f=3&m=2']
2024-08-26 17:47:39.489 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-26 17:47:39.496 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #0
2024-08-26 17:47:40.238 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=21.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:47:40.633 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'stemp': '21'}
2024-08-26 17:47:40.633 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}']
2024-08-26 17:47:40.642 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #0
2024-08-26 17:47:41.671 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #1
2024-08-26 17:47:41.864 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=21.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:47:43.322 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 3
2024-08-26 17:47:44.639 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'stemp': '20'}
2024-08-26 17:47:44.639 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-08-26 17:47:44.640 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:47:44.640 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=20&f=3&m=2']
2024-08-26 17:47:44.653 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientConnectorError(ConnectionKey(host='192.168.1.137', port=2000, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=6446973735908542371), ConnectionResetError(104, "Connect call failed ('192.168.1.137', 2000)")) #0
2024-08-26 17:47:45.665 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #1
2024-08-26 17:47:45.742 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=21.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:47:45.743 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:47:45.744 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=21&f=3&m=2']
2024-08-26 17:47:46.673 DEBUG (MainThread) [pydaikin.daikin_skyfi] ClientOSError(104, 'Connection reset by peer') #2
2024-08-26 17:47:47.178 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=21.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:47:49.045 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:47:52.867 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'stemp': '21'}
2024-08-26 17:47:52.867 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}']
2024-08-26 17:47:54.208 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=20.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:47:54.209 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:47:54.209 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=21&f=3&m=2']
2024-08-26 17:47:55.629 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=21.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:48:04.864 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'stemp': '22'}
2024-08-26 17:48:04.865 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}']
2024-08-26 17:48:06.198 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=21.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:48:06.199 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:48:06.199 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=22&f=3&m=2']
2024-08-26 17:48:07.626 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:52&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:49:02.201 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'off'}
2024-08-26 17:49:02.201 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}']
2024-08-26 17:49:03.568 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:53&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:49:03.569 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:49:03.570 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=0']
2024-08-26 17:49:05.093 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=17:53&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:49:07.279 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['zones.cgi?pass={}']
2024-08-26 17:49:08.601 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-26 17:50:07.282 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['zones.cgi?pass={}']
2024-08-26 17:50:09.266 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-26 17:50:32.304 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'cool'}
2024-08-26 17:50:32.305 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-08-26 17:50:32.305 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:50:32.306 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=22.0&f=3&m=8']
2024-08-26 17:50:33.649 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=17:55&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:51:04.522 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'fan'}
2024-08-26 17:51:04.523 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-08-26 17:51:04.523 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:51:04.524 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=22.0&f=3&m=16']
2024-08-26 17:51:05.874 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=16&tonact=0&toffact=0&prog=0&time=17:55&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:51:07.283 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['zones.cgi?pass={}']
2024-08-26 17:51:08.617 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-26 17:51:52.349 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'f_rate': 'low'}
2024-08-26 17:51:52.349 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-08-26 17:51:52.350 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:51:52.350 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=1&t=22.0&f=1&m=16']
2024-08-26 17:51:53.704 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=1&units=.&settemp=22.0&fanspeed=1&fanflags=1&acmode=16&tonact=0&toffact=0&prog=0&time=17:56&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:52:07.285 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['zones.cgi?pass={}']
2024-08-26 17:52:08.611 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-26 17:52:36.273 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'off'}
2024-08-26 17:52:36.274 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-08-26 17:52:36.274 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:52:36.275 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=0']
2024-08-26 17:52:39.281 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 3
2024-08-26 17:52:40.627 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 2
2024-08-26 17:52:41.988 DEBUG (MainThread) [pydaikin.daikin_base] ServerDisconnectedError 1
2024-08-26 17:52:48.358 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'off'}
2024-08-26 17:52:48.358 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-08-26 17:52:48.359 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: <pydaikin.values.ApplianceValues object at 0x7f81118b90>
2024-08-26 17:52:48.359 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['set.cgi?pass={}&p=0']
2024-08-26 17:52:49.715 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=1&fanflags=1&acmode=16&tonact=0&toffact=0&prog=0&time=17:57&day=0&roomtemp=24&outsidetemp=20&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-08-26 17:53:07.287 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['zones.cgi?pass={}']
2024-08-26 17:53:08.614 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-08-26 17:54:07.288 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['zones.cgi?pass={}']
2024-08-26 17:54:09.280 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus

Ron

@ciaran4
Copy link

ciaran4 commented Aug 27, 2024

Same issue after upgrading to 2024.8.3 - logs below

2024-08-27 07:50:05.356 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-27 07:50:05.359 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dyson_local 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-27 07:50:05.361 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tapo 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-27 07:50:09.988 ERROR (MainThread) [homeassistant.components.sensor] The systemmonitor platform for the sensor integration does not support platform setup. Please remove it from your config.
2024-08-27 07:50:14.673 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-08-27 07:50:25.925 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Cannot connect to host 192.168.1.209:2000 ssl:default [Connect call failed ('192.168.1.209', 2000)]
2024-08-27 07:50:25.926 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.209 for daikin
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 49, in async_setup_entry
daikin_api = await daikin_api_setup(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 88, in daikin_api_setup
device: Appliance = await DaikinFactory(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in new
await instance.init(*a, **kw)
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in init
await self._generated_object.init()
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 64, in init
await self.update_status(self.HTTP_RESOURCES)
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
self.values.update_by_resource(resource, task.result())
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 189, in async_wrapped
return await copy(fn, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 111, in call
do = await self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 153, in iter
result = await action(retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/init.py", line 398, in
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 114, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource
async with self.session.get(
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 657, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 564, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 975, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1319, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1080, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs, sock=sock)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1149, in create_connection
transport, protocol = await self._create_connection_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1182, in _create_connection_transport
await waiter
asyncio.exceptions.CancelledError
2024-08-27 07:51:03.446 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: Unexpected HTTP status code 500 for http://192.168.1.209:2000/common/basic_info
2024-08-27 07:51:03.447 ERROR (MainThread) [homeassistant.components.daikin.config_flow] Unexpected error creating device
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/daikin/config_flow.py", line 87, in _create_device
device: Appliance = await DaikinFactory(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in new
await instance.init(*a, **kw)
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 52, in init
await self._generated_object.update_status(
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
self.values.update_by_resource(resource, task.result())
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 189, in async_wrapped
return await copy(fn, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 111, in call
do = await self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 153, in iter
result = await action(retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/init.py", line 398, in
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 114, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 160, in _get_resource
raise HTTPError(
aiohttp.web_exceptions.HTTPError: Unexpected HTTP status code 500 for http://192.168.1.209:2000/common/basic_info
2024-08-27 07:51:59.541 ERROR (MainThread) [custom_components.hacs] <Integration fredrike/pydaikin.git> GitHub returned 404 for https://api.github.com/repos/fredrike/pydaikin.git
2024-08-27 09:20:41.574 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities fan.office are missing or not currently available
2024-08-27 11:08:57.580 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-08-27 11:08:57.582 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.209 for daikin
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 49, in async_setup_entry
daikin_api = await daikin_api_setup(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 88, in daikin_api_setup
device: Appliance = await DaikinFactory(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in new
await instance.init(*a, **kw)
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in init
await self._generated_object.init()
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 64, in init
await self.update_status(self.HTTP_RESOURCES)
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
self.values.update_by_resource(resource, task.result())
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 189, in async_wrapped
return await copy(fn, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 111, in call
do = await self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 153, in iter
result = await action(retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/init.py", line 398, in
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 114, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource
async with self.session.get(
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
await self._waiter
asyncio.exceptions.CancelledError
2024-08-27 11:09:11.908 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-27 11:09:11.910 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.209:2000/ac.cgi?pass={} {} [{}]
2024-08-27 11:09:11.916 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.209:2000/zones.cgi?pass={} {} [{}]
2024-08-27 11:09:11.937 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-08-27 11:09:11.937 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.209 for daikin
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 49, in async_setup_entry
daikin_api = await daikin_api_setup(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 88, in daikin_api_setup
device: Appliance = await DaikinFactory(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in new
await instance.init(*a, **kw)
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in init
await self._generated_object.init()
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 64, in init
await self.update_status(self.HTTP_RESOURCES)
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
self.values.update_by_resource(resource, task.result())
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 189, in async_wrapped
return await copy(fn, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 111, in call
do = await self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 153, in iter
result = await action(retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/init.py", line 398, in
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 114, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource
async with self.session.get(
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
await self._waiter
asyncio.exceptions.CancelledError
2024-08-27 11:17:12.368 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi?pass={}', 'zones.cgi?pass={}']
2024-08-27 11:17:12.369 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.209:2000/ac.cgi?pass={} {} [{}]
2024-08-27 11:17:12.372 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.209:2000/zones.cgi?pass={} {} [{}]
2024-08-27 11:17:12.400 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-08-27 11:17:12.401 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.209 for daikin
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 49, in async_setup_entry
daikin_api = await daikin_api_setup(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/daikin/init.py", line 88, in daikin_api_setup
device: Appliance = await DaikinFactory(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in new
await instance.init(*a, **kw)
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in init
await self._generated_object.init()
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 64, in init
await self.update_status(self.HTTP_RESOURCES)
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 187, in update_status
self.values.update_by_resource(resource, task.result())
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 189, in async_wrapped
return await copy(fn, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 111, in call
do = await self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 153, in iter
result = await action(retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tenacity/init.py", line 398, in
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/init.py", line 114, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 145, in _get_resource
async with self.session.get(
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
await resp.start(conn)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
await self._waiter
asyncio.exceptions.CancelledError

@fredrike
Copy link
Contributor

@ciaran4 can you test the suggested fix here fredrike/pydaikin#21

@ciaran4
Copy link

ciaran4 commented Aug 27, 2024

@fredrike i'll need some help with that fix sorry :/ not sure how to run scripts within home assist?

@fredrike fredrike mentioned this issue Aug 28, 2024
19 tasks
@fredrike
Copy link
Contributor

@home-assistant rename Daikin integration still fails on 2024.8.2 - SkyFi based units

@home-assistant home-assistant bot changed the title Daikin integration still fails on 2024.8.2 Daikin integration still fails on 2024.8.2 - SkyFi based units Aug 28, 2024
@htiennhan
Copy link

Hi fredrike,

I still have the same SkyFi Based BRP15A61 even after upgraded my Home Assistant Core to 2024.9.0 still has the unknown error
image

Logs Below
2024-09-06 08:07:39.585 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-06 08:07:39.754 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-06 08:07:39.977 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-06 08:07:40.506 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-06 08:07:40.921 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-06 08:08:17.999 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-06 08:08:25.019 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer

@fredrike
Copy link
Contributor

fredrike commented Sep 6, 2024

Hi fredrike,

I still have the same SkyFi Based BRP15A61 even after upgraded my Home Assistant Core to 2024.9.0 still has the unknown error image

Logs Below 2024-09-06 08:07:39.585 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer 2024-09-06 08:07:39.754 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer 2024-09-06 08:07:39.977 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer 2024-09-06 08:07:40.506 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer 2024-09-06 08:07:40.921 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer 2024-09-06 08:08:17.999 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer 2024-09-06 08:08:25.019 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer

We are aware of this and the fix needs to be made in the underlying pydaikin repository. Please check in there and see if you can provide more insights.

@sirdung
Copy link

sirdung commented Sep 15, 2024

We are aware of this and the fix needs to be made in the underlying pydaikin repository. Please check in there and see if you can provide more insights.

Hi fredrike
Sorry for not knowing the process here, but if this isn't resolved why is the ticket closed? is there another ticket i should be monitoring?

@fredrike
Copy link
Contributor

We are aware of this and the fix needs to be made in the underlying pydaikin repository. Please check in there and see if you can provide more insights.

Hi fredrike Sorry for not knowing the process here, but if this isn't resolved why is the ticket closed? is there another ticket i should be monitoring?

This ticket was closed as we through we found the root and fixed it but the issue still persist. The problem is that we don't have a developer with a SkiFi based unit so it is hard to fix it.

Here are the issue in the upsteam: fredrike/pydaikin#29 and we have discussions here: fredrike/pydaikin#24 (comment)

@sirdung
Copy link

sirdung commented Sep 16, 2024

This ticket was closed as we through we found the root and fixed it but the issue still persist. The problem is that we don't have a developer with a SkiFi based unit so it is hard to fix it.

Here are the issue in the upsteam: fredrike/pydaikin#29 and we have discussions here: fredrike/pydaikin#24 (comment)

Thank you, my skills are very limited, but if theres any test or anything I can be walked through and do i'm more than happy to try and help.

@jahmai
Copy link

jahmai commented Sep 16, 2024

Also happy to help. I'm not a python dev, but I work with software for a living so I can follow technical instructions... usually ;)

@fredrike
Copy link
Contributor

Please move this discussion to fredrike/pydaikin#29, I need extensive logs, with code formatting (```) or:

image

And I'll try to write a test-case so we can make sure that things don't break in the future either.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.