I am working on a solution to try to get my rssi values into home-assistant, but once i do that i would like to create an “area” . I saw this on the reddit thread
- platform: template sensors: bedroom_david_iphone_rssi: value_template: >- {% if is_state("device_tracker.sean_bt_bedroom", "home") %} {{ states.device_tracker.sean_bt_bedroom.attributes.rssi }} {% else %} -99 {% endif %}
according to unifi, if my phone is at -53 dbm (that is considered good quality signal) and it is in my living room, do i just need to change the -99 to say -60, assume -60 i would have left the room into a different one? my access point is in the far corner of the room
I guess this is needed as well
Sean is in the living Room using Google Home BT tracking
- alias: Sean in Living Room
initial_state: ‘on’
trigger:
platform: state
entity_id: sensor.livingroom_sean_gh_rssi
condition:
condition: and
conditions:
- condition: template
value_template: “{{ ( states.sensor.office_sean_gh_rssi.state ) > ( states.sensor.livingroom_sean_gh_rssi.state ) }}”- condition: template
value_template: “{{ ( states.sensor.bedroom_sean_gh_rssi.state ) > ( states.sensor.livingroom_sean_gh_rssi.state ) }}”
action:- delay: ‘00:00:05’
- condition: and
conditions:
- condition: template
value_template: “{{ ( states.sensor.office_sean_gh_rssi.state ) > ( states.sensor.livingroom_sean_gh_rssi.state ) }}”- condition: template
value_template: “{{ ( states.sensor.bedroom_sean_gh_rssi.state ) > ( states.sensor.livingroom_sean_gh_rssi.state ) }}”- service: input_boolean.turn_on
data:
entity_id: input_boolean.sean_living_room_presence- service: input_boolean.turn_off
data:
entity_id: input_boolean.sean_bedroom_presence- service: input_boolean.turn_off
data:
entity_id: input_boolean.sean_office_presence- service: input_select.select_option
data:
entity_id: input_select.sean_room_location
option: Living Room