MassiPi / ld2450_ble

Home assistant integration for LD2450 presence sensor over Bluetooth
4 stars 1 forks source link

guide to install this code to HA #1

Open CuongHome opened 1 month ago

CuongHome commented 1 month ago

Hi could someone point to a guide of how to install this code to HA, been searching for awhile and couldn't find anything.

MassiPi commented 1 month ago

download the repository (code -> download zip) extract the folder you'll find in the zip (ld2450_ble-main) in your custom_components folder (i'd rename the folder from ld2450_ble-main to ld2450_ble) restart ha should be ok. If there is a 2450 around, HA should discover it and ask you for configuration

CuongHome commented 1 month ago

Thanks for getting back to me, here is what i did and it didn't seem to do it:

  1. download, copy and re-named then restart as per your instructions
  2. turn on the LD2450 and i can see it from my laptop computer blue tooth
  3. tried several esp32 (working one with bluetooth connected

I tried and go to add integration and got this, showing that it could start for some reason?

[image: image.png]

On Tue, Jul 30, 2024 at 11:00 PM MassiPi @.***> wrote:

download the repository (code -> download zip) extract the folder you'll find in the zip (ld2450_ble-main) in your custom_components folder (i'd rename the folder from ld2450_ble-main to ld2450_ble) restart ha should be ok. If there is a 2450 around, HA should discover it and ask you for configuration

— Reply to this email directly, view it on GitHub https://github.com/MassiPi/ld2450_ble/issues/1#issuecomment-2258293712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP6DMVRAK3JQILFZHRT5M4LZO6E57AVCNFSM6AAAAABLWILVE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGI4TGNZRGI . You are receiving this because you authored the thread.Message ID: @.***>

MassiPi commented 1 month ago

i can't see the screenshot :)

eingabe commented 3 weeks ago

2450_1 2450_2 I download the zip, and upload it to the folder. I found the integration but i get on error. Can you help?

MassiPi commented 2 weeks ago

what are system registers saying?

eingabe commented 2 weeks ago

What do you meen? Any example?

MassiPi commented 2 weeks ago

home assistant logs

eingabe commented 2 weeks ago

Thx for help. i can not install the package, i get this error all the time. i hope you can help

Logger: homeassistant.util.package Quelle: util/package.py:123 Erstmals aufgetreten: 08:03:53 (3 Vorkommnisse) Zuletzt protokolliert: 08:03:55

Unable to install package bluetooth-data-tools==1.19.0: ERROR: Cannot install bluetooth-data-tools==1.19.0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

MassiPi commented 2 weeks ago

oh nice, i'm not using the sensor at the moment, probably it's something sourcing from recent HA versions.. can you try editing the manifest.json file from this:

"requirements": ["bluetooth-data-tools==1.19.0"]

to something like this?

"requirements": ["bluetooth-data-tools>=1.19.0"]

let's see what happens with newer versions :)

eingabe commented 2 weeks ago

now, i get no system error BUT Popup error: [%key:common::config_flow::abort::no_devices_found%]

but my BT device is online

MassiPi commented 2 weeks ago

ok, i need to put back the sensor in action and see :) let me go back home this evening..

MassiPi commented 2 weeks ago

yes, i can confirm the issue. something broke also for original ld2410_ble integration that this integration is based on let's see.. https://github.com/930913/ld2410-ble/issues/8

eingabe commented 1 week ago

So there is no way to connect the sensor directly, right?