Coder Social home page Coder Social logo

Comments (21)

rawframe avatar rawframe commented on June 11, 2024

I get 'unavailable' also in front end.
Reverted the core to a know working version but still not working.
I assume the problem is with the newer 9.4 OS. I am going to try downgrading the OS.

Log says:

[org.bluez.Error.Failed] le-connection-abort-by-local
18:51:32 – (ERROR) daikin_madoka-main (custom integration) - message first occurred at 18:42:46 and shows up 233 times
[org.bluez.Error.Failed] le-connection-abort-by-local
18:51:31 – (ERROR) runner.py - message first occurred at 18:43:54 and shows up 226 times
Waiting on integrations to complete setup: daikin_madoka
18:51:13 – (WARNING) bootstrap.py - message first occurred at 18:43:12 and shows up 9 times
Unexpected error importing daikin_madoka/cast.py
18:48:12 – (ERROR) loader.py - message first occurred at 18:42:38 and shows up 3 times

2022-12-14 18:42:38.975 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing daikin_madoka/cast.py
2022-12-14 18:42:46.813 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] le-connection-abort-by-local
2022-12-14 18:42:53.546 ERROR (MainThread) [pymadoka.connection] Characteristic XXXXXXX not found!
2022-12-14 18:43:01.456 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing daikin_madoka/significant_change.py
2022-12-14 18:43:12.796 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: daikin_madoka
2022-12-14 18:43:14.066 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] le-connection-abort-by-local
2022-12-14 18:43:19.941 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] le-connection-abort-by-local
2022-12-14 18:43:25.961 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] le-connection-abort-by-local
2022-12-14 18:43:54.162 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] Operation failed with ATT error: 0x0e (Unlikely Error)
2022-12-14 18:43:54.559 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] le-connection-abort-by-local
2022-12-14 18:43:56.586 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] Operation already in progress
2022-12-14 18:43:56.596 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] br-connection-canceled

there are hundreds of these final messages.

Hope you can do your magic... must be annoying that HA is always bringing new problems!
Better than always trying to fix when HA makes changes, does someone want to help convert his code to run on another rpi or esp32 with mqtt ?

Thanks in advance

from daikin_madoka.

rawframe avatar rawframe commented on June 11, 2024

Rolled back to last working setup:
OS Version: 9.0
Home Assistant Core : 2022.10 1

But did not work still and got this error when trying to access and reconnect devices:

ssh bluetoothctl
Waiting to connect to bluetoothd.. .dbus[213]: arguments to dbus_connection_get_object_path_data() were incorrect,
This is normally a bug in some application using the D-Bus library.
failed in file dbus-connection.c line 5921.

from daikin_madoka.

mduran80 avatar mduran80 commented on June 11, 2024

from daikin_madoka.

mduran80 avatar mduran80 commented on June 11, 2024

from daikin_madoka.

Leobaillard avatar Leobaillard commented on June 11, 2024

Did you also remove the integration before doing so?

from daikin_madoka.

mduran80 avatar mduran80 commented on June 11, 2024

from daikin_madoka.

Leobaillard avatar Leobaillard commented on June 11, 2024

I tried on my end, but I'm getting the same issue after re-pairing the device and rebooting HA.

from daikin_madoka.

rawframe avatar rawframe commented on June 11, 2024

Thanks @mduran80

There was new HA update yesterday and after installing this everything returned back to normal.
Still would be great to remove the HA dependency issues and migrate the software to esp32 with mqtt.

from daikin_madoka.

BeFygo avatar BeFygo commented on June 11, 2024

Thanks @mduran80

There was new HA update yesterday and after installing this everything returned back to normal. Still would be great to remove the HA dependency issues and migrate the software to esp32 with mqtt.

Hi @rawframe,
I'm a fan of the idea to migrate this software to MQTT independent from HA.
I already made an attempt to create a docker image for multiple device compatibility, communication works with CMD lines but did not get MQTT working properly.

If this migration project start I can help with testing/troubleshooting, unfortunately I have only basic ESP programming skills.

from daikin_madoka.

Leobaillard avatar Leobaillard commented on June 11, 2024

I'm still experiencing this problem on my end. I uninstalled the integration, unplugged the BT controller, restarted my HA host, updated HA, unpaired everything, restarted the HVAC module, repaired everything, but still no luck. I get the same error message. Is there anything I can test to find more info for you maybe?

Thanks for your support!

