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?

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    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?

    • MrMcGasion@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      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.

  • rmuk@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    I’m a bit late to the conversation here, but I bought four of these car seat occupancy sensors - https://www.ebay.co.uk/itm/316523892197 - and installed them between the mattresses, one at butt level and the other at shoulder level on both sides of the bed - and connected them to an ESP32 on ESPHome. Works a treat. They’re sensitive enough to momentarily disengage if someone rolls over or shuffles about if you need that, otherwise a generous bounce detection allowance smooths it out.

    • spitfire@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Turn on the lights in the bedroom based on presence sensor, but only if the bed occupancy sensor detects no one is in bed.