Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Integrations/ESPHome/Core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,21 @@ number:
name: g8 still threshold


- platform: template
name: "DPS310 Pressure Offset"
id: dps310_pressure_offset
disabled_by_default: true
restore_value: true
initial_value: 0.0
min_value: -100.0
max_value: 100.0
entity_category: "CONFIG"
unit_of_measurement: "hPa"
optimistic: true
update_interval: never
step: 0.1
mode: box

- platform: template
name: DPS Temperature Offset
id: dps310_temperature_offset
Expand Down Expand Up @@ -609,6 +624,10 @@ sensor:
- lambda: |-
static float last_reported_value = -6.0;
float current_value = x;
float offset = id(dps310_pressure_offset).state;
if (!isnan(offset)) {
current_value += offset;
}

// Check if the reduce_db_reporting switch is on
if (id(reduce_db_reporting).state) {
Expand Down