allow device_class: motion for switches #12379
Unanswered
Mariusthvdb
asked this question in
Dashboard
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
for the motion sensor switches, I'd love to be able to set the icons to use
mdi:motion-sensor
, andmdi:motion-sensor-off
.I am aware this is used for the actual indication of a binary_sensor to be on/off, but in the Frontend setup for the switches it would also be a nice indication for the switch to be in the on.off position.
Using the
device_class: motion
would be all to set in a customize_glob:result would be:
(showing platform: group switches here)
I'd be happy to PR
frontend/src/common/entity/domain_icon.ts
Line 106 in 27ca45d
(not sure if we need backend changes too to allow to set this device_class on switches?)
strike that, need to change
https://github.com/home-assistant/core/blob/034ba7d3ffb962d7c5b3df2dd9376f55695d9979/homeassistant/components/switch/__init__.py#L39
too
thanks for considering
Beta Was this translation helpful? Give feedback.
All reactions