How to chose an icon for each entities with QuirkBuilder V2

Hi All,

I am developing quirks for Heiman Smoke alarm, I have added some entities for it, it uses default icons, I have to manually change it in UI, I would like to ask how to set icon for each entity in my QuirkBuilder? so users don’t need to change it by themself.

I tried to use entity_icon="mdi:counter", and .entity_metadata( CustomHeimanCluster.AttributeDefs.rebooted_count.name, CustomHeimanCluster.cluster_id, entity_icon="mdi:restart", ), but it shows unsupported types.

does anyone knows how to set it with QuirkBuilder V2? thanks very much.

r/homeassistant - how to chose an icon for each entities with QuirkBuilder V2|351xauto

I think you have to set that in the icons.* (I think it’s json) file. Take a look at existing integrations how they do it.

Edit: See core/homeassistant/components/overseerr/icons.json at fd9064376a545520d83ecce1a1134d5ef3445254 · home-assistant/core · GitHub

Thanks for responding.
I am editing the python file in zha-device-handlers, since I am supporting Heiman products with QuirkBuilder V2, it only need to change the code in zha-device-handlers repo, how to link that icons in that json to zha-device-handlers ? thanks.

I am sorry but I don’t know the answer to that since I have very few experience in developing HA integrations myself. Maybe someone else can help?

1 Like

no problem, thank you anyway.