Anyone try to build a bed occupancy sensor integrated with Home Assistant? I’ve looked into load sensors but all of them seem to have pretty small weight limits (low enough to where I don’t think it would even support the empty bed).

What devices/sensors have you used for this? And what does your setup look like?

10 points

Aliexpress has load cells that go up to the hundreds of KGS. One of those, an esp32/pico and some wiring and you should be good to go?

permalink
report
reply
3 points

This. I bought a few myself, but didn’t have time to put them together with ESP32/program them with ESPHome

permalink
report
parent
reply
3 points

Couldn’t find the exact one I ordered a few months ago, but this type of pressure sensor aliexpress link is apparently a common bed occupancy sensor type used when building medical beds for hospitals and care homes so staff can be alerted when a patient gets out of bed. I’m not sure the specific model I linked is quite right specs-wise, but the idea is that it goes on a slat or other surface between the matress and the frame that doesn’t necessarily get the full weight of the occupant, but still gets enough to measure on the sensor.

permalink
report
parent
reply
4 points

https://community.home-assistant.io/t/fsr-the-best-bed-occupancy-sensor/365795

This is the best write-up I’ve seen - essentially a force sensitive resistor on the bed slats and an ESP32 will get you the results you’re after.

permalink
report
reply
2 points

I’ve got parts on order for this very project, should arrive this week.

I previously tried using one of those large pressure mats but it didn’t work under the mattress.

permalink
report
parent
reply
2 points

I have an Aqara FP-2 doing just this thing. It works pretty well after setting up zones. Those get pulled into Home Assistant and then you can tie those to automations to control lamps or what have you.

permalink
report
reply
1 point

I also used a mmWave sensor in the past for this, one from a youtuber. Worked well enough for my case, but it had some interruptions during the night.

permalink
report
parent
reply
2 points

I’ve got this setup: Two of those flat contact sensors that are designed to go under a mat, connected to an ESP32 running ESP Home. Some people use leak sensors with screw terminals instead of the ESP32 and attach the contact sensor that way. My use case is that we’ve got cats and motion sensors, so when everyone is in bed, the lights don’t react to the motion. Also, alarm system goes into night mode, any reminders before going to bed also fire. There are a set of rules about whether the doorbell can be heard in the bedroom, and also the light comes on in the night if someone gets up.

permalink
report
reply
2 points

I’ve worked on such IOT devices for the hospital.

permalink
report
reply

homeassistant

!homeassistant@lemmy.world

Create post

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

Community stats

  • 737

    Monthly active users

  • 630

    Posts

  • 6.8K

    Comments