Weird bluetooth tracking behavior

Hi!

I’m trying to track my devices through bluetooth, but there’s something I don’t understand. When I turn off bluetooth on any of the devices so that it changes to ‘not_home’, all the other devices that come below it in known_devices.yaml also change to ‘not_home’, while the ones that come before it stay ‘home’. My known_devices.yaml looks like this:

honor_8:
hide_if_away: false
icon:
mac: BT_1C:15:1F:9B:40:95
name: Honor 8
picture:
track: true

galaxy_tab_a_2016:
hide_if_away: false
icon:
mac: BT_58:B1:0F:9A:48:0F
name: Galaxy Tab A (2016)
picture:
track: true

oneplus_3:
hide_if_away: false
icon:
mac: BT_C0:EE:FB:D8:8A:D8
name: OnePlus 3
picture:
track: true

laptop_sbr05dtg:
hide_if_away: false
icon:
mac: BT_C0:B6:F9:C8:A4:23
name: LAPTOP-SBR05DTG
picture:
track: true

So if bluetooth is enabled on all the devices except honor_8, they all report ‘not_home’ since honor_8 comes before them in the yaml file. Similarly, if all the devices except oneplus_3 have bluetooth enabled, honor_8 and galaxy_tab are ‘home’, while oneplus_3 and laptop_sbr05dtg are ‘not home’.

What am I missing here?

Is the indention showing properly in your post? If so, then add two spaces after the first line of each device.

Example:

6854fd888e8c:
  hide_if_away: false
  icon: mdi:amazon-alexa
  mac: 68:54:FD:88:99:8C
  name: Amazon Echo Dot
  picture:
  track: true
  vendor: Amazon Technologies Inc.

amazonb0c888dc6f:
  hide_if_away: false
  icon: mdi:amazon-alexa
  mac: CC:9E:88:99:69:35
  name: Amazon Fire TV
  picture:
  track: true

Yeah, sorry. The intendention is correct in the file. I have’t edited it, so it’s completely auto-generated.