Closed jgalerap closed 1 year ago
Thanks for this. I'll create a beta version with more logging for you. Bear with me pls.
Maybe this helps. I downloaded Bluetooth device diagnostics data from HA and filtered by scale mac address.
{
"name": "MI_SCALE",
"address": "88:0F:10:00:00:00",
"rssi": -66,
"manufacturer_data": {
"343": {
"__type": "<class 'bytes'>",
"repr": "b'\\x88\\x0f\\x10\\xaay\\x0e'"
}
},
"service_data": {
"0000181d-0000-1000-8000-00805f9b34fb": {
"__type": "<class 'bytes'>",
"repr": "b'\\xa2DC\\xe6\\x07\\x02\\x1b\\x0f\\x19('"
}
},
"service_uuids": [
"0000181d-0000-1000-8000-00805f9b34fb"
],
"source": "hci0",
"device": {
"__type": "<class 'bleak.backends.device.BLEDevice'>",
"repr": "88:0F:10:00:00:00: MI_SCALE"
},
"advertisement": {
"__type": "<class 'bleak.backends.scanner.AdvertisementData'>",
"repr": "AdvertisementData(local_name='MI_SCALE', manufacturer_data={343: b'\\x88\\x0f\\x10\\xaay\\x0e'}, service_data={'0000181d-0000-1000-8000-00805f9b34fb': b'\\xa2DC\\xe6\\x07\\x02\\x1b\\x0f\\x19('}, service_uuids=['0000181d-0000-1000-8000-00805f9b34fb'])"
},
"connectable": true,
"time": 708603.039902744
}
That's ecactly what I needed 😄 Can you confirm the weight that we measured when you got this data?
86.1Kg. I think
86.4 Kg right now. And I extracted the data again.
{
"name": "MI_SCALE",
"address": "88:0F:10:00:0:00",
"rssi": -74,
"manufacturer_data": {
"343": {
"__type": "<class 'bytes'>",
"repr": "b'\\x88\\x0f\\x10\\xaay\\x0e'"
}
},
"service_data": {
"0000181d-0000-1000-8000-00805f9b34fb": {
"__type": "<class 'bytes'>",
"repr": "b'\\xa2\\x80C\\xe6\\x07\\x02\\x1b\\x0f\\x1b '"
}
},
"service_uuids": [
"0000181d-0000-1000-8000-00805f9b34fb"
],
"source": "hci0",
"device": {
"__type": "<class 'bleak.backends.device.BLEDevice'>",
"repr": "88:0F:10:00:00:00: MI_SCALE"
},
"advertisement": {
"__type": "<class 'bleak.backends.scanner.AdvertisementData'>",
"repr": "AdvertisementData(local_name='MI_SCALE', manufacturer_data={343: b'\\x88\\x0f\\x10\\xaay\\x0e'}, service_data={'0000181d-0000-1000-8000-00805f9b34fb': b'\\xa2\\x80C\\xe6\\x07\\x02\\x1b\\x0f\\x1b '}, service_uuids=['0000181d-0000-1000-8000-00805f9b34fb'])"
},
"connectable": true,
"time": 713520.549064826
}
It works!
thanks @lolouk44 crack.
Maybe this helps. I downloaded Bluetooth device diagnostics data from HA and filtered by scale mac address.
{ "name": "MI_SCALE", "address": "88:0F:10:00:00:00", "rssi": -66, "manufacturer_data": { "343": { "__type": "<class 'bytes'>", "repr": "b'\\x88\\x0f\\x10\\xaay\\x0e'" } }, "service_data": { "0000181d-0000-1000-8000-00805f9b34fb": { "__type": "<class 'bytes'>", "repr": "b'\\xa2DC\\xe6\\x07\\x02\\x1b\\x0f\\x19('" } }, "service_uuids": [ "0000181d-0000-1000-8000-00805f9b34fb" ], "source": "hci0", "device": { "__type": "<class 'bleak.backends.device.BLEDevice'>", "repr": "88:0F:10:00:00:00: MI_SCALE" }, "advertisement": { "__type": "<class 'bleak.backends.scanner.AdvertisementData'>", "repr": "AdvertisementData(local_name='MI_SCALE', manufacturer_data={343: b'\\x88\\x0f\\x10\\xaay\\x0e'}, service_data={'0000181d-0000-1000-8000-00805f9b34fb': b'\\xa2DC\\xe6\\x07\\x02\\x1b\\x0f\\x19('}, service_uuids=['0000181d-0000-1000-8000-00805f9b34fb'])" }, "connectable": true, "time": 708603.039902744 }
@jgalerap can you show how you obtained this data as the scale addin doesnt work at all for me since the updates i would like to get this data before i log an issue
@magiva 0.3.3 should fix your issues. Make sure you update.
yeah it is updated but never gets posts anything after " Initialization Completed, Waiting for Scale..." i need to debug but need to start from somewhere, currently i dont know where to start. it was working before the bluetooth switch (rpi docker)
In Home Assistant, go to Settings > Devices & Services > Select Bluetooth Integration device
Then under Device Info click on "DOWNLOAD DIAGNOSTICS"
A json file will be downloaded, open it with a Text Editor and search for the MAC address of you Mi Scale.
You mention docker, did you ensure you have the dbus mounted in your docker run command or docker-compose? https://github.com/lolouk44/hassio-addons/blob/master/mi-scale/DOCS.md#important
config_entry-bluetooth-03daf732d8cb5cbce18de09ee7a787ba.json.txt Home assistant is installed as a supervised type which is why i say its dockered. I can putty into the host (pi) but i wouldnt know how to add the dbus share to the boot of the docker (?)
i think as you say, the issue is that bluetooth in home assistant is not working since they changed it. once im home i can try checking some things, i dont think this is related to the scale addon until i get bluetooth working in HA
Select Add-On (place a lowercase
x
for the relevant add-on)Describe the bug Addon crashes with an exception.
To Reproduce Configuration used (passwords and mac masked):
Expected behaviour Please support V1 scales
Scale (please complete the following information):
Device running Home Assistant (please complete the following information):
Additional context Add any other context about the problem here.