Room assistant range restriction

so yesterday i realized my room assistant is detecting my phone not just from outside the room, but also from outside my apartment building (second floor)…

so, thats not ideal 4 me, and i was wondering whats the best way to restrict its range?

  1. is there a way to do it from the configuration of the “room-assistant” on my PI
  2. should i somehow use the “meter” detection within the HA room-assistant integration to restrict automations to a “less than” specific value of that “sensor”

if anyone got any pointers to guide me to the right path, that will be great

i think i figured this out, so i will leave my solution here for future reference, if anyone will encounter a similar prob.

basically i just used this template:

“{{ state_attr(‘sensor.YOUR_SENSOR_NAME_HERE_room_presence’,‘distance’) }}”

another option is to create a separate sensor entity


  • platform: template
    friendly_name: “RA meter distance”
    icon_template: mdi:ruler
    value_template: “{{ state_attr(‘sensor.YOUR_SENSOR_NAME_HERE_room_presence’,‘distance’) }}”

to extract the “distance” attribute form the “room presence” part of the sensor.
than i used it as a “condition” to filter unwanted triggers

home this helps
and ill be happy to hear other solutions