core icon indicating copy to clipboard operation
core copied to clipboard

Integration Daikin stopped working

Open trvrcr opened this issue 1 year ago • 3 comments

The problem

image

The integration cannot connect to the units anymore (stopped working on the 15th Febuary which does not coincide with an update. The units are still available in the onecta app of Daikin

image

What version of Home Assistant Core has the issue?

core-2024.2.2

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

Daikin

Link to integration documentation on our website

https://www.home-assistant.io/integrations/daikin

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

trvrcr avatar Feb 23 '24 13:02 trvrcr

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)

home-assistant[bot] avatar Feb 23 '24 13:02 home-assistant[bot]

My unit with an older AP (BRP072A42) has stopped working recently but one with the newer version (BRP072C42) is still working fine. Have tried removing and not having any luck trying to add again.

peedub avatar Feb 25 '24 04:02 peedub

For completeness mine are version (BRP069B4x)

trvrcr avatar Feb 25 '24 18:02 trvrcr

I had the same issue. It turned out to be due different IP assigned by the DHCP server. This integration depends on the static IPs of the Daikin controllers. Check whether the IP address of your Daikin controllers did not change over the time - and if it did, set bind it to the IP address it used before when it was working fine.

This fixed it for me. Unfortunately power consumption related entities disappeared. So there's been some change in the integration. image

007hacky007 avatar Feb 26 '24 13:02 007hacky007

I'm having the same issues. The IPs of the devices are still the same as configured in HA.

vanhoofseppe avatar Feb 26 '24 15:02 vanhoofseppe

I can confirm the IP's have changed for some reason. I think the integration could be made better by utilizing the mac address as unique identifier. @fredrike Should I close the issue, or do you intend to change the way you identify the device.

trvrcr avatar Feb 26 '24 20:02 trvrcr

For anyone interested in how to change the IP's of the device on HA to keep your Historic data:

https://community.home-assistant.io/t/wth-are-the-essential-configs-of-integrations-impossible-to-edit/220071

from markdavidoff Mark Jul '22

+1 on this. The ability to edit a device’s IP via the UI would be good.

I had an IP conflict, so I had to:

Install the SSH add on
Go to ~/config/.storage/
Edit (using nano) core.config_entries
Restart Home Assistant

I know the situation is rare, but having the ability to edit this in the UI would save a lot of time, or to get HA to re-detect IPs via MAC address if a device somehow goes offline. It could also report on possible IP conflicts in theory.

trvrcr avatar Feb 27 '24 07:02 trvrcr

The integration stopped working for me too, funny enough around the same date.

I've just configured DHCP to assign a static IP address to my Daikin AC, the same one as it had before, and the integration started working straight away again.

arievanderwende avatar Mar 01 '24 14:03 arievanderwende

@atyourservers @trvrcr guys, could you please check whether your Daikin power consumption related entities disappeared too?

Related issue: https://github.com/home-assistant/core/issues/111480

I've fixed my IPs as stated above, it fixed the integration, but the Daikin related power consumption entities are no longer present, which is quite a shame.

007hacky007 avatar Mar 01 '24 14:03 007hacky007

@atyourservers @trvrcr guys, could you please check whether your Daikin power consumption related entities disappeared too?

Related issue: #111480

I've fixed my IPs as stated above, it fixed the integration, but the Daikin related power consumption entities are no longer present, which is quite a shame.

The power consumption is not registered during the time the entity was not connected to HA. But before and after the connection was established the power consumption data is available

trvrcr avatar Mar 01 '24 20:03 trvrcr

@007hacky007, I assigned a static IP address via DHCP, restarted the WiFi module of the AC so that it would pick up the IP address, and everything started working again without having to do anything in HA. Power consumption entity is still there. But the outside temperature entity is no longer available all of a sudden. Have to look into that. A reboot might solve that.

arievanderwende avatar Mar 01 '24 20:03 arievanderwende

@atyourservers @trvrcr thank you for your response. Restart of the HA fixed it. Feeling bad for not trying it before commenting.

