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

Improve handling of units within HA UI #2607

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

lmilius
Copy link
Contributor

@lmilius lmilius commented Aug 20, 2023

By changing the device_class attribute to be "wind_speed" or "precipitation", this allows the lovelace UI in HomeAssistant to automatically do unit conversions through the UI. I tested these changes locally and they worked after removing the device from the MQTT integration and running this python script to re-preform the autodiscovery.

Valid device classes can be found here: https://www.home-assistant.io/integrations/sensor/#device-class

@zuckschwerdt
Copy link
Collaborator

Looks good to me.

@zuckschwerdt zuckschwerdt merged commit 70d84d0 into merbanan:master Aug 21, 2023
5 checks passed
@lmilius lmilius deleted the device_classes branch August 21, 2023 11:04
penfold42 pushed a commit to penfold42/rtl_433 that referenced this pull request Aug 21, 2023
kcpants pushed a commit to kcpants/rtl_433 that referenced this pull request Aug 22, 2023
chpego added a commit to chpego/rtl_433 that referenced this pull request Sep 18, 2023
following on from PR merbanan#2607 , add device class illuminance
andrewjw pushed a commit to andrewjw/rtl_433 that referenced this pull request Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants