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?

  • Timbo8000@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    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.

  • BlueÆther@no.lastname.nz
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    How about mm radar?

    I grabbed a couple of Ali last month to use for lighting sensors for the hall and toilet, not set up yet

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days 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
      0
      ·
      2 days 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.

  • FapFlop@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    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.

    • roofuskit@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 days ago

      Some of us like to automate our homes with our home automation systems instead of finding new ways to remote control them.

      Just because you go to a dark place in your imagination doesn’t mean everyone else does.

    • spitfire@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days 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.

      • RvTV95XBeo@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 day ago

        Turn off the lights when 2 people in bed. Turn the lights on really low when only 1 person gets up. Track time you went to bed / time in bed as a low-budget sleep tracker not tied to a big data broker, like a smart watch would be…

      • just_another_person@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 days ago

        Human trafficking or people being held against their will???

        Why would anyone ask about “occupancy” of a bed? Motion or Presence sensors are fine. Like, you want to enact a trigger based on when someone gets IN the bed? That’s makes no sense.

        This whole question comes off as extra fucking creepy to me.

        • Red_October@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 day ago

          You’re the only creepy one here bro. If you can’t even practical uses for this you definitely need therapy.

        • Panq@lemmy.nz
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          2 days ago

          You’re right in that it’s a useful tool for various kinds of abuse, but so is almost every useful home automation/home security sensor.

          The most obvious/useful use cases I can see are:

          • turn on bedroom lights when the last person gets out of the bed
          • turn off whole house lights when the last person gets into bed.

          Both should be easy with load cells under the bed legs but rather difficult otherwise.

          (Useful assuming a household of two adults in one bed that is).

        • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 @pawb.social
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          2 days ago

          Yeah it’s creepy, but I think the more logical reason for wanting it is to know whether or not their spouse is being faithful. My previous comment was sarcastic because I thought you were being sarcastic yourself.

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

          Maybe if you’d read the replies to your question you wouldn’t be creeped out. There are a lot of good use cases and I haven’t even though how it could be misused before you brought it up.

  • grehund@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    I don’t have one myself, but several of the guys on YouTube use them. See “The Home Automation Guy” or “Smart Home Solver“. I can’t remember the brand they use.

  • bus_factor@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    I’ve never done anything like this, but would it be possible to place such a sensor between the mattress and the frame instead? That would result in a fraction of the load due to the distribution of the weight. The challenge would be to set the threshold right.