007hacky007 avatar Mar 02 '24 12:03 007hacky007

I'm having the same issues. The IPs of the devices are still the same as configured in HA.

Same issue here, BRP069B4x, around the same date. IP was already fixed and has not changed. Access to the device via the Onecta app works fine Restarting HA did not help. Reboot neither.

A ping of the BRP069B4x from my PC showed no response, so I have disconnected the wifi module from the network (from the router software) and reconnected it. Everything is fine now.

Maybe an IP conflict (?) Powering off the module should have work. Maybe restarting the internet router should have work as well.

Outside temperature which had disappeared several months ago is back again

chrsc59 avatar Mar 03 '24 10:03 chrsc59

Outside temperature is working again for me now. No reboot needed, it just started working again overnight.

@chrsc59, I don't know how you assigned a static IP address, but if you configured it on the WiFi module, then perhaps your router assigned the same IP address to another service on your network via DHCP. Better to assign a static IP address via DHCP to your WiFi module. But perhaps you already did that. Glad it's working now for you too.

arievanderwende avatar Mar 03 '24 11:03 arievanderwende

I can confirm the IP's have changed for some reason. I think the integration could be made better by utilizing the mac address as unique identifier. @fredrike Should I close the issue, or do you intend to change the way you identify the device.

@kingy444 could you take a look at this too? I don't know the best way to migrate unique-ids (we should of course not use IP-address here).

fredrike avatar May 24 '24 08:05 fredrike

My BRP069B41 controller ( inside unit: FTXM50WVMA ) stopped working some time ago after a firmware update. I'm getting HA back up and running now and would like to fix this.

With a MITM Proxy and when using the app, I can see :

GET http://192.168.X.X/config/adapter/user_info
{"rsc":2000,"method":"polling","resource_id":12081}

And lots of these: PUT http://192.168.X.X/config/adapter/datetime GET http://192.168.X.X/config/adapter/timezone

And lots of POSTs like :

POST http://192.168.X.X/dsiot/multireq

This command is doing all the heavy lifting I think - but it's always a POST command.

I'd be happy to help test out any fixes you might have.

dkam avatar Aug 05 '24 11:08 dkam

Stopped working for me to

Static ip and no previous problems until I updated firmware to Core 2024.08.1. I removed the integration and restarted HA. After restart HA automatically discovers the Daikin hp connected to the network. When configuring the integration, I provide only the IP as I have a BRP069B4x. This results in a "Unknown Error" and the following log:

Logger: homeassistant.components.daikin.config_flow
Source: components/daikin/config_flow.py:87
integration: Daikin AC (documentation, issues)
First occurred: 23:40:47 (9 occurrences)
Last logged: 23:51:41

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 189, 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 138, in _get_resource
    headers = self.headers
              ^^^^^^^^^^^^
AttributeError: 'DaikinBRP069' object has no attribute 'headers'

grlarsen avatar Aug 15 '24 22:08 grlarsen

Stopped working for me to

Static ip and no previous problems until I updated firmware to Core 2024.08.1. I removed the integration and restarted HA. After restart HA automatically discovers the Daikin hp connected to the network. When configuring the integration, I provide only the IP as I have a BRP069B4x. This results in a "Unknown Error" and the following log:

Logger: homeassistant.components.daikin.config_flow
Source: components/daikin/config_flow.py:87
integration: Daikin AC (documentation, issues)
First occurred: 23:40:47 (9 occurrences)
Last logged: 23:51:41

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 189, 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 138, in _get_resource
    headers = self.headers
              ^^^^^^^^^^^^
AttributeError: 'DaikinBRP069' object has no attribute 'headers'

There is a known issue with 2024.8.1, it will be solved in 2024.8.2.

fredrike avatar Aug 16 '24 04:08 fredrike

it will be solved in 2024.8.2.

I have just upgraded to 2024.8.2 and can confirm I have been able to successfully configure my Daikin Devices..

Thanks..

image

purcell-lab avatar Aug 16 '24 22:08 purcell-lab

@home-assistant close

fredrike avatar Aug 17 '24 09:08 fredrike