What about if we want to have some high availability configuration.
I have similar problem, but haven’t found a way to achieve the following.
I would like to have 2xesp32 listening to bluetooth devices sending the same MQTT topic.
The goal is to have some failover capability, if one of the bluetooth sniffer is dead, everything will continue to work. I understant that I will have 2 identical topics fropm the same device, but I do not really care.
I just switched a bunch of my sensors from code I wrote a couple of years ago to ESP Home and I’m getting these errors from temperature and motion sensors.
I pretty much used the example ESPHome code. I don’t see anything about IDs anywhere. What exactly do I need to change?
You need to make sure your sensor names are unique across all of your devices. If you’ve used the same code on multiple devices, your names will be the same. So where you have something like:
sensor:
- platform: dallas
name: "Temperature"
…that name must be unique, so perhaps “Orangery temperature” for one device, “Ballroom temperature” for another.
Why are you using MQTT with ESPHome rather than the API?
The platform: homeassistant entry is reading data from HA, and is not your problem.
It is the name or id of each ESPHome sensor or switch that must be unique. Note that the “This entity does not have a unique ID” is not the same error as the subject of this thread. What is the exact error you’re seeing?
OK, I was (and still am) confused about entities. Virtually all of mine have the “does not have a unique ID” and can’t be edited or used for anything. Different IDs.
Calling the ‘id’ ‘name’ in the yaml was my confusion.
I didn’t know about the ‘…’ for quoting text instead of the blockquote.