Skip to content

Commit

Permalink
Put calibrated sensor in primary 'sensor' area
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpapierski committed Oct 23, 2024
1 parent 2b97d50 commit 8cbe31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bed-presence-mk1/sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ sensor:
pin: ${sensor_gpio}
name: ${sensor_name} Pressure
id: bed_sensor_${sensor_id}
disabled_by_default: true
update_interval: 0.5s
unit_of_measurement: '%'
entity_category: diagnostic
Expand All @@ -95,6 +94,7 @@ sensor:
source_id: bed_sensor_${sensor_id}
name: ${sensor_name} Pressure Calibrated
id: bed_sensor_${sensor_id}_calibrated
entity_category: ''
filters:
- lambda: |-
float val_cal_top = (x - id(val_unoccupied_${sensor_id}).state) * 100;
Expand Down

0 comments on commit 8cbe31e

Please sign in to comment.