leikoilja / ha-google-home

Home Assistant Google Home custom component
MIT License
431 stars 73 forks source link

Add bluetooth tracking #891

Open Lash-L opened 2 months ago

Lash-L commented 2 months ago

Making this as a draft as it is still a WIP, but I'm not sure of my immediate time to continue (might be next week before I finish this)

So I wanted to make this so you knew I was working on it and could give any early feedback if you wished.

Relates to #123

Based off of #590 but with some fundamental changes. 1) Removed device class stuff as it felt like a lot of code to add for very little trade off. 2) Instead of showing the closest device ( I could potentially add this back) - it shows the rssi of the devices you specify.

I developed this within HA Devcontainer, so some of HA styling was auto applied, I will remove it before this PR is completely done.

Will also have a PR for adding the ability to specify known hosts incase zeroconf doesn't work, as I had to work my way around that functionality for getting the devcontainer to work.

Still to do:

Lash-L commented 2 months ago

@leikoilja This should be ready for a review now :) Thanks!

Lash-L commented 2 months ago

Set it to create a Hascanner so that the information can be used by other integrations! I had to bump some versioning for it to work correctly

Lash-L commented 2 months ago

Removed habluetoothscanner as it was going to cause issues posting an advertisement without data

If in the future someone wants to look at that problem again, they can see my branch here: https://github.com/Lash-L/ha-google-home/tree/bluetooth_scanner_obj

leikoilja commented 1 month ago

@KapJI , @DurgNomis-drol , @Drakulix, @ArnyminerZ, any of you guys can help review and test this? i currently have no google home device nearby to play around with.