Nokia Sleep senor support


#1

Nokia recently released a smart sleep tracking sensor. I would like to integrate this device to track sleep and e.g. turn on lights when i stand up, or set the alarm to a light sleep state.


#2

+1 …
Native sleep sensor intergration would be better than IFTTT.


#3

I’m also looking to get one of these - has anyone tried it yet? How’s the reliability/response through IFTTT?

Looks like there’s API info available here.


#4

Robin has ordered one: Making a sensor to detect if I'm in bed


#5

I’m going to return the Nokia sleep sensor - so inaccurate it’s useless


#6

That’s disappointing.


#7

Mine is working very well.


#8

inaccurate in what way? it captured my sleep-pattern pretty well and also, even beeing forced to use ifttt, reported occupancy pretty quickly. i did however hand it over to my wife’s side of the bed and made myself a DIY sensor that works cloudless.


#9

Its been reporting that I sleep only 30 mins for most nights. A couple of times it was more accurate, but still quite far off my own estimate


#10

that seems indeed to be quite inaccurate.


#11

@diplix OK so I adjusted the position of the Nokia sleep ever so slightly, not it appears to be functioning well. I have a slatted frame so perhaps it requires precise positioning over a sold base. If it keeps functioning well I will write a component for it.


#12

Mine is also showing something like an hour of sleep. I’ll try to move.
Have you guys tried with IFTTT? On my would take forever to turn on the lights if I left the bed.


#13

IFTTT is very flaky - I won’t even make the effort to setup


#14

@robmarkcole did you ever get around to writing a component?


#15

I did not, yet. I recall finding that someone had written a custom component for it. Only thing I can find right now is https://github.com/LiamsGitHub/WithingsNokiaAPI


#16

You now need OAuth 2.0 to communicate with the Nokia / Withings Sleep

I put a link to a fork with OAuth 2.0 support in the other Withings thread.
Hopefully it might prove useful?


#17

Yes that is useful. The only thing stopping me is that I already have multiple projects on the go, if you want to start writing a component I’m happy to help out where I can, testing etc?


#18

I wouldn’t know where to even start with making a component unfortunately. Programming and my self don’t get along to well.


#19

We all started somewhere


#20

Sounds like the majority of the code is done, now you just need to format it to something like json and send it over via mqtt