Skip to content
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

Gardena 6300 Pump not found with bluetooth_proxy #130638

Closed
Trickfilm400 opened this issue Nov 14, 2024 · 5 comments · Fixed by #133502
Closed

Gardena 6300 Pump not found with bluetooth_proxy #130638

Trickfilm400 opened this issue Nov 14, 2024 · 5 comments · Fixed by #133502

Comments

@Trickfilm400
Copy link

The problem

I have a Gardena 6300 Water Pump which should be supported as written on the integration's page. I use an esp32 with the bluetooth_proxy to get bluetooth into homeassistant, but the pump doesn't show up and when trying to add it manually, "No devices found on the network" is returned.

What version of Home Assistant Core has the issue?

2024.10.x, 2024.11.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

gardena_bluetooth

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

esp32_ble_tracker:
  # also didn't worked without this
  on_ble_advertise:
    - mac_address:
        - 34:68:B5:2C:2E:DF
      then:
        - lambda: |-
            ESP_LOGD("ble_adv", "New BLE device");
            ESP_LOGD("ble_adv", "  address: %s", x.address_str().c_str());
            ESP_LOGD("ble_adv", "  name: %s", x.get_name().c_str());
            ESP_LOGD("ble_adv", "  Advertised service UUIDs:");
            for (auto uuid : x.get_service_uuids()) {
                ESP_LOGD("ble_adv", "    - %s", uuid.to_string().c_str());
            }
            ESP_LOGD("ble_adv", "  Advertised service data:");
            for (auto data : x.get_service_datas()) {
                ESP_LOGD("ble_adv", "    - %s: (length %i)", data.uuid.to_string().c_str(), data.data.size());
            }
            ESP_LOGD("ble_adv", "  Advertised manufacturer data:");
            for (auto data : x.get_manufacturer_datas()) {
                ESP_LOGD("ble_adv", "    - %s: (length %i)", data.uuid.to_string().c_str(), data.data.size());
            }
  scan_parameters:
    # tried multiple different values here
    #interval: 1100ms
    #window: 1100ms
    active: true

bluetooth_proxy:
  active: true

Anything in the logs that might be useful for us?

Debug message of the esp32 logs with loglevel verbose

[17:14:14][D][ble_adv:043]:   address: 34:68:B5:2C:2E:DF
[17:14:14][D][ble_adv:044]:   name: GARDENA PTU
[17:14:14][D][ble_adv:045]:   Advertised service UUIDs:
[17:14:14][D][ble_adv:047]:     - 98BD0001-0B0E-421A-84E5-DDBF75DC6DE4
[17:14:14][D][ble_adv:049]:   Advertised service data:
[17:14:14][D][ble_adv:053]:   Advertised manufacturer data:
[17:14:14][D][ble_adv:055]:     - 0x0426: (length 14)

[17:53:50][V][bluetooth_proxy:059]: Proxying raw packet from 34:68:B5:2C:2E:DF, length 21. RSSI: -66 dB
[17:53:50][V][bluetooth_proxy:061]: Proxying 2 packets

Additional information

The mobile app on my smartphone was able to connect and control the pump. A factory reset was performed afterwards again while trying to connect into homeassistant.

@home-assistant
Copy link

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!

Code owner commands

Code owners of gardena_bluetooth 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 gardena_bluetooth 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)


gardena_bluetooth documentation
gardena_bluetooth source
(message by IssueLinks)

@Trickfilm400
Copy link
Author

@elupus Sorry for the ping, any news?

@elupus
Copy link
Contributor

elupus commented Dec 18, 2024

Not had any time really. Best would be if you could try on a standard PC with the python package here https://github.com/elupus/gardena-bluetooth

It should ve able to detect the device.

@Trickfilm400
Copy link
Author

Trickfilm400 commented Dec 18, 2024

No problem, I only need this sometime next year

I've used my laptop with the other program and heres the output, in case this could help you:

$ python -m gardena_bluetooth scan
Scanning for devices
Device: 34:68:B5:2C:2E:DF: GARDENA PTU
 - Service: 98bd0001-0b0e-421a-84e5-ddbf75dc6de4 Husqvarna
 - Data: {}
 - Manu: {1062: b'\x05\x04\x14\x18\x00\x00\x02\x05\x01\x04\x06\x11\x02\x02'}
 -     : ManufacturerData(pairable=True, serial=6164, group=<ProductGroup.GARDEN_PUMP: 17>, model=2, variant=2)
 - RSSI: -73

Running the second command, I got a system popup asking me to connect to the bluetooth device, which I left untouched, as it vanished, as the command exited. On the Pump display it showed the error, that the bluetooth connection wasn't established, yet I got an console output:

Full command output
$ python -m gardena_bluetooth connect 34:68:B5:2C:2E:DF
Connecting to: 34:68:B5:2C:2E:DF
Service: 98bdff00-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 182): Gardena Reset
 -  98bdff03-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 187): Unknown
 -  ['read', 'write']
 -  98bdff04-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 189): Unknown
 -  ['read', 'write']
 -  98bdff01-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 183): Gardena Reset Factory Reset
 -  ['read', 'write']
 -  Data: False
 -  98bdff02-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 185): Unknown
 -  ['read', 'write']
Service: 98bd0c20-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 143): Unknown
 -  98bd0c25-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 152): Unknown
 -  ['read', 'write']
 -  98bd0c23-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 148): Unknown
 -  ['read', 'write']
 -  98bd0c21-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 144): Unknown
 -  ['read', 'write']
 -  98bd0c22-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 146): Unknown
 -  ['read', 'write']
 -  98bd0c24-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 150): Unknown
 -  ['read', 'write']
 -  98bd0c26-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 154): Unknown
 -  ['read', 'write']
Service: 98bd0100-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 75): Gardena Pump
 -  98bd016b-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 128): Unknown
 -  ['read', 'write']
 -  98bd0101-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 76): Gardena Pump Status
 -  ['read', 'notify']
 -  Data: 2
 -  98bd0168-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 122): Unknown
 -  ['read', 'write']
 -  98bd016a-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 126): Unknown
 -  ['read', 'write']
 -  98bd0103-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 82): Gardena Pump Flow Rate
 -  ['read', 'notify']
 -  Data: 28
 -  98bd0104-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 85): Gardena Pump Ptu Mode
 -  ['read', 'write']
 -  Data: 1
 -  98bd0110-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 110): Gardena Pump User Motor Runtime
 -  ['read', 'write']
 -  Data: 2018
 -  98bd010d-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 103): Gardena Pump Cool Down Timer
 -  ['read']
 -  Data: 0
 -  98bd0166-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 118): Unknown
 -  ['read', 'write']
 -  98bd0165-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 116): Unknown
 -  ['read']
 -  98bd0167-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 120): Unknown
 -  ['read', 'write']
 -  98bd010c-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 101): Gardena Pump Safety Pump Time
 -  ['read', 'write']
 -  Data: 5
 -  98bd0164-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 114): Unknown
 -  ['read', 'write']
 -  98bd0107-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 91): Gardena Pump Max Preassure
 -  ['read', 'write']
 -  Data: 2500
 -  98bd0106-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 89): Gardena Pump Min Preassure
 -  ['read', 'write']
 -  Data: 1500
 -  98bd0108-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 93): Gardena Pump Child Lock
 -  ['read', 'write']
 -  Data: False
 -  98bd0105-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 87): Gardena Pump Leakage Detection
 -  ['read', 'write']
 -  Data: True
 -  98bd010a-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 97): Gardena Pump Direct Start
 -  ['read', 'write']
 -  Data: False
 -  98bd0109-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 95): Gardena Pump Filter Reminder
 -  ['read', 'write']
 -  Data: 0
 -  98bd0102-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 79): Gardena Pump Tank Preassure
 -  ['read', 'notify']
 -  Data: 1592
 -  98bd010e-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 105): Gardena Pump Water Temperature
 -  ['read']
 -  Data: 17
 -  98bd0169-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 124): Unknown
 -  ['read', 'write']
 -  98bd010b-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 99): Gardena Pump Max Runtime
 -  ['read', 'write']
 -  Data: 0
 -  98bd010f-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 107): Gardena Pump Error Code
 -  ['read', 'write', 'notify']
 -  Data: bytearray(b'\x00\x00')
 -  98bd0111-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 112): Gardena Pump Total Motor Runtime
 -  ['read']
 -  Data: 2037
Service: 98bd0d10-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 65): Gardena WateringHistory
 -  98bd0d13-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 71): Gardena WateringHistory Skip Reason
 -  ['read']
 -  Data: bytearray(b'@@@@\x00\x00\x00')
 -  98bd0d14-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 73): Gardena WateringHistory Watering Duration
 -  ['read']
 -  Data: [655555, 84, 61, 125, 14, 21, 14]
 -  98bd0d12-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 68): Gardena WateringHistory Timestamp Count
 -  ['read', 'notify']
 -  Data: 7
 -  98bd0d11-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 66): Gardena WateringHistory Timestamp Array
 -  ['read']
 -  Data: [datetime.datetime(2024, 11, 22, 8, 0, 1), datetime.datetime(2024, 11, 22, 9, 1, 25), datetime.datetime(2024, 11, 22, 10, 2, 26), datetime.datetime(2024, 11, 22, 15, 4, 31), datetime.datetime(2024, 11, 22, 15, 36, 22), datetime.datetime(2024, 11, 22, 15, 38, 32), datetime.datetime(2024, 11, 22, 15, 44, 33)]
Service: 98bd0b10-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 42): Gardena DeviceConfiguration
 -  98bd0b12-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 45): Gardena DeviceConfiguration Seasonal Adjust
 -  ['read', 'write']
 -  Data: 100
 -  98bd0b18-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 57): Gardena DeviceConfiguration Custom Device Name
 -  ['read', 'write']
 -  Data: 
 -  98bd0b17-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 55): Gardena DeviceConfiguration First User Start
 -  ['read', 'write']
 -  Data: False
 -  98bd0b13-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 47): Gardena DeviceConfiguration Unix Timestamp
 -  ['read', 'write']
 -  Data: 2024-12-02 17:03:24
 -  98bd0b15-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 51): Gardena DeviceConfiguration Device Language
 -  ['read', 'write']
 -  Data: 0
 -  98bd0b11-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 43): Gardena DeviceConfiguration Rain Pause
 -  ['read', 'write']
 -  Data: 0
 -  98bd0b16-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 53): Gardena DeviceConfiguration Display Brightness
 -  ['read', 'write']
 -  Data: 100
 -  98bd0b14-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 49): Gardena DeviceConfiguration Mobile Device Name
 -  ['read', 'write']
 -  Data: 0
Service: f000ffc0-0451-4000-b000-000000000000 (Handle: 191): Gardena Fota
 -  f000ffc2-0451-4000-b000-000000000000 (Handle: 196): Gardena Fota Image Block Id
 -  ['write-without-response', 'write', 'notify']
 -  f000ffc5-0451-4000-b000-000000000000 (Handle: 200): Gardena Fota Control Point
 -  ['write-without-response', 'notify']
 -  f000ffc1-0451-4000-b000-000000000000 (Handle: 192): Gardena Fota Image Identify
 -  ['write-without-response', 'write', 'notify']
Service: 98bd0c10-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 130): Unknown
 -  98bd0c12-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 133): Unknown
 -  ['read', 'write']
 -  98bd0c11-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 131): Unknown
 -  ['read', 'write']
 -  98bd0c14-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 137): Unknown
 -  ['read', 'write']
 -  98bd0c15-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 139): Unknown
 -  ['read', 'write']
 -  98bd0c13-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 135): Unknown
 -  ['read', 'write']
 -  98bd0c16-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 141): Unknown
 -  ['read', 'write']
