Skip to content

[Feature] Change switch entities to dynamic instead of static icons #13

Description

@GizmoGoody

Feature description

I have a smart plug configured as the Power switch. It's 'Show as' is the default Outlet and the icon is not manually overriden. When I switch it on, the icon should change according to its state, but it always statically indicates as a plug.

Use case / motivation

Consistency and better UX

On a related note, should the power plug entities just be Switch device_class anyways?

Affected device model(s)

No response

Additional context / screenshots

Claude says you just need to delete this one line in switch.py:

_attr_icon = "mdi:power-plug"

There are probably other entities which could/should be dynamic (e.g. Safety key).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions