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

Use HA sensor device class atmospheric_pressure instead of pressure #18306

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

bdr99
Copy link

@bdr99 bdr99 commented Jul 12, 2023

Zigbee2MQTT currently uses the pressure device class for devices that measure pressure. atmospheric_pressure was introduced in HA 2023.1 as a more specific device class for when the pressure being measured is atmospheric pressure specifically. The pressure preset in the converters library mentions atmospheric pressure in the description, so we should be using the atmospheric_pressure device class instead of pressure.

I noticed this issue because HA is converting the pressure reading from my Aqara sensor to PSI which is not an appropriate unit for atmospheric pressure. This PR should fix that.

image

@Koenkk Koenkk changed the base branch from master to dev July 13, 2023 17:54
@Koenkk Koenkk merged commit 1252f10 into Koenkk:dev Jul 13, 2023
@Koenkk
Copy link
Owner

Koenkk commented Jul 13, 2023

Thanks!

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.

2 participants