BLE mac addr?

Hi,

Does anyone know of a way to get a BLE device mac address from with in HA? I thought it maybe in the device tracker attributes/states but if it is I can’t find it :stuck_out_tongue:

TIA

Have you looked at the known devices file (/home/homeassistant/.homeassistant/known_devices.yaml)?

Yep that’s why I thought device tracker would contain the mac but it doesn’t

Really? Mine does:

ipad:
  hide_if_away: true
  mac: BT_10:1C:0C:45:0D:DF

Yep so does mine in the file, but i want it in HA

I just leverage it for the device status (home/not_home).

I suspect that some of the device_tracker component modules (https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/device_tracker) have access to the mac address, but you would need to write a module to surface that if you need it for some other purpose.

The reason I need the mac address is that I need to send my bulbs commands, currently I’m hard coding it but that’s not really the best way to do it ;(

There isn’t an existing component to talk to your bulbs and manage them as ‘normal’ HA entities?

Not currently no