Open notmayo opened 3 months ago
Hey there @tr4nt0r, mind taking a look at this issue as it has been labeled with an integration (iron_os
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
iron_os documentation iron_os source (message by IssueLinks)
ESPHome Bluetooth proxies have some limitations regarding not only the number of active connections but also the number of characteristics it can handle. I encountered this behaviour while reading all characteristics of the Pinecil with no other device connected. There are almost 50, on the last 6 i also got this same error. When connected with a normal bluetooth adapter like the Raspberry Pi's on-board adapter i never encountered these problems. The integration currently only reads around 5 characteristics, so it should not be a problem.
Do you have other devices with active connection that are connected to the same Bluetooth proxy and if so, do you know how many characteristics they have in total?
Heyo, thanks for getting back to me. I only have passive BT devices connected (6 mi flora plant sensors) currently.
When the integration tries to load the two irons, it never connects to them when they're on and has not made any entities.
The plant sensors also use active connections though HA will only connect to them when they advertise changes. I have one of those. I counted 8 characteristics. That makes 48 in total and it seems these are kept cached by the proxy. So that should be the reason why only the first 2 characteristics can be read
+1 same issue. My iron did connect at one point because I had it in another part of the house, but now it back to trying to use the proxy. I don’t have any other active BLE devices. HA Yellow uses the built-in CM4 BT, and my Proxy is a LilyGo T-Internet-POE, if that’s useful.
2024-09-20 13:50:54.037 DEBUG (MainThread) [pynecil.client] Failed to read characteristic 9eae1001-9d0d-48c5-aa55-33e27f9bc533: [org.bluez.Error.Failed] Not connected
2024-09-20 13:50:54.037 DEBUG (MainThread) [homeassistant.components.iron_os.coordinator] Finished fetching iron_os data in 0.003 seconds (success: False)
2024-09-20 13:50:58.366 DEBUG (MainThread) [pynecil.client] Failed to read characteristic 9eae1003-9d0d-48c5-aa55-33e27f9bc533: [org.bluez.Error.Failed] Not connected
2024-09-20 13:51:02.264 DEBUG (MainThread) [pynecil.client] Failed to read characteristic 9eae1003-9d0d-48c5-aa55-33e27f9bc533: [org.bluez.Error.Failed] Not connected
The problem
Bluetooth proxy is setup in active mode and both irons have been freshly flashed to 2.22. HA discovered the irons instantly.
What version of Home Assistant Core has the issue?
core-2024.8.1
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
IronOS / Pinecil
Link to integration documentation on our website
https://www.home-assistant.io/integrations/iron_os/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response