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

1841 posts

Uber Geek


#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
190 posts

Master Geek


  #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
3332 posts

Uber Geek

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

1841 posts

Uber Geek


  #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

1841 posts

Uber Geek


  #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
190 posts

Master Geek


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

You can add an offset, see:

 

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


peejayw

1841 posts

Uber Geek


  #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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.