I got a pack of ESP-WROOM-32 ESP32 and spent 4 hrs going nuts trying to get them on HA reading every doc and post I can find.
What I tried:
Taking an ESP32, clicking “Add Device” in ESP Home dashboard, and following steps. Result: firmware installation seemingly successful, but it doesn’t connect to wifi (blue led not flashing and it doesn’t attempt to acquire IP from DHCP). Retried 10+ times on multiple devices, reinstalled ESP Home add-on, no luck.
Installing firmware via ESPresense website. The ESP32 does connect to Wifi, gets an IP address from DHCP, and displays the ESPresense config panel when the IP is opened from the browser. I set the MQTT server/credentials, see in console it detects bunch of beacons, and it does show up in HA:
What key does it want? There is noting on the ESP Home dashboard. Ok, I went there and created a new device, gave it identical name, and skipped the flashing (because that bricks the ESP32 as per #1). I do see encryption key under the API in there. I copy-pasted the key and then I see this -
The API key is part of the YAML configuration used to flash the device. When you created the new device (naming does not matter) it generated a random API key, but, since that’s not the YAML you used to flash the device, then the API key for your device is different.
Never used ESPresence, but it looks like they are setup to integrate via MQTT instead of adding the device through ESPhome like the screenshot you shared. Do you have an MQTT device entry for it already?
I left it yesterday night as “Discovered” (as in the screenshots above). I wasn’t able to get passed those prompts. Today morning no more “Discovered” and I found it as an MQTT device:
But there is nothing whatsoever in ESPHome dashboard. I don’t know if that’s a problem and if I should try to make it appear there. My goal is to add beacons and create automations based on their presence/distance.
ESPresense is not ESPHome and will not show up in the ESPHome dashboard. These are completely separate firmware. I wish ESPHome would incorporate ESPresense funcionality so I can use those same devices for bluetooth proxies as well.
Espresence communicates to HA via MQTT and you’ll need to create the appropiate MQTT sensors in YAML to configure HA to use it.
Thanks for getting me on the right track! I abandoned the #1 method (ESPHome) and configured bunch of beacons (mostly iPhones and iPads) as sensors by pairing them and adding them to configuration.yaml:
I’d like to add a chart to the dashboard showing the distance changes over time. Or even the current distance. How can I do that? I tried sensor.ipad_gold.attributes.distance but it doesn’t work.