formatBCE / Airbnk-MQTTOpenGateway

Gateway to use Airbnk locks with HA custom integration https://github.com/rospogrigio/airbnk_mqtt
GNU Affero General Public License v3.0
12 stars 1 forks source link

Where to find MAC address #7

Closed lightsabata closed 1 year ago

lightsabata commented 1 year ago

Hi everybody i try to use this solution to control my lock (MC501) from home assistant, i have flashed the firmware on a ESP32 but on the confiruration page i cannot find the mac adress of my lock, i've tried many bluetooth software on ios and windows to find it but with no succes (even en pairing mode) maybe it is because of BLE rules ? idk... at last i stupidly throw the box i the trash and cannot retreive it

is anyone has a solution ? thanks

formatBCE commented 1 year ago

Hi!

Do you happen to have Android device nearby? nRfConnect application is best in finding MAC. Another advise - when searching, try to be as close to the lock as possible. And make sure that you did setup the lock in WeHere app, and it's working already.

lightsabata commented 1 year ago

hi @formatBCE thank you for your quick response. unfortunaltly i don't have android devices anymore... the lock is already set up and working and i can find it with many bluetooth scanner app on ios but due to apple despotic rules (i guess) no apps are showing mac address of finded device i guss i'll have to find an android device then...

formatBCE commented 1 year ago

Uh, I don't have iOS at home... Did you try https://apps.apple.com/us/app/ble-scanner-4-0/id1221763603 ? Seems to be okay...

lightsabata commented 1 year ago

yes this is the first app i have tried, it show many infos such as UUID, dB, etc.. but no mac adress...

formatBCE commented 1 year ago

So it found the lock, just not the mac address?

lightsabata commented 1 year ago

yes it found the lock (every app does) but no one shows the mac address, btw with your first comment i have foud nRf connect on ios appstore, even this one find bluetooth device but shows no mac adress (i really think it's a apple rule, but i'm not an expert and i can't find a google topic to confirm it)

formatBCE commented 1 year ago

Ooooh. Okay. So that's the problem... Someone wrote, that iOS doesn't expose mac address: https://devzone.nordicsemi.com/f/nordic-q-a/74770/nrf-connect-ios

I guess you'll need Android, unfortunately...

And I will think on way to get MAC directly from gateway. It should be possible to do by scanning and checking device name...

lightsabata commented 1 year ago

thanks for your research. i will find a friend who have an android thanks !

lightsabata commented 1 year ago

@formatBCE think to add a function to get mac from the gateway in the futur