-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
Unable to add a new Gardena Water Computer #117550
Comments
Hey there @elupus, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) gardena_bluetooth documentation |
Can you check with the official client what firmware that report (full string including any special characters) |
This is what I get from manually running your Python scripts
If I remove the
So for some reason it can't read the characteristic and by default it returns |
I cant make what you wrote above make sense. First it seems like it did read the firmware version, then you then say didnt. Are you sure both those attempts are from the same device? Also its not showing same error as it did in HA, so further indicate a different device. |
Ps. None would not be equal to the hex char 0xe4 mentioned in your initial log. |
It's possible the first error is from a Husqvarna mower. The integration doesn't print addresses or allow specifying one so it's hard to be sure |
It should not list the mower, so aught to have been a watering computer. |
This diff fixes the issue diff --git a/homeassistant/components/gardena_bluetooth/config_flow.py b/homeassistant/components/gardena_bluetooth/config_flow.py
index c7631b62f4..cd6070bc41 100644
--- a/homeassistant/components/gardena_bluetooth/config_flow.py
+++ b/homeassistant/components/gardena_bluetooth/config_flow.py
@@ -76,8 +76,6 @@ class GardenaBluetoothConfigFlow(ConfigFlow, domain=DOMAIN):
raise AbortFlow(
"cannot_connect", description_placeholders={"error": str(exception)}
) from exception
- finally:
- await client.disconnect()
return {CONF_ADDRESS: self.address} It looks like the disconnect and connect are too quick for ESPHome, so the setup fails. Running firmware |
That is the old change of never disconnecting which is not acceptable. What espproxy version are you using? |
For the original issue here. A change in the library to ignore unknown chars on decode would be acceptable. |
The fast reconnect we could solve with some explicit delay after disconnect. |
It's just not disconnecting during initial setup. I really never understood why you think it's not a good idea
2024.5.0 |
Because the client object is not shared. It will construct a new object when the entry is setup. So now there are two clients active, one that will potentially disconnect at some random time in the future. Did you try the suggested esp idf upgrade that bdraco suggested in the other thread. |
ESPHome 2024.5.0 uses esp idf 4.4.7, it's the latest and greatest |
The problem
When attempting to add a new computer I keep getting this error
What version of Home Assistant Core has the issue?
core-2024.5.3
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
gardena_bluetooth
Link to integration documentation on our website
https://www.home-assistant.io/integrations/gardena_bluetooth
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
The text was updated successfully, but these errors were encountered: