core icon indicating copy to clipboard operation
core copied to clipboard

LD2410B not communicating via Bluetooth proxy (Shelly+)

Open edwardtfn opened this issue 1 year ago • 7 comments

The problem

The LD2410B communicates fine with the Bluetooth on the machine where Home Assistant is running, but cannot communicate thru the Bluetooth proxies (Shelly plus devices).

What version of Home Assistant Core has the issue?

2023.2.5

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

LD2410 BLE

Link to integration documentation on our website

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

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

edwardtfn avatar Feb 25 '23 17:02 edwardtfn

Hey there @930913, mind taking a look at this issue as it has been labeled with an integration (ld2410_ble) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of ld2410_ble 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 ld2410_ble Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


ld2410_ble documentation ld2410_ble source (message by IssueLinks)

home-assistant[bot] avatar Feb 25 '23 17:02 home-assistant[bot]

Hello Thank you for the topic @edwardtfn

I'm also try to integrate a HLK-LD2410 using the feature available on shellys 2gen BLE proxy to use this device in the Home Assistant.

But when I select the integration LD2410B the device is not discovered, but the device is connected, once it's available on the mobile APP from the Hi link

Thank you and please keep this topic open this is very interested topic

Best regards

MiAutomations avatar Mar 08 '23 16:03 MiAutomations

the device is connected, once it's available on the mobile APP from the Hi link

I'm pretty sure these sensors cannot connect to two different devices at the same time, so if you are trying to connect from Home Assistant, make sure you are not connected thru the HLKRadarTool in your phone.

edwardtfn avatar Mar 08 '23 16:03 edwardtfn

the device is connected, once it's available on the mobile APP from the Hi link

I'm pretty sure these sensors cannot connect to two different devices at the same time, so if you are trying to connect from Home Assistant, make sure you are not connected thru the HLKRadarTool in your phone.

Thank you for your reply

Yes when I try to added the sensor on the HA, I disconnected the Bluetooth from My mobile Phone when I have the APP HLKRadarTool installed.

I have the following configurations on shelly 2GEN

image

I also try with the active option one, without success in discovering the sensor

image

Have you success in integrations of this type of sensors using the BLE proxy over the Shelly 2GEN?

Thank you

MiAutomations avatar Mar 08 '23 16:03 MiAutomations

Have you success in integrations of this type of sensors using the BLE proxy over the Shelly 2GEN?

Nope. I've also tried both passive and active mode on Shelly without any success.

edwardtfn avatar Mar 09 '23 07:03 edwardtfn

No solution yet? Also have same as you, ld2410b can connect with phone, but can't be discovered with shelly BT proxy (active passive mode tested, disconnected from phone) Tried different fw versions for LD2410 still no luck

Autogarsas avatar Mar 20 '23 09:03 Autogarsas

I've tested different scenarios and those are my results: LD2410B or LD2410C communicating directly to Home Assistant (without a proxy): OK LD2410B or LD2410C communicating via a ESPHome Bluetooth proxy: OK Ld2410B or LD2410C communicating via a Shelly+ proxy: Device not found

edwardtfn avatar Mar 20 '23 09:03 edwardtfn

Thank you edwardtfn. Made it work with esp32 bluetooth proxy today.

Autogarsas avatar Mar 20 '23 18:03 Autogarsas

Same issue here.

Joao-Sousa-71 avatar Mar 31 '23 23:03 Joao-Sousa-71

By the way, this communication via ESPHome proxy is extremely unstable and I gave up to that, I changed to this solution which is quite good so far: https://github.com/home-assistant/core/issues/90100#issuecomment-1483832015

edwardtfn avatar Mar 31 '23 23:03 edwardtfn

I've tested different scenarios and those are my results: LD2410B or LD2410C communicating directly to Home Assistant (without a proxy): OK LD2410B or LD2410C communicating via a ESPHome Bluetooth proxy: OK Ld2410B or LD2410C communicating via a Shelly+ proxy: Device not found

Trying ESPHome Bluetooth proxies (M5 Atom Lite) with these, but get no proxying. Have not been able to get this working, Did you change any setting in the LD2410 device itself?

AseKarlsson avatar May 29 '23 18:05 AseKarlsson

https://www.home-assistant.io/integrations/bluetooth/#remote-adapters-bluetooth-proxies

Shelly Bluetooth advertisement listening: Shelly v2 device with firmware 12.0 or later Single active connection: not supported Multiple active connections: not supported

These devices require an active connection which is not supported by the Shelly devices

bdraco avatar May 30 '23 16:05 bdraco

https://www.home-assistant.io/integrations/bluetooth/#remote-adapters-bluetooth-proxies

Shelly Bluetooth advertisement listening: Shelly v2 device with firmware 12.0 or later Single active connection: not supported Multiple active connections: not supported

These devices require an active connection which is not supported by the Shelly devices

Hi Nick, Not totally right forum, but should M5 Atom Lite with ESPHome Proxy from https://esphome.github.io/bluetooth-proxies/ be able to handle LD2410, cannot get this to work after many weeks of troubeshooting?

AseKarlsson avatar May 30 '23 16:05 AseKarlsson

Esphome should work for that, but please continue in a new issue (without Shelly mentioned)

bdraco avatar May 30 '23 16:05 bdraco

Thanks for the reply Nick,

Here are two threads where I tried to get help if anyona here have knowledge and ideas on my issue: https://github.com/esphome/esphome/discussions/4827 https://github.com/esphome/bluetooth-proxies/issues/83

AseKarlsson avatar May 30 '23 16:05 AseKarlsson