Service: 98bd0f10-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 169): Gardena Valve
 -  98bd0f14-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 178): Gardena Valve Manual Watering Time
 -  ['read', 'write']
 -  Data: 1800
 -  98bd0f12-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 173): Gardena Valve Connected State
 -  ['read', 'notify']
 -  Data: True
 -  98bd0f13-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 176): Gardena Valve Remaining Open Time
 -  ['read', 'write']
 -  Data: -1
 -  98bd0f11-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 170): Gardena Valve State
 -  ['read', 'notify']
 -  Data: False
 -  98bd0f15-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 180): Gardena Valve Activation Reason
 -  ['read']
 -  Data: 0
Service: 98bd0010-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 23): Gardena Sensor
 -  98bd0012-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 27): Gardena Sensor Connected State
 -  ['read', 'notify']
 -  Data: False
 -  98bd0015-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 34): Gardena Sensor Battery Level
 -  ['read']
 -  Data: 0
 -  98bd0011-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 24): Gardena Sensor Value
 -  ['read', 'notify']
 -  Data: 0
 -  98bd0013-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 30): Gardena Sensor Type
 -  ['read']
 -  Data: 
 -  98bd0014-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 32): Gardena Sensor Threshold
 -  ['read', 'write']
 -  Data: 80
 -  98bd0017-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 39): Gardena Sensor Force Measurement
 -  ['read', 'write', 'notify']
 -  Data: 0
 -  98bd0016-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 36): Gardena Sensor Measurement Timestamp
 -  ['read', 'notify']
 -  Data: 1970-01-01 01:00:00
Service: 98bd0c30-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 156): Unknown
 -  98bd0c34-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 163): Unknown
 -  ['read', 'write']
 -  98bd0c31-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 157): Unknown
 -  ['read', 'write']
 -  98bd0c33-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 161): Unknown
 -  ['read', 'write']
 -  98bd0c35-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 165): Unknown
 -  ['read', 'write']
 -  98bd0c32-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 159): Unknown
 -  ['read', 'write']
 -  98bd0c36-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 167): Unknown
 -  ['read', 'write']
Service: 00001801-0000-1000-8000-00805f9b34fb (Handle: 12): Generic Attribute Profile
 -  00002a05-0000-1000-8000-00805f9b34fb (Handle: 13): Service Changed
 -  ['indicate']
Service: 0000180a-0000-1000-8000-00805f9b34fb (Handle: 16): Gardena DeviceInformation
 -  00002a26-0000-1000-8000-00805f9b34fb (Handle: 21): Gardena DeviceInformation Firmware Version
 -  ['read']
 -  Data: 1.0.0.0 PTU
 -  00002a29-0000-1000-8000-00805f9b34fb (Handle: 19): Gardena DeviceInformation Manufacturer Name
 -  ['read']
 -  Data: Husqvarna AB
 -  00002a24-0000-1000-8000-00805f9b34fb (Handle: 17): Gardena DeviceInformation Model Number
 -  ['read']
 -  Data: 09068
Service: 98bdeeee-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 59): Gardena ErrorHistory
 -  98bdeeef-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 60): Gardena ErrorHistory Error Id
 -  ['read']
 -  Data: bytearray(b'\x01eeeeee\x04')
 -  98bdeef0-0b0e-421a-84e5-ddbf75dc6de4 (Handle: 62): Gardena ErrorHistory Error Count
 -  ['read', 'notify']
 -  Data: 8

elupus added a commit to elupus/gardena-bluetooth that referenced this issue Dec 18, 2024
Add model 2 as an expected garden pump variant

Related to issue in home-assistant/core#130638
@elupus
Copy link
Contributor

elupus commented Dec 18, 2024

Nice, that gave me enough to go on. The pump should now be detected by HA (next release, or if you manually bump the manifest dependency to 1.5.0).

I suspect there are many entities missing since i've never tried to set up a pump entity in HA.

There also seem to be many characteristics that we don't know. So somebody would have to find out what those characteristics are from the official apps.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants