I use Logitech Media Server with the UPnP/DLNA bridge and Chromecast bridge plug-ins. These plugins allow me to use a variety of devices as media players on the LMS network (e.g. Smart TV, Chromecast, Nest Hub Max).
I use the Home Assistant Squeezebox/LMS integration to expose these as media_player entities. What I’ve found is that, over time, duplicate entities are generated for many of these media players in HA. For example, I currently have three entities for my LG Smart TV:
- media_player.lg_webos_tv_oled65c24la
- media_player.lg_webos_tv_oled65c24la_2
- media_player.lg_webos_tv_oled65c24la_3.
As each new version of the entity appears the previous versions become “unavailable”. So in the example above, only the third item on the list is actually valid and usable. This means that many of my automations involving those entities suddenly stop working.
Any ideas for how to resolve or work around this issue?