Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpapierski committed Oct 19, 2024
1 parent 445830c commit 7d12c82
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 @@ -85,7 +85,7 @@ sensor:
name: ${sensor_name} Pressure Calibrated
id: bed_sensor_${sensor_id}_calibrated
filters:
- lambda: return id(val_unoccupied_${sensor_id})-((x/100)*(id(val_occupied_${sensor_id} - id(val_unoccupied_${sensor_id}))));
- lambda: return id(val_unoccupied_${sensor_id}).state+((x/100)*(id(val_occupied_${sensor_id}).state - id(val_unoccupied_${sensor_id})));
- platform: copy
source_id: bed_sensor_${sensor_id}
name: ${sensor_name} Pressure
Expand Down

0 comments on commit 7d12c82

Please sign in to comment.