Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


#289841 2-Oct-2021 15:51
Send private message

I made a small "weather station" from a Wemos D1 mini and a BME280 sensor to get temperature, pressure and humidity data. It works well but I would rather see the pressure adjusted for sea level rather than the absolute pressure that the sensor provides. At my elevation I need to add 25 hPa to the reading. I dont  think this can be done on the sensor itself but is there a way to do it within the card display?

 

This is what I am using.....

 

entities:
  - sensor.bme280_pressure
group_by: hour
hour24: true
name: Pressure
show:
  fill: fade
type: custom:mini-graph-card

 

Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic
mattenz
195 posts

Master Geek
+1 received by user: 48


  #2788296 2-Oct-2021 15:58
Send private message

Are you using ESPHome? I would have thought that it would be easier to do it in that.




hairy1
3352 posts

Uber Geek
+1 received by user: 644

ID Verified
Trusted
Lifetime subscriber

  #2788298 2-Oct-2021 16:00
Send private message

Just make a template sensor based on the original sensor and reference that.




My views (except when I am looking out their windows) are not those of my employer.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2788300 2-Oct-2021 16:07
Send private message

mattenz:

 

Are you using ESPHome? I would have thought that it would be easier to do it in that.

 

 

Yes I am as follows...

 

esphome:
  name: temperature-pressure-humidity
  platform: ESP8266
  board: d1_mini

 

# Enable logging
logger:

 

# Enable Home Assistant API
api:

 

ota:
  password: "747106162569653ff5a4ed986b09f717"

 

wifi:
  ssid: "xxx"
  password: "yyy"

 

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Temperature-Pressure-Humidity"
    password: "zvdKZDJHPQfU"

 

captive_portal:

 

i2c:
#  sda: 21
#  scl: 22
  scan: true
  id: bus_a

 

sensor:
  - platform: bme280
    temperature:
      name: "BME280 Temperature"
      oversampling: 16x
    pressure:
      name: "BME280 Pressure"
    humidity:
      name: "BME280 Humidity"
    update_interval: 60s
    i2c_id: bus_a
    address: 0x76

 

Where would I apply the offset here?

 

Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.




peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2788301 2-Oct-2021 16:08
Send private message

hairy1: Just make a template sensor based on the original sensor and reference that.

 

OK, not really sure what that all means but will look into it, thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


mattenz
195 posts

Master Geek
+1 received by user: 48


  #2788302 2-Oct-2021 16:08
Send private message

You can add an offset, see:

 

https://esphome.io/components/sensor/index.html#offset


peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2788320 2-Oct-2021 16:28
Send private message

Perfect! Thanks for that, all working now.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.