Skip to content

[FeatureRequest] Control number of decimals/precision per sensor #56

@kernel610

Description

@kernel610

Is your feature request related to a problem? Please describe.
Currently the sensors display current state regardless of number of decimals with no way to shorten/round the values for usability. An example is I have an Inkbird BLE thermometer that returns 3 decimals. I have configured the precision on the sensor value configuration to only show 1 decimal place; however on the card all 3 decimal places are still displayed.

Sensor configuration
image

Sensor displayed in card
image

Describe the solution you'd like
I'd like to see the entity used in the card honor the "Display precision" configured on that entity. If that's not possible, it would be good to have the ability to define the number of decimals / precision per sensor entity within the card.

Describe alternatives you've considered
I could create a template that rounds this sensor but it seems unnecessary to create duplicate entities.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions