Skip to content

Commit

Permalink
Remove calibrated sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpapierski committed Oct 19, 2024
1 parent a73b3d5 commit b2601b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bed-presence-mk1/sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ sensor:
# - or:
# - delta: ${reporting_delta} # only send if sensor changes by `reporting_delta` (eliminate sensor noise)
# - throttle: ${reporting_duration_max} # but still update every `reporting_duration_max`
- platform: copy
source_id: bed_sensor_${sensor_id}
name: ${sensor_name} Pressure Calibrated
id: bed_sensor_${sensor_id}_calibrated
filters:
- lambda: return float(id(val_unoccupied_${sensor_id})).state+((x/100)*(id(val_occupied_${sensor_id}).state - float(id(val_unoccupied_${sensor_id}).state)));
# - platform: copy
# source_id: bed_sensor_${sensor_id}
# name: ${sensor_name} Pressure Calibrated
# id: bed_sensor_${sensor_id}_calibrated
# filters:
# - lambda: return float(id(val_unoccupied_${sensor_id})).state+((x/100)*(id(val_occupied_${sensor_id}).state - float(id(val_unoccupied_${sensor_id}).state)));
- platform: copy
source_id: bed_sensor_${sensor_id}
name: ${sensor_name} Pressure
Expand Down

0 comments on commit b2601b4

Please sign in to comment.