from daikin_madoka.

mduran80 avatar mduran80 commented on June 11, 2024

Are you using ESPHome at the same time?

from daikin_madoka.

BeFygo avatar BeFygo commented on June 11, 2024

@Leobaillard
I'm also still experiencing this problem.

I have tested and experimented with this issue with 3 different computers, 2 usb bluetooth dongles, x different operating systems and kernels.

My latest findings are that restoring my backupfiles keeps braking the connection between the integration and bluetooth.
If I install a fresh Home Assistant (latest version) and setup only the basics to run madoka it works like a charm.

@mduran80
Is there something in the ".storage" folder of HA that interacts with madoka?

from daikin_madoka.

mduran80 avatar mduran80 commented on June 11, 2024

from daikin_madoka.

Leobaillard avatar Leobaillard commented on June 11, 2024

Are you using ESPHome at the same time?

Yes I have ESPHome running (not using any bluetooth stuff, but still, I'm using it).

from daikin_madoka.

BeFygo avatar BeFygo commented on June 11, 2024

Not sure, it has been a long time since I wrote it. I will have a look at it when I get home, it could be HA storing it itself. El El jue, 26 ene 2023 a las 13:20, BeFygo @.> escribió:

@Leobaillard https://github.com/Leobaillard I'm also still experiencing this problem. I have tested and experimented with this issue with 3 different computers, 2 usb bluetooth dongles, x differten operating systems and kernels. My latest findings are that restoring my backupfiles keeps braking the connection between the integration and bluetooth. If I install a fresh Home Assistant (latest version) and setup only the basics to run madoka it works like a charm. @mduran80 https://github.com/mduran80 Is there something in the ".storage" folder of HA that interacts with madoka? — Reply to this email directly, view it on GitHub <#26 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFK3CT27YJCL6NFDYHQKXTTWUJTYTANCNFSM6AAAAAAS6JXSNA . You are receiving this because you were mentioned.Message ID: @.
>

I noticed that there was still some data referenced to madoka in core.device_registry after deleting the integration

from daikin_madoka.

BeFygo avatar BeFygo commented on June 11, 2024

So what worked for me (for now)

Is after a update and this issue (like always for me) start to occure:

  • Delete the device in the integration page
  • Restart HA
  • After a full restart, stop HA
  • Backup "core.device_registry" file located in ".storage"
  • Edit "core.device_registry" and delete the data still referencing madoka and save
  • Start HA
    #If editing was succesfull HA should start properly.
  • Add the device in the integration page
  • Check if the Bluetooth integration (for your 'usb'bluetooth 'dongle') is active

from daikin_madoka.

mduran80 avatar mduran80 commented on June 11, 2024

Are you using ESPHome at the same time?

Yes I have ESPHome running (not using any bluetooth stuff, but still, I'm using it).

Please try disabling ESPHome. I just found this and could be related:

https://community.home-assistant.io/t/having-an-issue-with-bluetooth-proxy-with-homekit-controller-sensor/471532/4

from daikin_madoka.

Leobaillard avatar Leobaillard commented on June 11, 2024

Are you using ESPHome at the same time?

Yes I have ESPHome running (not using any bluetooth stuff, but still, I'm using it).

Please try disabling ESPHome. I just found this and could be related:

https://community.home-assistant.io/t/having-an-issue-with-bluetooth-proxy-with-homekit-controller-sensor/471532/4

I disabled ESPHome, disabled the devices that I use with it, removed any Madoka integration/configuration, rebooted the HA host, added back the integration (the device is still paired with the adapter), but the problem persists unfortunately...

from daikin_madoka.

Leobaillard avatar Leobaillard commented on June 11, 2024

Sorry for pulling this back up, but I still haven't found any solution and, with the hot days coming, it would be awesome to be able to manage the AC through Home Assistant! Thanks!

from daikin_madoka.

BeFygo avatar BeFygo commented on June 11, 2024

Sorry for pulling this back up, but I still haven't found any solution and, with the hot days coming, it would be awesome to be able to manage the AC through Home Assistant! Thanks!

Have you tried this ?#26 (comment)

Ps: remember to read the full page for Bluetooth on home assistant website, because there are allot of things that can go wrong there.

from daikin_madoka.

Leobaillard avatar Leobaillard commented on June 11, 2024

I had done this indeed. However, I updated everything, re-paired the device and added the integration back, and it works now! Thanks!

from daikin_madoka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.