State based icons not showing correct icons for Sub-Buttons
Describe the bug
For some binary_sensors with dynamic state based icons don't show the correct entity icon, instead it uses HA placeholder/default icon.
It's kind of strange, as it works for some sensors and not for others. As you can see in the image, I have a motion sensor for my Reolink camera, which shows the icon correctly, but the second icon is a circle icon for person detection sensor.
If you click on the entity (second pic), you'll see the correct icon, just not shown using the 'pop-up' sub-buttons.
To Reproduce
Steps to reproduce the behavior:
- Create a Pop-up card.
- Go to Header Settings, and Create a sub-button.
- Choose a person detection/presence entity sensor.
- See result.
Expected behavior
Show the correct icon for the entity.
Screenshots
Information (please complete the following information):
- OS: iOS 26/macOS 26/All platforms
- Browser/App: Chrome/Safari/Firefox/All browsers
- Bubble Card version: 3.0.4
- Home Assistant version: 2025.10.0
Additional context
This isn't a new behaviour, it has been an issue in all previous builds.
I encountered this using Popups, but it likely affects other card types.
I have the same issue on a sub-button showing a lock. It shows the lock coloured when it's open instead of when it's closed. This is a new behaviour because it has been always working well.
I have the same issue on a sub-button showing a lock. It shows the lock coloured when it's open instead of when it's closed. This is a new behaviour because it has been always working well.
This is not the same issue. The one I've reported has been present since early v2 builds.