-
-
-
MAC address would be great , but doesn't it randomly change from time to time ? If not then I can definitely use the MAC address. I will be using ESPHome with a Bluetooth esp as a base station device that sends the presence back to Home assistant .
https://esphome.io/components/binary_sensor/ble_presence.html
You can see MAC address as one of the 3 options
-
@Gordon
Hi I'm sorry for reviving this post, I can create a new one if required. I'm trying to do a similar thing by using a UUID as a way of distinguishing between two pucks to use as presence detection for home automation. I understand I could setup up something like the ibeacon service but all I need is a UUID that doesnt change for each puck. I tried creating a 128 bit UUID usingdate | md5sum
and then seperating the result like you suggested above
NRF.setAdvertising([ [ 0x13,0x19,0x00,0x01,0x07,0x6e,0xe3,0xac,0xd3,0xc5,0x1b,0xbd,0xf7,0x28,0x83,0x6c, ]]);
, but this didnt work and I had to hard reset to get it back programmable , did I need to add a service similar to above ?
NRF.setServices(undefined, { uart : false, advertise: [ 'ABCDABCD-ABCD-ABCD-ABCD-ABCDABCDABCD' ] });
I'm very new to this it been a bit of a learning curve today to understand how it all works.
is this the best way to achieve what I want ?
thanks in advance
It was thank you so much for the reply , however as you said I managed with the MAC address which is even easier, now I just need to work out how to get Esphome to understand the advertised battery percentage from the pucks , but that's a topic for another thread .
Thanks again