Espresense - Trying to get the right data in my sensors.yaml file

Hey,

It’s not clear for me which code has to be where in the sensor.yaml file.
My entity ‘ESP Iphone13 in de buurt’ is giving : distance unknown.

Can anybody help me with the sensors.yaml file?

image

I have been using this for months and it works very well… in the Config.yaml put…

sensor:
  - platform: mqtt_room
    name: 'Name of device'
    device_id: "iBeacon:XXXXXXXX-XXXX-b094-27eXX9bfe5e7-100-1"
    state_topic: 'espresense/devices/XXXXXXXX-XXXX-b094-27eXX9bfe5e7-100-1'
    timeout: 5
    away_timeout: 60