

/ui to you ESPresense IP addressconfig/configuration.yaml
sensor:
- platform: mqtt_room
device_id: "iBeacon:xxxxxxxx-xxxx"
name: 'Oneplus7 BLE'
state_topic: 'espresense/devices/iBeacon:xxxxxxxx-xxxx'
timeout: 10
away_timeout: 60config/known_devices.yaml
oneplus7:
hide_if_away: false
name: OnePlus7
mac:
icon:
picture:
track: trueconfig/automations.yaml
alias: Update OnePlus 7 Device Tracker
description: ""
trigger:
- platform: state
entity_id:
- sensor.oneplus7_ble
condition:
- condition: template
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
- service: device_tracker.see
data:
dev_id: oneplus7
location_name: |
{% if trigger.to_state.state in ['livingroom', 'entrance', 'bedroom', 'bathroom'] %}
home
## Erase the next two lines if you don't want to use the not_home state
{% elif trigger.to_state.state == 'not_home' %}
not_home
{% else %}
unknown