#ha-attribute-icon

1 messages · Page 1 of 1 (latest)

neon bramble
#

Where do ha-attribute-icon and such WebComponents come from?
For example option-off in Climate HVAC modes feature and option-off in Climate fan modes feature render different inline SVGs.
What icons are these, and where are they mapped from mode name to icons from a pack?
They sure don't seem to be from https://pictogrammers.com/library/mdi/

orchid carbon
#

hvac_action off is mdi:power, fan mode off is mdi:fan-off

neon bramble
orchid carbon
#

AFAIK there's no way for user to customize at the moment.

neon bramble
#

I see. Thank you

orchid carbon
#

Actually I guess I was wrong about hvac_modes; the mode icon is hardcoded in frontend.

export const CLIMATE_HVAC_MODE_ICONS: Record<HvacMode, string> = {
  cool: mdiSnowflake,
  dry: mdiWaterPercent,
  fan_only: mdiFan,
  auto: mdiThermostatAuto,
  heat: mdiFire,
  off: mdiPower,
  heat_cool: mdiSunSnowflakeVariant,
};