AirGradient Forum

Wrong temperature & Humidity in Dashboard & HA addon when in Device log is OK

My ambient temperature is 24.5C and Humid is 32% (measured with 3 different sensors)
Outdoor Air monitor shows around the same in the log:

Temperature{1}: 24.90
Humidity{1}: 28.27

But in the AirGradient dashboard it shows temperature 13C and humidity 14% which is 2 times lower of the actual.
Screenshot_2025-02-09_14-12-00
The home assistant addon shows completely different values: 10C and 25%

I tried to enable different corrections via the AirGradient dashboard settings, but it does not change anything.

1 Like

I think this problem is the same problem here:

Where you are sampling at a differant rate and at differant intervals, and the values that return are differant enough from minute-to-minute to make it appear as though things are more “off” than they actually are. A gust of wind could blow through at 12:03 and Home Assistant is reading the values from that sample of air, and then at 12:05 when the app reads the values, they can be differant.

Yes, I double checked that this is not because of different intervals

I am also having a similar problem. HA and the Airgradient dashboard is showing values at around 8C for the last few hours, whereas in reality it’s about 2C. I first noticed this yesterday.

Hi @den ,

When changing different corrections from AG dashboard, do you any chance change the configurationControl to cloud first? You can do this from HA device settings.

I do not see that kind of configuration in HA addon

But for Cloud configuration I tried Raw and correction enabled and that does not seem to change anything.

The one named Configuration source, set it to cloud

My outdoor O-1PST is always set to Cloud, but it misreports the temperature by around +4 to +6 °C. This is in both the AG Dashboard and Home Assistant. If I change the calibration setting to “Raw”, the error increases to around +8 to +10 °C.

Hi @prouser ,

Can you show the graph in AirGradient dashboard and HomeAssistant when temperature and humidity correction set to Standard AirGradient Correction?

Yes, these are the graphs in HA and Dashboard for the last 48 hours and 7 days. Note that the spike in HA a couple of days ago is when I unplugged the monitor to try and reset it. It is currently around 1°C celsus outside and the monitor is showing 4.7°C in both HA and the Dashboard.




I already tried that. I tried all correction settings listed on the screenshot and temperature is still shows wrong value.
I have 3 different temperature sensors outside. All them shows values from -2.7C to -3.0C (), but AirGradient shows values from +5C to +8C depends on temperature correction settings I chose, but no matter what I chose the temperature value is still far away from real temperature outside (I have snow all around so it is not possible to have +5C or +8C outdoor)
Firmware is the latest 3.2.0
Screenshot_2025-02-14_21-51-44

Hi @den and @prouser ,

Just so i understand, the problem now is different right? temperature and humidity on airgradient dashboard and HA already the same, but the temperature reading seems off from the actual?

No, it is the same issue. The topic started that temperature in the device log is OK, but wrong and different in HA addon and dashboard

2 Likes

for i in {1..30}; do echo "$(date '+%Y-%m-%d %H:%M:%S') atmpCompensated: $(curl -s http://10.69.10.92/measures/current | jq -r '. atmpCompensated')"; sleep 3; done

If you can, can you run this? Should work in shell on Linux or macOS. You will have to replace http://10.69.10.92/measures/current with your actual ip or mdns name.

I am curious to see if the number changes very much between each reading. I don’t think it should and want to make sure

Also there is atmp and atmpCompensated. This may be the problem instead, and HA may be using a different field to query from the local api server.

I am getting these results in MacOS terminal. Maybe I typed the command wrong?

jq: error: syntax error, unexpected $end (Unix shell quoting issues?) at <top-level>, line 1:
. atmpCompensated  
jq: error: try .["field"] instead of .field for unusually named fields at <top-level>, line 1:
. atmpCompensated
jq: 2 compile errors
2025-02-15 16:50:13 atmpCompensated: 

It then keeps repeating until I stop the process.

It sounds like you have a different problem. @den has different values in the cloud and in ha. You I am curious if you can run the command I sent with atmp and then with atmpCompensated to see if you get better results from one or the other.

I’m on my phone so I think it’s just a typo. Try this


for i in {1..30}; do 
    echo "$(date '+%Y-%m-%d %H:%M:%S') atmpCompensated: $(curl -s http://10.69.10.92/measures/current | jq -r '."atmpCompensated"')"; 
    sleep 3; 
done

Btw the docs for the api are here

Sorry I accidentally deleted my post (I’m still learning how to use this forum properly)

The main point of my original post was that the values reported by HA and AG Dashboard are not accurate and are around +4°C. above the real temperature.

Looks like you just need to configure ha to use the other value, does that second value represent what you think temp is?

Also I’m curious if you let it run for the full 30 seconds for each if we see vary different values each 3 seconds

1 Like

Ok here are the results from the two tests after running for full 30 seconds:

2025-02-15 17:01:32 atmp: 8.58
2025-02-15 17:01:35 atmp: 8.57
2025-02-15 17:01:38 atmp: 8.58
2025-02-15 17:01:41 atmp: 8.58
2025-02-15 17:01:45 atmp: 8.58
2025-02-15 17:01:48 atmp: 8.6
2025-02-15 17:01:51 atmp: 8.6
2025-02-15 17:01:54 atmp: 8.6
2025-02-15 17:01:57 atmp: 8.6
2025-02-15 17:02:00 atmp: 8.6
2025-02-15 17:02:03 atmp: 8.6
2025-02-15 17:02:07 atmp: 8.58
2025-02-15 17:02:10 atmp: 8.58
2025-02-15 17:02:13 atmp: 8.57
2025-02-15 17:02:16 atmp: 8.57
2025-02-15 17:02:19 atmp: 8.58
2025-02-15 17:02:22 atmp: 8.58
2025-02-15 17:02:25 atmp: 8.58
2025-02-15 17:02:29 atmp: 8.58
2025-02-15 17:02:33 atmp: 8.57
2025-02-15 17:02:36 atmp: 8.58
2025-02-15 17:02:39 atmp: 8.57
2025-02-15 17:02:43 atmp: 8.58
2025-02-15 17:02:46 atmp: 8.55
2025-02-15 17:02:49 atmp: 8.55
2025-02-15 17:02:53 atmp: 8.57
2025-02-15 17:02:56 atmp: 8.57
2025-02-15 17:02:59 atmp: 8.6
2025-02-15 17:03:02 atmp: 8.6
2025-02-15 17:03:05 atmp: 8.58

2025-02-15 17:06:13 atmpCompensated: 4.54
2025-02-15 17:06:16 atmpCompensated: 4.54
2025-02-15 17:06:19 atmpCompensated: 4.54
2025-02-15 17:06:22 atmpCompensated: 4.54
2025-02-15 17:06:25 atmpCompensated: 4.54
2025-02-15 17:06:29 atmpCompensated: 4.54
2025-02-15 17:06:32 atmpCompensated: 4.54
2025-02-15 17:06:35 atmpCompensated: 4.54
2025-02-15 17:06:38 atmpCompensated: 4.54
2025-02-15 17:06:41 atmpCompensated: 4.54
2025-02-15 17:06:44 atmpCompensated: 4.54
2025-02-15 17:06:47 atmpCompensated: 4.54
2025-02-15 17:06:50 atmpCompensated: 4.54
2025-02-15 17:06:54 atmpCompensated: 4.54
2025-02-15 17:06:57 atmpCompensated: 4.54
2025-02-15 17:07:00 atmpCompensated: 4.54
2025-02-15 17:07:03 atmpCompensated: 4.54
2025-02-15 17:07:06 atmpCompensated: 4.54
2025-02-15 17:07:09 atmpCompensated: 4.54
2025-02-15 17:07:12 atmpCompensated: 4.54
2025-02-15 17:07:15 atmpCompensated: 4.54
2025-02-15 17:07:19 atmpCompensated: 4.54
2025-02-15 17:07:22 atmpCompensated: 4.54
2025-02-15 17:07:25 atmpCompensated: 4.52
2025-02-15 17:07:28 atmpCompensated: 4.52
2025-02-15 17:07:31 atmpCompensated: 4.52
2025-02-15 17:07:34 atmpCompensated: 4.52
2025-02-15 17:07:37 atmpCompensated: 4.54
2025-02-15 17:07:40 atmpCompensated: 4.54
2025-02-15 17:07:44 atmpCompensated: 4.54

1 Like