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

Make used Bluetooth Device configurable #19

Closed
stefangries opened this issue Jun 24, 2020 · 5 comments
Closed

Make used Bluetooth Device configurable #19

stefangries opened this issue Jun 24, 2020 · 5 comments

Comments

@stefangries
Copy link

The software picks hci0 as default bluetooth device to communicate with the scale. It would be great, if it would be configurable as docker environment variable, which hci device the software uses. This would make it possible to use the bluetooth device nearest to the scale or the device with the highest range.

@lolouk44
Copy link
Owner

Can you try this branch and let me know if that works for you?
https://github.com/lolouk44/xiaomi_mi_scale/tree/0.1.4b-hci-selector

@lolouk44
Copy link
Owner

also pushed docker image 0.1.4b if you prefer...

@stefangries
Copy link
Author

I built the image myself now, it works! But is it possible that there is still a change to be made here?
https://github.com/lolouk44/xiaomi_mi_scale/blob/0.1.4b-hci-selector/src/Xiaomi_Scale.py#L178

Btw, on my XMTZC05HM, I only get the following values:
Weight, BMI, Basal Metabolism, Visceral Fat, TimeStamp.

Is that correct? Shouldn't there be the other values like in the following image, too?
https://github.com/lolouk44/xiaomi_mi_scale/blob/master/Screenshots/HA_Lovelace_Card_Details.png

But the most important thing: Thank you very much for the work!

@stefangries
Copy link
Author

stefangries commented Jun 26, 2020

Update: The values are there now. Seems like they just needed a few minutes to arrive.

@lolouk44
Copy link
Owner

Great stuff. I'll merge the branches and push an official image on docker later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants