Skip to content

Commit

Permalink
Fix Calibration Cap (#36)
Browse files Browse the repository at this point in the history
* Increase calibration pressure max_values to 120%
  • Loading branch information
stephenpapierski authored Feb 13, 2025
1 parent 0b8b32b commit 21160ba
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/workflow-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
steps:
- name: Checkout source code
uses: actions/[email protected]
- name: Change remote_package branch to current dev branch
run: |
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
echo "Replacing @main with @${branch} in bed-presence-mk1.yaml"
sed -i "s/ref: main/ref: ${branch}/g" ./bed-presence-mk1.yaml
- name: Build ESPHome firmware to verify configuration
uses: esphome/[email protected]
id: esphome-build
Expand Down
2 changes: 1 addition & 1 deletion bed-presence-mk1.factory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ packages:
esphome:
project:
name: ElevatedSensors.BedPresenceMk1
version: 2024.10.0
version: 2025.2.0

# Allow ESPHome Adoption
dashboard_import:
Expand Down
6 changes: 3 additions & 3 deletions bed-presence-mk1/sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ number:
restore_value: true
initial_value: 0
min_value: 0
max_value: 110
max_value: 120
step: 1.0
mode: box
on_value:
Expand All @@ -142,7 +142,7 @@ number:
restore_value: true
initial_value: 100
min_value: 0
max_value: 110
max_value: 120
step: 1.0
mode: box
on_value:
Expand All @@ -156,7 +156,7 @@ number:
restore_value: true
initial_value: 50
min_value: 0
max_value: 110
max_value: 120
step: 1.0
mode: box
icon: mdi:gauge
Expand Down
26 changes: 20 additions & 6 deletions static/bed-presence-mk1/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,34 @@ breadcrumb_list:
url: /bed-presence-mk1
---

## 2025.2.0
**Fix Calibration Cap**: Accomodate the increased sensitivity of revC boards, ensuring accurate pressure calibration up to
120% instead of being limited to 110%.

## 2024.10.0
This is the first firmware update for Bed Presence Mk1. It will be available OTA to managed devices. Devices already imported into the ESPHome Dashboard will need to be recompiled to get access to the new features.
This is the first firmware update for Bed Presence Mk1. It will be available OTA to managed devices. Devices already
imported into the ESPHome Dashboard will need to be recompiled to get access to the new features.

**Eliminate DB Bloat** - The default delta threshold and reporting interval have been updated so that the sensor only reports new values when something actually changes. This will decrease the update frequency dramatically and eliminate bloating the database.
**Eliminate DB Bloat** - The default delta threshold and reporting interval have been updated so that the sensor only
reports new values when something actually changes. This will decrease the update frequency dramatically and eliminate
bloating the database.

**Improved Sensor Response** - The sensor now uses a window average by default. This helps smooth out any quick movements, while also slightly improving the response time for getting out of bed.
**Improved Sensor Response** - The sensor now uses a window average by default. This helps smooth out any quick movements,
while also slightly improving the response time for getting out of bed.

**Calibrated Sensor** - If you're annoyed by a different response from each side of your bed, the `Calibrated Sensor` is for you. This is an additional sensor that scales your raw pressure values between the `Unoccupied Pressure` and `Occupied Pressure`.
**Calibrated Sensor** - If you're annoyed by a different response from each side of your bed, the `Calibrated Sensor` is for
you. This is an additional sensor that scales your raw pressure values between the `Unoccupied Pressure` and `Occupied
Pressure`.

**Status Sensor** - Added a binary status sensor to expose the device's connectivity state.

**Option to Use Full Range** - By default, Pressure [Right/Left] is focused on the most sensitive zone of the pressure sensor (Full Range = Off). This should perform well for most setups. By turning on Full Range, you can expand it to use the full range of the sensor. Consider turning ON Full Range if slight movements in bed quickly drop the sensor value to zero, causing frequent false negatives.
**Option to Use Full Range** - By default, Pressure [Right/Left] is focused on the most sensitive zone of the pressure
sensor (Full Range = Off). This should perform well for most setups. By turning on Full Range, you can expand it to use
the full range of the sensor. Consider turning ON Full Range if slight movements in bed quickly drop the sensor value to
zero, causing frequent false negatives.

**Lots of Customization** - If you import the device into the ESPHome Dashboard, there are now lots more substitutions within the package to customize behavior.
**Lots of Customization** - If you import the device into the ESPHome Dashboard, there are now lots more substitutions
within the package to customize behavior.

See <a href="https://github.com/ElevatedSensors/sensor-configs/blob/main/bed-presence-mk1/sensor.yaml" target="_blank">https://github.com/ElevatedSensors/sensor-configs/blob/main/bed-presence-mk1/sensor.yaml</a> for substitution descriptions.

Expand Down

0 comments on commit 21160ba

Please sign in to comment.