Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make unit of measurement translatable #13

Closed
SebRut opened this issue Jan 8, 2020 · 7 comments
Closed

make unit of measurement translatable #13

SebRut opened this issue Jan 8, 2020 · 7 comments
Labels
enhancement New feature or request not supported by HA Cannot currently be supported by Home Assistant

Comments

@SebRut
Copy link
Contributor

SebRut commented Jan 8, 2020

It would be nice to be able to translate the unit to as "days" is pretty much the only thing visible most of the time

@pinkywafer
Copy link
Owner

I'm going to have to look into how to achieve this. I believe various units of measurement are translate-able by the frontend, so will look into that first

@pinkywafer pinkywafer added the enhancement New feature or request label Jan 8, 2020
@pinkywafer
Copy link
Owner

Sadly I'm going to have to close this as I've had confirmation from @balloob (HA founder) that this is not possible.
I'll revisit this if this is ever implemented

@balloob
Copy link

balloob commented Jan 10, 2020

FYI, if you make the sensor output an iso8601 formatted timestamp as the state and use the timestamp device class, you can have Lovelace count down for you using the entity row format option.

@pinkywafer
Copy link
Owner

thanks. @balloob I dont really want to go down that route though - trying to keep the sensor set up as simple as possible.

@pinkywafer
Copy link
Owner

I am re-opening this though... I have an idea!....

@pinkywafer pinkywafer reopened this Jan 11, 2020
@pinkywafer pinkywafer added the not supported by HA Cannot currently be supported by Home Assistant label Jan 13, 2020
@pinkywafer
Copy link
Owner

ok, I'm not happy with any of the options I have tried, so I'm going to close this for now.
I will revisit this if it becomes possible in the future.
I would suggest that in the meantime you use a customize to customize the unit_of_measurement
ie..
in customize.yaml

sensor.name_of_sensor:
  unit_of_measurement: Days

(replace Days with your translation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not supported by HA Cannot currently be supported by Home Assistant
Projects
None yet
Development

No branches or pull requests

3 participants