binsentsu / am43-ctrl

Node Util for controlling an AM43 Blinds Drive Cover, either over MQTT or via a HTTP API
44 stars 25 forks source link

How do I find the mac address more easily? #25

Closed janvandijk96 closed 3 years ago

janvandijk96 commented 3 years ago

Hi! I've got everything set up, I can see the (not yet connected) device in HA, can execute all commands etc.. However, how do I find out the mac of the device? I've tried 'BLE Scanner' and 'nRF Connect' on the play store and sudo hcitool -i hci0 lescan on the RPI but I get so many results that I don't know which to choose. I live in student housing so that might be the issue. Also gave the device a name in the aOK app.

Thanks!! Kind regards, Jan

pi@raspberrypi:~/am43/node_modules/.bin sudo hcitool -i hci0 lescan
LE Scan ...
71:36:43:AA:F0:16 (unknown)
71:36:43:AA:F0:16 (unknown)
59:11:3B:CB:D7:E6 (unknown)
45:87:29:9A:63:C2 (unknown)
45:87:29:9A:63:C2 (unknown)
09:63:9D:42:95:3D (unknown)
5D:47:CA:A6:F0:88 (unknown)
72:1A:8E:31:71:43 (unknown)
72:1A:8E:31:71:43 (unknown)
71:54:2C:80:BE:56 (unknown)
71:54:2C:80:BE:56 (unknown)
59:54:4C:48:50:5E (unknown)
59:54:4C:48:50:5E (unknown)
7C:4E:17:B9:C6:37 (unknown)
7C:4E:17:B9:C6:37 (unknown)
5D:47:CA:A6:F0:88 (unknown)
6C:16:2B:80:81:1A (unknown)
4A:4D:65:31:08:37 (unknown)
4A:4D:65:31:08:37 (unknown)
4B:B0:38:32:9D:D0 (unknown)
4B:B0:38:32:9D:D0 (unknown)
09:7B:FD:2C:23:F3 (unknown)
CE:46:30:B9:B9:F3 (unknown)
CE:46:30:B9:B9:F3 Mi Smart Band 4
2D:75:12:18:5A:A9 (unknown)
4C:65:A8:DF:C1:EA (unknown)
4C:65:A8:DF:C1:EA MJ_HT_V1
54:D5:44:28:9E:C1 (unknown)
4A:0C:C9:92:76:41 (unknown)
54:39:E4:22:C1:E8 (unknown)
54:D5:44:28:9E:C1 (unknown)
janvandijk96 commented 3 years ago

I figured it out! For anyone wondering the same;

Make sure the blinds app is force-closed Download and run nRF Connect, start scanning and wait a bit Open the blinds app Connect to the blinds nRF Connect will show a pop up 'hijacking' the bluetooth connection, tap it; the device MAC is now shown!

Thanks for making such a great project. It works perfectly!