Welcome to Bed Presence for ESPHome! This page contains everything you need to get started.
Bluetooth Provisioning
- If you have a Bluetooth proxy, simply connect USB-C power supply and skip to
Adding to Home Assistant
.
WiFi Provisioning
- Connect USB-C power supply.
- Use phone to connect to
bed-presence-xxxxxx
WiFi. - If asked to stay connected, press
Yes
. - Open a web browser and navigate to
http://192.168.4.1
- Select WiFi network you would like to add the device to, and provide the password.
Adding to Home Assistant
- If you’d like full control over the firmware on the device (advanced), adopt the device into the ESPHome Dashboard.
- In Home Assistant navigate to
Settings
->Devices & services
. -
You should see a discovered item called
Bed Presence xxxxxx
. - Click
Configure
thenSubmit
. If desired, specify an area and clickFinish
.
Installing Sensor on Bed
-
Remove mattress from bed frame.
-
Select a bed slat in the torso region, where most of your weight will be applied to the bed (think about where you sit or lay in bed). If possible, select a bed slat that does not rock side to side.
-
Orient the sensor with the circuit board/text facing up, and the thicker part of the device hanging over the edge of the bed slat. If the selected slat can move, you may need to screw it in place.
-
Firmly attach the device using the provided screw. Pre-drill if necessary. For metal slats, use the included double-sided mounting square (it may be easier to insert the sensor strips before applying the adhesive square).
-
Insert the sensor strips, then peal the adhesive backing and affix the sensors to the bed slat. For a temporary setup, sensors may be gently taped in place around bed slat. Do not cover end of sensors, as there is a required vent opening.
-
Connect USB-C power.
-
Carefully place the mattress back in place. This may require 2 people, as dragging the mattress across the sensors may dislodge them.
Automatic Sensor Calibration
The calibration process requires you to get into and our of your bed. It records the sensor readings while the bed is both occupied and unoccupied and automatically calculates the best trigger pressure.
- Navigate to the device under Home Assistant Devices. Find the
Configuration
section. - Have the person you are calibrating for gently lay on their side of the bed.
- Let the sensor settle for a few seconds and press
Calibrate Occupied
for the correct side of the bed. - Get out of bed.
- Leave the entire bed unoccupied for a couple minutes, then press
Calibrate Unoccupied
for the correct side of the bed. - Repeat for the other side of the bed.
- The goal of the automatic calibration is to get the trigger value to a good starting point. If you find that you are getting false triggers, want to increase/decrease sensitivity, etc, continue to
Manual Sensor Calibration
.
Manual Sensor Calibration
- Alternatively, you can manually set the
Trigger Pressure
. Viewing the graph of the sensor pressure can help guide your desired pressure. - If using only once sensor, you can set the value slightly higher than the “non occupied” pressure. If using both sensors, make sure to set it high enough that someone on the opposite side of the bed doesn’t trigger it.