Change device class of sensor entity via “Show as” selector #13673
Unanswered
krazos
asked this question in
Configuration
Replies: 1 comment
-
For reference, the YAML solution is the following, see also this related thread. homeassistant:
customize:
sensor.outdoor_temperature:
device_class: temperature |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
You can change the
device_class
of a binary sensor via the “Show as” selector in the UI, but this functionality is not available for (non-binary) sensors. It would be great to have similar functionality for the sensor domain.Example: I use the min/max/mean helper to create average temperature measurements from multiple temperature sensors. However, the min/max/mean sensor does not inherit a
device_class
or icon from the constituent sensors, and the only way to set the appropriatedevice_class
is through YAML.See also: home-assistant/core#76003
Beta Was this translation helpful? Give feedback.
All reactions