Open jbarbash opened 1 month ago
Kidde's API denotes that the pressure is stated as hectopascals (hPa). The internal Home Assistant conversion displays it in the units you wish and applies the conversion; in your case, you choose "inches of mercury" (inHg).
However, Kidde seems to be reporting it back as Pascals (Pa), not hPa, so we have the incorrect digits.
It is resporte with ...
inHg = Pressure in hPa from API ÷ 33.86
but needs to be ...
inHg = Pressure as Pa ÷ 3386
With the actual API call listed below, we have Pressure in inHg = 100697 Pa ÷ 3386 ≈ 29.74 inHg
Actual API results ...
Note Kidde does not use the air pressure in the user App. I think that the status
is just a placeholder, as I cannot find any online health rating scale for air pressure. In this instance, the other entities iaq
, humidity
, tvoc
are all reporting "Good"
"hpa": {
"value": 100697,
"status": "Unhealthy",
"Unit": "hpa"
},
I actually think it's reporting in inHg *1000. Right now it's showing 2968 inHg but my weather app reports it as 29.83 inHg. I suppose you may be right about the conversation but not sure how to check in the API. Is there a resolution or just ignore it?
On Sat, Aug 3, 2024, 2:46 PM CJG @.***> wrote:
Kidde's API denotes that the pressure is stated as hectopascals (hPa). The internal Home Assistant conversion displays it in the units you wish and applies the conversion; in your case, you choose "inches of mercury" (inHg).
However, Kidde seems to be reporting it back as Pascals (Pa), not hPa, so we have the incorrect digits.
It is resporte with ...
inHg = Pressure in hPa from API ÷ 33.86
but needs to be ...
inHg = Pressure as Pa ÷ 3386
With the actual API call listed below, we have Pressure in inHg = 100697 Pa ÷ 3386 ≈ 29.74 inHg
Actual API results ...
Note Kidde does not use the air pressure in the user App. I think that the status is just a placeholder, as I cannot find any online health rating scale for air pressure. In this instance, the other entities iaq, humidity, tvoc are all reporting "Good"
"hpa": { "value": 100697, "status": "Unhealthy", "Unit": "hpa" },
— Reply to this email directly, view it on GitHub https://github.com/tache/homeassistant-kidde/issues/22#issuecomment-2267099190, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMOVWPTBF337AYPRCJ2MBLZPUQR5AVCNFSM6AAAAABL57AXTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGA4TSMJZGA . You are receiving this because you authored the thread.Message ID: @.***>
What is the raw value? In HA, select the number, click the gear, and change unit of measurement
to hPa
Using the API is on the wiki, but doing the above comment will give you the raw value.
100,512 hPa
On Sat, Aug 3, 2024, 3:04 PM CJG @.***> wrote:
What is the raw value? In HA, select the number, click the gear, and change unit of measurement to hPa
— Reply to this email directly, view it on GitHub https://github.com/tache/homeassistant-kidde/issues/22#issuecomment-2267103133, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMOVWI5M5X3KGUHZ7JWQOTZPUSUPAVCNFSM6AAAAABL57AXTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGEYDGMJTGM . You are receiving this because you authored the thread.Message ID: @.***>
The resolution will be to figure out what unit HPA is reporting, and then we may add another entity with the conversion or just modify the current entity to be HPA.
To see what the units were, I setup another pressure sensor, a Bosch BME280 connected via an ESP32. It matches the pressure reading from the KIDDE. I also included a bunch of weather sites to check as well.
One short term fix is to create a helper to do the adjustment. Steps:
Updated template sensor to remove warning ...
{{ states('sensor.upstairs_hallway_air_pressure','fixed_pressure')| float(0)/100 }}
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4949 Installed Version | 1.34.0 Stage | running Available Repositories | 1385 Downloaded Repositories | 8Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 12.4 -- | -- update_channel | stable supervisor_version | supervisor-2024.06.2 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 116.7 GB disk_used | 10.7 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Samba share (12.3.2), Duck DNS (1.18.0), Studio Code Server (5.15.0), Advanced SSH & Web Terminal (18.0.0), InfluxDB (5.0.0), Home Assistant Google Drive Backup (0.112.1), Whisper (2.1.2), AdGuard Home (5.1.1), Matter Server (6.3.1), Mosquitto broker (6.4.1), Tailscale (0.21.0)Dashboards
dashboards | 3 -- | -- resources | 0 views | 2 mode | storageRecorder
oldest_recorder_run | July 30, 2024 at 8:54 PM -- | -- current_recorder_run | August 3, 2024 at 10:36 AM estimated_db_size | 103.77 MiB database_engine | sqlite database_version | 3.45.3Checklist
Describe the issue
The decimal point is in the wrong spot. Should be 30.00 inHg but reads 3000 in Hg
Reproduction steps
1.when viewing value it shows wrong decimal point location 2. 3. ...
Debug logs
Diagnostics dump
No response