Looking for Ideas: Wake up detection in the morning?

I have 2 wall-mounted tablets and a Sonos in my flat and would like them to do stuff every morning - but only right after I actually get up from my bed.

Is there something like a pressure matt (maybe even a DIY solution), compatible with HA?

I do have motion sensors, but either my girlfriend or our cat regularly trigger them.

I also thought about making a trigger, based on my iOS alarm clock, but the stock app doesn’t communicate with anything (IFTTT does have something for Alexa and Hue alarms, but I don’t use those).

i have a motion sensor underneath my bed.
because of the fact that we do go into and out of bed on regular times (within a certain timeframe) i can predict what triggers the motion.

it tells me

  1. when my wife goes to bed
  2. when my wife goes out of bet to use the bathroom
  3. when my wife goes out of bed in the morning
  4. when i go to bed
  5. when i get out of bed in the morning

if your cat isnt running around your bedroom at night that can work.
a second sensor makes it even more relyable.

there is also a topic about a weight sensor for bedoccupancy that works.

1 Like

How do you tell the difference between waking up in th middle of the night and going to the toilet and waking up?

I did the same thin as you, and separated them with time conditions but sometimes your life isn’t written into code if you get what I mean.

i did seperate them with time conditions.
because i dont need 100% accuracy.
accuracy in every normal case is enough. when there are unusual circumstances we know that not everything is programmed for that.

the second distinction i have is that i have motion detection in the kitchen.
if the motion in the bedroom isnt followed within a certain time by motion in the kitchen, then my wife wasnt waking up.

so the wake up from my wife is actually first noticed when she arrives in the kitchen.

another motion detector near the toilet can also help with that.
motion bedroom > motion toilet > motion bedroom = just toilet
motion bedroom > motion kitchen = waking up
motion bedroom > motion toilet > motion kitchen = waking up

1 Like

I was thinking about using an Amazon Dash for something like that - simply pressing the button would kick off some routines.

But then I had so many other great ideas what I could do with that button, e.g. checking if all doors & windows are closed & locked when I go to bed at night (still working on the micro switch that detects if the deadbolts are actually locked), and nothing got implemented so far :confused:

I will - one day - set up a dash button to do the morning routine stuff, promise.

i try to avoid buttons to automate things.
i think that is something like implementing a wall switch to turn on the lights, thats not a step forward but a step back :wink:

2 Likes

I use Alexa and just say ‘Alexa I’m awake’ and that’s the trigger for my morning routines.

Also ‘Alexa goodnight’ triggers bedtime boolean , and if not auto triggers at 11:30pm.

For my wife it’s bedroom motion followed by kitchen motion within 5 minutes with a condition after 5:30am as she’s an early bird.

Kids are triggered by door sensors on their bedrooms with time conditions.

If I wake up first because early morning calls with Europe I just wait till I get to my office to tell Alexa I’m awake. If wife or kids are not up lights don’t auto turn on except in my office.

1 Like

Do you always plug your phone in to charge overnight? Can iOS fire a trigger of some sort when you unplug the charger in the morning?

Are there third-party alarm apps? On Android I use “Wake me up!” for my alarms, which integrates wit Tasker allowing me to tell Home Assistant when the alarm has gone off.

Rather than a load sensor, a simpler solution might be a DIY capacitive sensor on the bedside table. With some tuning you could get it to trigger in the mornings when you reach for your phone, or just gesturing over the table.

1 Like

If your girlfriend gets up before you then she can turn everything on while she is making you coffee!

Should you perhaps look at setting up an alarm clock on home assistant rather than rely on your phone?

I remember a guy on reddit who posted a project where he transformed his bed in a scale, using cheap stuff anyway. Basically the bed could detect the weight of the stuff laying on it, so he could also detect who actually was sleeping in the bed.

edit: here it is https://www.reddit.com/r/homeassistant/comments/856yav/i_made_a_stupidly_accurate_bed_occupancy_sensor/

1 Like

That would be a great idea if HA actually tracked the charging state reliably (it doesn’t).

1 Like

Check this Bed Occupancy Sensor project

That’s an interesting way to find out when your postman comes :wink:

1 Like

What about just having a motion sensor on each side of the bed? If they are masked so they only see movement on one side, that should give a pretty reliable and cheap detection.

One of the first things I do when I wake up is check my phone, so what would work for me is to have a sensor that detects whether my phone is unlocked. Has anyone found a way to do this on Android?

That should be possible with Tasker.

There is an event when the display is unlocked.
You can create a task to post this information to HA.

you could use ariela.
it has a lot of sensors, including a screen sensor.

Actually I think the new version of the HA companion app has unlock detection

I think the Bed Occupancy project is an interesting idea, combined with time or sun based sensors.
Motion sensors under the bed are not going to work in the OP’s case as they would be triggered by the cat.
On Android I know the newer versions of the HA App can detect a phone unlock. For me, I always charge my phone overnight, and I unplug it when I get up in the morning so using the sensor in the app to detect when the phone is unplugged in the morning seems to work for me :slight_smile:.

I use to use a “first light” sensor, but again relied on motion and could be triggered by other things moving.

Old thread but I am wrestling with the same situation.

Any drawbacks of using the sleep confidence sensor of the companion app maybe in conjunction with interactive mode?