lihaoyun6 / AirBattery

Get the battery usage of all your devices on your Mac and put them on the Dock / Menu Bar / Widget! && 在Mac上获取你所有设备的电量信息并显示在Dock / 状态栏 / 小组件上!
https://lihaoyun6.github.io/airbattery/
GNU Affero General Public License v3.0
1.26k stars 35 forks source link

Same Headphones displayed twice #66

Closed ilMagnifico closed 2 months ago

ilMagnifico commented 2 months ago
Screenshot 2024-08-05 alle 17 04 53

version: 1.4.8

lihaoyun6 commented 2 months ago

Could you please tell me the model of your headphones? And attach a screenshot of the "Device List", like this:

image
ilMagnifico commented 2 months ago

Here it is:

Screenshot 2024-08-06 alle 10 55 53

But I also applied this rule:

Screenshot 2024-08-06 alle 10 55 57
lihaoyun6 commented 2 months ago

AirBattery found your headphones from the system information and also found them through the low-power Bluetooth broadcast.
You can exclude one of them by adding it to the blacklist, but as AirBattery tells you: "The following BLE devices will be ignored".
So the device name you need to add to the blacklist is "LE-Bose Headphones" instead of "Bose Headphones"😊

If all goes well, after you do this and restart AirBattery, the extra headphone will disappear.

ilMagnifico commented 2 months ago

AirBattery found your headphones from the system information and also found them through the low-power Bluetooth broadcast. You can exclude one of them by adding it to the blacklist, but as AirBattery tells you: "The following BLE devices will be ignored". So the device name you need to add to the blacklist is "LE-Bose Headphones" instead of "Bose Headphones"😊

If all goes well, after you do this and restart AirBattery, the extra headphone will disappear.

Done. Now I can't see my headphones on the widget anymore.

Screenshot 2024-08-06 alle 13 05 16 Screenshot 2024-08-06 alle 13 05 24
lihaoyun6 commented 2 months ago

Please open the "System Information" app in Launchpad and click the "Bluetooth" on the left. Then copy all the information on the right side and send it to me.
This can help me understand what's going on on your computer.

ilMagnifico commented 2 months ago

Please open the "System Information" app in Launchpad and click the "Bluetooth" on the left. Then copy all the information on the right side and send it to me. This can help me understand what's going on on your computer.

Screenshot 2024-08-06 alle 13 13 25

lihaoyun6 commented 2 months ago

Ok, I'll check the AirBattery code later and try to fix this (a possible solution would be to expand the blacklist so that you can block any device, not just BLE devices. That way you could keep "LE-Bose Headphones")

If there are any updates, I will come back.

ilMagnifico commented 2 months ago

Ok, I'll check the AirBattery code later and try to fix this (a possible solution would be to expand the blacklist so that you can block any device, not just BLE devices. That way you could keep "LE-Bose Headphones")

If there are any updates, I will come back.

Perhaps the blacklist could be transformed into a list where you can simply check items to make them visible. This would improve the UI and offer a straightforward way to customize it. Additionally, it could be expanded in the future, allowing for ordering and further customization as needed.​

Thanks for your attention to this issue.

lihaoyun6 commented 2 months ago
image

Would you be willing to show me these two values? I use them to identify the model of your device, and if possible maybe I can create an icon for it (like AirPods)

ilMagnifico commented 2 months ago
image

Would you be willing to show me these two values? I use them to identify the model of your device, and if possible maybe I can create an icon for it (like AirPods)

ID produttore: 0x009E ID prodotto: 0x4066

Ender-Wang commented 2 months ago

It's not showing my WH-1000XM4 via Bluetooth either:

Vendor ID:  0x054C
Product ID: 0x0D58
lihaoyun6 commented 2 months ago

@ilMagnifico In v1.4.9, I extended the blacklist to all devices. So you can try to keep BLE devices and block the "Bose Headphones"