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

Add units to sensor state #164

Open
mikenorgate opened this issue Jun 9, 2024 · 1 comment
Open

Add units to sensor state #164

mikenorgate opened this issue Jun 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mikenorgate
Copy link

Please describe what you are trying to do with the component
I have a sensor for my 3D printer that indicates time remaining on the active print in seconds, however because only the value is passed to the LLM it's incorrectly interpreting the unit, it thinks the value represents minutes

Describe the solution you'd like
When generating the device state, if the sensor includes a unit of measurement it should be included

Additional context

image

@mikenorgate mikenorgate added the enhancement New feature or request label Jun 9, 2024
@acon96
Copy link
Owner

acon96 commented Jun 16, 2024

This should be added in v0.3.3 but I'm not sure which unit to display since Home assistant seems to provide the raw units as well as preferred units and I can't figure out which one is which.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants