Nokia Sleep senor support

AFAIK there is one big problem with their API… You can get the “health” data, but not the IN / OUT bed trigger… The one that would be most useful for automations…

I’ve already mailed withings (it’s no longer Nokia’s) and does not look like they will be adding that trigger soon (they pointed me to IFTTT again). Maybe it would help if more people mail their support…

“We want the trigger” :slight_smile:

TBH I’ve stopped using my Nokia sleep sensor, readings were so unreliable it disgusted me and I have it in a draw now gathering dust

Weirdness… In my bed it works perfectly… Do you have a waterbed or something? :wink:

Nope, but if I get up in the middle of the night it will often ‘end’ my sleep session there and not recognise that when I get back in bed the session should continue

I’ve been using the mi band 3 for sleep tracking and it’s been working really great. Have to use tasker to get it into HA

I just wanted to provide a quick follow up to how these pads have done for me. I use the IFTTT trigger and it works 100% for me. I really wish there was a local API, but with that said since the IFTTT trigger has worked perfectly, its fine for now. Still hoping they change their stance on the in/out of bed API

I dont actually even look at the sleep tracking, so I cannot comment on how well it does. I use the triggers to turn on a virtual switch for me and for my wife. These pads sometimes come down to as low as $70. It might be a bit just to monitor if you’re in bed or not, and no local API, but… super easy.

I use these now to trigger my goodnight routines and to turn off bedside lamps after we get into bed. I also use them as conditions for other automations, like if one of us is in bed, dont turn on the bedside lamps.

Withings Sleep (formerly Nokia (formerly Withings)) support for home assistant is coming. Here is a link to the pull request.

Documentation on how to use it:

Full disclosure, I wrote it.

5 Likes

Awesome. I have a couple of these. Will this provide in and out of bed info. I seem to remember that a while ago that this was not offered in the api. I’ve been using ifttt for a while to I initiate my good night routines when we go to bed

I discovered something possibly useful today. I’ve been using these for about 6 months with IFTTT to turn on/off an input boolean to know when we get in and out of bed. I also have the asus device tracker, and noticed while doing some cleanup of some of the device tracker names I noticed the trackers were on my list. I gave them friendly names, but when paying closer attention, I noticed that they were “home” every time there was a IFTTT event. So, even if the IFTTT did nothing, I could use the presensce as another way to be more local, and not require internet access. What I still need to test is, does it connect to wifi every time there is an event even if I’m not using IFTTT.

Either way, this is kind of a nice hack to not be dependent on the cloud. Still need to be able to come up with a good way to know the difference between in and out though. The wifi connections are quick.

even with the last dev version of home-assistant, i can not add the “component” withings on WebUI of my HA instance.

Any ideas of how to do that ?

Going to test over the weekend

Thera are any results?

So im late to the party, did anything happen here, or did it just die out?
Would love that i could set set the light to turn off in some rooms, and my aircondition to turn on when i go to bed, and off when i leave my bed again now that electricity are cheaper at night.

I would like to know aswel

The Withings (successor of Nokia) API does support “Bed In” and “Bed Out” events, see Withings Scales. You just have to find someone who is able to update the Withings integration.

1 Like

This is good news.
How to find such a skilled and brave person, maybe even tip him.

I did a bit of searching.

I see the section in the withings.common.api

It looks like a new class was added for “notify”

class NotifyAppli(IntEnum):
    """Data to notify_subscribe to."""

    WEIGHT = 1
    CIRCULATORY = 4
    ACTIVITY = 16
    SLEEP = 44
    USER = 46
    BED_IN = 50
    BED_OUT = 51

now that is the extent of my python coding abilities, haha.

1 Like