#Using HA to improve sleep hygiene.

1 messages · Page 1 of 1 (latest)

ornate harness
#

I have horrible sleep hygiene. I usually go to bed between 10pm (on a really good night) and 1-3pm (on a bad night…. I often fall asleep on the couch).

I also have a bit of trouble waking up. In the morning, but specifically I tend to doom scroll in the mornings too much.

How can I use home assistant to improve my sleep habits? What sorts of things have you done? Bed sensors, presence sensors, LED strips / WLED, etc.

(Please let me know if o need to clarify my post!)

river coral
#

My TV turns off automatically at 11pm
If you have a smart watch which can detect sleep, you could use that to wake yourself on the couch
I have Ikea blinds in the bedroom, them opening serves as my alarm

dapper cobalt
#

You could use the Adaptive Lighting integration to adjust light temperature if your lights support that: https://github.com/basnijholt/adaptive-lighting

You could also set up a schedule on your calendar for when you want to go to sleep and wake up. Like have a reminder that it's almost bedtime so you know when to start getting ready then have things turn off at your bedtime. Likewise have an alarm in the morning go off based on your calendar event

uncut cave
#

You can use a mm wave presence sensor or pressure sensor to tell you to go to bed, then get progressively more demanding (adjust lights, shut off TV/internet).

ornate harness
dapper cobalt
#

There's an esphome one that's really nice that someone from the community made. Let me find a link

#

Works amazing

ornate harness
#

So I think if I get one of these, and then plug my echo show in downstairs, I should be able to set up an automation, something like

"If 11:30pm
and
Robert Phone Home
and
Robert bed empty,

play ding on echo show"

then create more irritating alerts from there?

I could set up an 8 minute snooze that turns off the alert when I get in bed.

#

OH... WAIT.

I have two dogs that like to sleep on my side of the bed when I'm not there. I come up and have to drag them off the bed. so it's gonna detect my bed as occupied.. right?

dapper cobalt
#

You can adjust the threshold in which it determines you're in the bed.

#

It comes with a sensor that shows the force level 1-100 and a calibrate button all in HA

dapper cobalt
ornate harness
ornate harness
#

I think it'd be cheaper to just get an ESP32 board and a couple of ribbon pressure sensors, don't ya think?

dapper cobalt
#

I think there's a bit of extra magic that they have done to get things working smoothly

#
hexed timber
#

Also its not ha related but if you doom scroll, put your phone on a charger in a different room.

naive vine
#

I use 3 alarms that need different levels of mental acuity to disarm

#
  1. my phone 2. an alarm on an old Android phone that also doubles as my IR blaster I need to get up to disarm 3. an automation that spams the "off" signal to my heat pump which turns it off and makes annoying beeps
#

a more popular alarm hack is to make an alarm where you have to get up to fiddle with an NFC thing next to the coffee machine to disarm it

ornate harness
ornate harness
#

Is that correct?

ebon yacht
#

i have a bed sensor esp32 setup which has 4 FSR's and a temp sensor. i do plan to add leds to it at some point but i havent gotten too it yet. but theres more than enough pins to do it

ornate harness
#

What will the setup look like once you add LEDs?

ebon yacht
hexed timber
#

i'd just buy two, they are still cheap ish

severe garden
# ornate harness That’s an idea! What kind of pressure sensor can I use? I looked online for a ...

I wrote a blog post about a bed sensor on GitHub. You might want to have a look at it: https://github.com/felixschndr/bedsensor-for-home-assistant-with-esphome

GitHub

This repo servers as a documentation into ESPHome and how to implement a bed presence sensor and integrate it into Home Assistant - felixschndr/bedsensor-for-home-assistant-with-esphome

#

However in my experience it is quite a hassle to set up and sometimes a bit unreliable. I suggest using a mmwave Sensor with zone detection

ebon yacht
#

I did something similar HERE i found that mmwave occasionally had some false negatives in the night so went the FSR direction

GitHub

Contribute to MichaelMKKelly/MK-SmartBed development by creating an account on GitHub.

hexed timber
#

I just did the smart home guy route, elder pressure pad alarm connected to esp32

ornate harness
ornate harness
hexed timber
ebon yacht
plush brook
#

I created a bed sensor a few months ago using 2 of this pressure pad: https://www.amazon.com/dp/B079Y7NQ9F?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_8. They're both hooked up to a single ESP-WROOM-32. We have them positioned diagonally on either side. With them in that configuration our setup has been rock solid with zero false positives or negatives. Now there's no pressure adjustability, it's just a binary sensor configured for each mat, so I couldn't tell you how that would work with your dogs.