Closed verhoevendanny closed 1 week ago
Hey there @elupus, mind taking a look at this issue as it has been labeled with an integration (gardena_bluetooth
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
gardena_bluetooth documentation gardena_bluetooth source (message by IssueLinks)
Can you tell me what equipment this is? Link to product page? Also what firmware version does the official application report?
Hello,
Latest firmware available : 1.7.23.29
greetz Danny
Op do 6 jun 2024 om 12:26 schreef Joakim Plate @.***>:
Can you tell me what equipment this is? Link to product page? Also what firmware version does the official application report?
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118956#issuecomment-2151935212, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXSC3UYYDTFJ7UKRMG3O43ZGA2NDAVCNFSM6AAAAABI4MVW2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRHEZTKMRRGI . You are receiving this because you authored the thread.Message ID: @.***>
-- Danny Verhoeven Berouw 143 b301 9000 Gent (0471) 18 39 72
Okey. I think this is related to some changes in esp gateway's.
@verhoevendanny How do you connect to the device. Are you using an esp ble gateway?
Yes, via esp32-bluetooth-proxy-7edb7c
Greetz Danny
Op do 6 jun 2024 16:19 schreef Joakim Plate @.***>:
@verhoevendanny https://github.com/verhoevendanny How do you connect to the device. Are you using an esp ble gateway?
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118956#issuecomment-2152664081, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXSC3VYJCBCIHN3SIY5X4DZGBVYRAVCNFSM6AAAAABI4MVW2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJSGY3DIMBYGE . You are receiving this because you were mentioned.Message ID: @.***>
Can you try an restart the gateway and see if the device is accepted?
Do you have more than one gateway btw?
Hello,
No, their is a bluetooth connection on the mini PC where HA is running on.
But i tested the link with your add-on in a room far from the PC also.
Greetz
Op do 6 jun 2024 16:36 schreef Joakim Plate @.***>:
Do you have more than one gateway btw?
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118956#issuecomment-2152701156, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXSC3RRKLHGGYOXQKBQVATZGBXWDAVCNFSM6AAAAABI4MVW2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJSG4YDCMJVGY . You are receiving this because you were mentioned.Message ID: @.***>
Later this evening when i'm home
Op do 6 jun 2024 16:33 schreef Joakim Plate @.***>:
Can you try an restart the gateway and see if the device is accepted?
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118956#issuecomment-2152695167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXSC3S3FBOEHYMTQYOLNFLZGBXLXAVCNFSM6AAAAABI4MVW2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJSGY4TKMJWG4 . You are receiving this because you were mentioned.Message ID: @.***>
Same problem here. Have 3 M5Stack Atom bluetooth proxys for 3 gardena valves. Get same error on 1 Proxy, so 1 valve is down. It occured after last HA Update and restart, i did on Sunday. Today i did the 2024.06 Update, but no change. Firmware at Gardena Valve is the newest. ESP Home and proxys have newest updates.
Same problem here. Have 3 M5Stack Atom bluetooth proxys for 3 gardena valves. Get same error on 1 Proxy, so 1 valve is down. It occured after last HA Update and restart, i did on Sunday. Today i did the 2024.06 Update, but no change. Firmware at Gardena Valve is the newest. ESP Home and proxys have newest updates.
Can you restart all of your proxies and see if that changes which device it fails to connect to?
I have disconnected all 3 Proxys. Then i completely, restarted HA. Then alle 3 valves were offline. Now I have pluged in Proxy 2 and 3 and got the same Error - only for valve 1.
Logger: homeassistant.config_entries Quelle: config_entries.py:594 Erstmals aufgetreten: 18:17:51 (1 Vorkommnisse) Zuletzt protokolliert: 18:17:51
Error setting up entry Gardena Ventil 1 for gardena_bluetooth Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/gardena_bluetooth/init.py", line 55, in async_setup_entry sw_version = await client.read_char(DeviceInformation.firmware_version, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/gardena_bluetooth/client.py", line 180, in read_char return char.decode(await self.read_char_raw(char.uuid)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/gardena_bluetooth/parse.py", line 82, in decode return data.decode("ASCII") ^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 3: ordinal not in range(128)
Can you check if its always same valve or if it depends on the proxy. Disconnect the proxies. Plug one in, check for error. If you get the error disconnect it again. Borrow another proxy and connect it at that location.
The last months I had Problems with all 3 valves. Always 1 of them was offline. Then there were same changes in ESP home in May and then it worked. I was on vacation from May 14th til June 2nd and everything worked. I did no changes in this time. After I returned, rhere were some Updates (HA, ESP Home, ESP bluetooth proxy,...). After Update and restart I got this error. Maybe it is a problem with the ESP proxy config? I compare all 3 and send an update here.
Update: Config is the same at all 3 proxys. So I took off the battery of valve 1, inserted it again. Then I did a HA restart. Now all 3 valves are working again.
So it is still a problem with the connection, when you restart the whole HA system. I think the valve still thinks there is a Connecticut, but HA tries again and again and doesn't get a handshake.
I wish you would have done as i asked. Its not a a connection issue. It is connected when the error in the log occurs. It is getting invalid data. Im trying to figure out where that data is from.
I did what you have asked, sorry I forgot to write. I have disconnected all 3 proxys, then I have connected Proxy1 -> valve 1 offline, valve 2 and 3 online.
Then I have disconnected Proxy1 again and connected Proxy2. -> valve 1 offline, valve 2 and 3 online.
Then I have disconnected Proxy2 again and connected Proxy3. -> valve 1 offline, valve 2 and 3 online.
Everytime the same problem with valve 1. All 3 valves have the same actual firmware. When 1 take out the battery and put it in again, it works.
And now I got 2 Errors (I know them, because I get them every day), but the valves still work.
NO.1########: Logger: homeassistant.components.gardena_bluetooth Quelle: helpers/update_coordinator.py:344 Integration: Gardena Bluetooth (Dokumentation, Probleme) Erstmals aufgetreten: 19:34:34 (1 Vorkommnisse) Zuletzt protokolliert: 19:34:34
Error fetching Gardena Bluetooth Data Update Coordinator data: Unable to update data for 98bd0011-0b0e-421a-84e5-ddbf75dc6de4 due to Communcation failed with device: Gardena Bluetooth - B0:D2:78:99:E1:80: Failed to connect after 9 attempt(s): Error ESP_GATT_CONN_FAIL_ESTABLISH while connecting: Connection failed to establish: Interference/range; External Bluetooth adapter w/extension may help; Extension cables reduce USB 3 port interference
NO.2########: Logger: homeassistant.components.gardena_bluetooth Quelle: helpers/update_coordinator.py:318 Integration: Gardena Bluetooth (Dokumentation, Probleme) Erstmals aufgetreten: 19:17:24 (3 Vorkommnisse) Zuletzt protokolliert: 19:36:55
Timeout fetching Gardena Bluetooth Data Update Coordinator data
Thanks! That confirms its something is odd with the state of that specific device. We have by that ruled out the esphome internal device caches.
So, i wonder if we have lingering connections on home assistant restarts that places the devices in some odd state. So if the restart happen right when a device is connected it goes wonky and does not recover.
@verhoevendanny can you confirm that removing the device batteries let it get added in home assistant?
Hello, It is already in HA but in a wrong state... Setup failed. Removing batteries does not do anything within HA.
Question... Do I have to perform setup first via the app and then HA OR do I have to perform a reset and connect it then to HA?
Danny
Op do 6 jun. 2024 20:36 schreef Joakim Plate @.***>:
Thanks! That confirms its something is odd with the state of that specific device. We have by that ruled out the esphome internal device caches.
So, i wonder if we have lingering connections on home assistant restarts that places the devices in some odd state. So if the restart happen right when a device is connected it goes wonky and does not recover.
@verhoevendanny https://github.com/verhoevendanny can you confirm that removing the device batteries let it get added in home assistant?
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118956#issuecomment-2153159961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXSC3R6M7K7WZ27GWIE3J3ZGCT2HAVCNFSM6AAAAABI4MVW2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTGE2TSOJWGE . You are receiving this because you were mentioned.Message ID: @.***>
You only need the App for firmware update. Better you reset it and integrate it directly in HA.
Question: after you removed the battery and inserted again, did you restart HA (yellow button)?
Those are different errors @frontside76 lets keep this issue for the setup exceptions.
Is a solution possible? It is still not working!
@verhoevendanny we don't know yet. When 2024.6.2 is out please try again. It should handle the exception you reported. But its not sure if that solve your issue yet.
Mine is working since 5 days, when i put out the battery, inserted again and started HA
Installed 2024.6.2, then reinstalled the integration. Found it but still mentioning No devices or entities found. Nothing in the log. So it is not yet solved.
Well. The exception is solved. Your device is likely in bootloader mode as was reported in another ticket.
Enable debug logging on the integration, reload it and disable debug logging. Then post that file here
Doesnt look like you reloaded the integration?
I did now a restart HA, and then debug error_log-3.txt
I think you misunderstood. I dont want you to restart home assistant. I want you to reload just the gardena integration while debug is turned on. That way it reinitialize and i get its startup information in the logs.
No I did it correct! This morning I reloaded the integration 3 time and this is what comes out in the log: 2024-06-12 08:37:13.770 DEBUG (MainThread) [homeassistant.components.gardena_bluetooth] Finished fetching Gardena Bluetooth Data Update Coordinator data in 0.000 seconds (success: True) 2024-06-12 08:37:18.570 DEBUG (MainThread) [homeassistant.components.gardena_bluetooth] Finished fetching Gardena Bluetooth Data Update Coordinator data in 0.000 seconds (success: True) 2024-06-12 08:37:25.143 DEBUG (MainThread) [homeassistant.components.gardena_bluetooth] Finished fetching Gardena Bluetooth Data Update Coordinator data in 0.000 seconds (success: True)
Ok. I was sure it would log the setup process. Crap, i need to add bluetooth logging to the log settings for that integration
Hello, this morning nu version, tested it but same result. Debugging is now available
Op wo 12 jun. 2024 09:18 schreef Joakim Plate @.***>:
Ok. I was sure it would log the setup process. Crap, i need to add bluetooth logging to the log settings for that integration
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118956#issuecomment-2162285764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXSC3RDLFD76VRZ7PG7YU3ZG7Y3RAVCNFSM6AAAAABI4MVW2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRSGI4DKNZWGQ . You are receiving this because you were mentioned.Message ID: @.***>
2024-06-16 08:12:56.597 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration myenergy 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-06-16 08:12:56.602 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration kamstrup_403 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-06-16 08:12:56.606 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration oralb_ble 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-06-16 08:12:56.610 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration bibliotheek_be 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-06-16 08:12:56.615 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-06-16 08:12:56.619 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tplink_deco 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-06-16 08:12:56.622 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration garmin_connect 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-06-16 08:12:56.626 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration average 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-06-16 08:12:56.630 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tahoma 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-06-16 08:12:56.632 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration comfoconnect 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-06-16 08:12:56.635 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nodered 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-06-16 08:12:56.638 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration afvalbeheer 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-06-16 08:13:06.762 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues 2024-06-16 08:13:11.621 WARNING (MainThread) [custom_components.comfoconnect] Alarm received for Node 1:
2024-06-16 08:13:12.517 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from nodered, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'nodered' custom integration
2024-06-16 08:13:12.536 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from nodered, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'nodered' custom integration
2024-06-16 08:13:25.026 WARNING (zeroconf-ServiceBrowser-_googlecast._tcp-124) [pychromecast.dial] Failed to determine cast type for host
This device is as expected not listing the characteristics expected. Looks to be in boot mode.
Does your bluetooth proxy ha have service cache enabled "cache_services: true"?
no idea, where do i have to check that?
I can only find: substitutions: name: esp32-bluetooth-proxy-7edb7c friendly_name: Bluetooth Proxy 7edb7c packages: esphome.bluetooth-proxy: @.* esphome: name: ${name} name_add_mac_suffix: false friendly_name: ${friendly_name} api: encryption: key: **
wifi: ssid: !secret wifi_ssid password: !secret wifi_password
web_server:
Op zo 16 jun 2024 om 10:30 schreef Joakim Plate @.***>:
This device is as expected not listing the characteristics expected. Looks to be in boot mode.
Does your bluetooth proxy ha have service cache enabled "cache_services: true"?
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118956#issuecomment-2171235088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXSC3TMQ7KJCNMOJ2NFINLZHVEJLAVCNFSM6AAAAABI4MVW2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGIZTKMBYHA . You are receiving this because you were mentioned.Message ID: @.***>
-- Danny Verhoeven Berouw 143 b301 9000 Gent (0471) 18 39 72
Ok. Then it should not be active. Could you try the factory reset of the device. Take out batteries, hold down button, insert batteries, wait around 3 seconds before releasing.
For some reason it seem to not start the main firmware
Sorry, the same result.
Op zo 16 jun. 2024 11:09 schreef Joakim Plate @.***>:
Ok. Then it should not be active. Could you try the factory reset of the device. Take out batteries, hold down button, insert batteries, wait around 3 seconds before releasing.
For some reason it seem to not start the main firmware
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118956#issuecomment-2171275094, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXSC3S67NSVIC2HFQVWMH3ZHVI4BAVCNFSM6AAAAABI4MVW2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGI3TKMBZGQ . You are receiving this because you were mentioned.Message ID: @.***>
Nothing new on this issue? I have the same constant disconnects with the Gardena Water Computer but without esp. normal Intel NUC Bluetooth device.
The built-in Bluetooth is generally worse. But this issue is about not being able to setup the device. So sounds unrelated. Look in the other issue.
Today it worked suddenly!
The problem
The Integration find itself the "Water Control Bluetooth" equipment. But it always ends with an error : No devices or entities found
What version of Home Assistant Core has the issue?
core-2024.6.0
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
home-assistant_gardena_bluetooth_2024-06-06T10-04-28.477Z.log home-assistant_gardena_bluetooth_2024-06-06T10-04-28.477Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response