Can't get espresence working esp32 w/ AppleWatch

I have successfully installed it on a esp32 device.

Here’s what I can do:
I can see the mqtt payload going across via mqtt explorer via the following:
state_topic: “Espresence/devices/irk:63d815c41f7a9f2a06d81679d828dc71/main_room”

I can even see the irk showing up under the esp32 device settings

I found this topic (Integrating with Home Assistant - devices aren't recognized · Issue #1142 · ESPresense/ESPresense · GitHub), but i am able to successfully pair my watch with espresence, but I can’t get the distance showing up in home-assistant with the below yaml in my sensor config

- platform: mqtt_room
  name: "Davids Watch"
  device_id: "irk:63d815c41f7a9f2a06d81679d828dc71"
  state_topic: "Espresence/devices/irk:63d815c41f7a9f2a06d81679d828dc71/main_room"
  timeout: 5
  away_timeout: 100

could someone please help!!! what else can i try?

Thank. you!!!

Why here? This is not the espresense forum.

So helpful, my bad…

So I was able to pair my iphone, but the watch does not seem to connect…

I got it to pair succesfully, but the distance isnt showing up still

Try removing main-room. It’s not needed.
Here is mine.

  - platform: mqtt_room
    name: 'Duc ESPresense'
    device_id: 'irk:8bcf809f09xxxxxxxxxxba36xxxxe5d5'
    state_topic: 'espresense/devices/irk:8bcf809f09xxxxxxxxxxba36xxxxe5d5'
    timeout: 5
    away_timeout: 45


No go… does it need time to marinate?

Did you changed the Home Assistant discovery topic prefix: in your node configuration gui?? The default is blank which under state_topic is

espresense/devices/irk:8bcf809f09xxxxxxxxxxba36xxxxe5d5

In your mqtt screenshot, yours look different to mine.

2024-08-16_12-25-20



i have it without the room name too

You mispelled espresense in your state_topic.

thanks! it still doesnt seem to be fixed though, how can i check if auto discovery is enabled?

You did restart HA for the changes???

every time…

How far is the node to the watch/iphone? Can you bring them close to the node and see if the distance changes?


Not sure what changed, but finally got it with this method AND

making sure these were checked!

Strange. Send to rooms topic is unchecked for me for all 5 of my nodes.

This is working for me as well. thanks!
But not cool to see that it will be deprecated in v4 …
Now i finally got it working it is not nice to know that it will break with v4 and therefore in the future…
I did not check that box because i do not want it to break in the future but it is the only way to get it working.

Thanks for this!

where does it say this?

In the screenshot he you posted.

Edit: Turn off by default deprecated send to rooms (you can still enable it until v4) by DTTerastar · Pull Request #1032 · ESPresense/ESPresense · GitHub