SolarWS icon indicating copy to clipboard operation
SolarWS copied to clipboard

Pressure adjustment

Open sybux opened this issue 1 year ago • 1 comments

Hello, I've found why my pressure sensor read wrong value. It's because of the sea level adjustment. Values that we can read on meteo maps are always based on sea level. So if you're higher than sea, you need to adjust this value. There is a formula to correct this but I don't know how to implement it in the ESP yaml file.

We need :

  • Pressure from sensor (P)
  • Actual temperature for more accurate value (T)
  • altitude of the installation (h)

The formula is : image

P0 is the value we want to read in HA :)

Do you think you can add this in the sensor template ?

sybux avatar Aug 01 '22 23:08 sybux