esphome-webserver icon indicating copy to clipboard operation
esphome-webserver copied to clipboard

Duplicate "Name"d sensors are combined into one display - even with sub-device configurations

Open KodinLanewave opened this issue 3 weeks ago • 2 comments

Hello ESPHome team!

If you set up sub-devices and re-use sensor "names", (while using unique "ID"'s,) the captive-portal web server display doesn't differentiate between sensors. Current behavior is that there's only one displayed entry for each unique "Name", regardless of "ID" contents, (one Voltage even if there's 3 unique sensors,) and for every sensor update for say... "Voltage", the web page updates once single entry, with the say... 3 sensor's values alternating which is displayed, as-sampled. (You'll have shunt 1's voltage, then shunt 3's voltage replaces it, then shunt 2's voltage replaces that, and it rotates around). This is both confusing and misrepresents what's actually available/what you have configured. I'm assuming the sub-device implementation simply had the onboard-web-server as a blind spot in implementation, and the web page keys off of "Name" rather than "ID", so I'd like to point it out. (For what it's worth, HA appears to handle my configuration gracefully, so the only unexpected behavior is in the onboard web console)

KodinLanewave avatar Nov 14 '25 11:11 KodinLanewave

A major refactor is needed.

Please see https://github.com/esphome/backlog/issues/76

bdraco avatar Nov 14 '25 13:11 bdraco

@bdraco I see; Feel free to close this as duplicate, I've subscribed to the backlog entry.

KodinLanewave avatar Nov 14 '25 14:11 KodinLanewave