[RELEASE] Sleep Number Controller - control your Sleep Number bed and use it for presence

just re-ran all the tests and everything worked as it should have. SN mobile app (non BT) and HE both showed the present/not present/present so now I'm thinking it's the bed

Go figure

interesting update. I think I recall you mentioning you tried recalibrating the bed but figure I'll ask just in case :slight_smile:

Guess I should have been more clear

When I say worked as it should have, that would be HE and SN were in sync with regards to presence. Still noted the in/out/in within a few mins which I'll keep investigating

As for re-calibrate, 4 or 5 times in the last 2 weeks

Last night getting in bed didn't go so well b/c of the in/out/in/out/in.... arrrrgh

Edit, did I mention this is driving me nuts... not to mention messing with my rules

And the device events don't align with the device log. above is the device log here is the device events

Edit 2: Just got off the phone with SN support, "it takes 7-10 days after a re-baseline for the algorithm on their side to fully update before the bed accurately records information"...

OK, guess I wait now

HE newbie here but I have a Sleep Number that I got used and thus don't have the full Login ability. However, on the SleepIQ app, that isn't actually required to adjust the bed. I can open the app and NOT login but see an "Adjust your bed" option at the bottom and then it scans to find nearby bed and works that way. SO, I assume that bed is broadcasting in some manner and wondering if HE has a driver to add to find it that way instead of logging in to the SleepNumber website (which is what I'm assuming your app does??). I used HPM to install your app. When I give it my Sleep Number username and password (which I have btw, it just doesn't have any beds assigned to it since I bought it used), it throws the error that @JayTee has above. (Unexpected Error: Canot invoke method size() on null object). Thoughts?

The beds (as far as I know) connect via Bluetooth when you're near enough and WiFi over the internet otherwise. HE doesn't have BT capabilities (and even if it did, I don't have equipment to sniff the packets to figure out what to send) so the app uses the internet connectivity which, unfortunately, does require a login. If you use a username and password to log into the app, that should work here but if you're relying on the app locally only (you can't connect when out of the house or far away from the bed) then I'm afraid this won't work for you.

Fair enough; thank you for the quick response! You're doin' the Lords work here it seems! Kudos for the take-ownership of the problem. Great community here in HE land.

sorry it won't work for you right now. Maybe SleepNumber can help you can a login?

Nah, unfortunately I bought it used and lost the contact of whom I purchased from. When I contact Sleep Number, they just think I'm trying to hack someone else's bed and won't register it to my account and won't give me their information. I'm stuck. Oh well, wasn't a deal breaker.

I seeing this in my app? I don't remember seeing it before? Do I need to uninstall and reinstall?

If you check the logs you'll likely see errors saying that the SleepNumber servers were unavailable. These usually self correct (and are due to errors on their end or network problems).

After working flawlessly for months mine stopped working tonight, no control of the bed even though it shows online. With debug logging enabled I see it make the request but I get an "Error making request"

Hopefully a temporary problem on their end.

Here is what I see:

Not updating footwarming state, error making requests

Not updating foundation state, error making requests

Error making request

That certainly sounds like an issue on their end. Mine still shows online so maybe it’s localized. If it persists please let me know (with logs too).

Still wasn't working today, tried a hub reboot and a bed reboot. Strangely enough after I used the android app to control the bed it started working again.

What settings do I need to make to have presence sensors log accurately? Refresh interval? Thanks!

Can you elaborate? What’s not working for you now and can you provide a screenshot of your settings along with logs during the time you think it should be doing something it’s not?

I’m away right now but think I have a 1m refresh during my normal sleeping hours and 30 or 60 during the rest of the time. Mine consistently works for my “night routine” presence - I have the refresh set to minutely the hour we usually get to bed and it detects me/us and starts turning things on/off in the bedroom and elsewhere.

I added an additional pressure sensor connected to an ecolink 2.5 for reliability and speed. EIther triggered = present. Both not present = not present. For the bed I use a 5 minute refresh interval and the pressure mat takes care of the immediate trigger. It's usually just a few seconds before the bed adjusts to my sleep number each night, turns on the fan, and turns off the lights, and arms the alarm. My rule has about 200 devices in it but I do have them in groups with group optimizations enabled on them so it doesn't try to turn off devices that are already off.

1 Like

Set refresh to 5 minutes and seems to work! Thanks. How do you set up 1 minute for night and 30 to 60 during the day?

Turn on variable refresh interval in the app setup. I use 30 minutes in the daytime and 2 minutes at nighttime.

Thanks!

1 Like

I'm sure you have elaborated somewhere about how you've done this, but for whatever reason I can't find it. Can you point me in the right direction, including what pressure sensor/pad you've used? I know Withings Sleep works well, and it's only $50 on eBay but Withings doesn't recommend it for an airbed....