This is an unofficial Eight Sleep and SmartThings integration. With this smart app and device handler you are able to connect the Eight Sleep Mattress and Cover to SmartThings. https://www.eightsleep.com
#Installation Guide
To install the Eight Sleep (Connect) app and Eight Sleep Mattress device handler:
Add the Eight Sleep (Connect) app from GitHub as a new āMy SmartAppsā, select create from code option and paste. Save and Publish.
Add the Eight Sleep Mattress device type from GitHub as a new āMy Device Handlersā, select create from code option and paste. Save and Publish.
Add the Eight Sleep (Connect) app within the ST app from the Marketplace, then selecting the āSmartAppsā tab and locating the Eight Sleep (Connect) app under the āMy Appsā section which should be at the bottom of the list.
Add your Eight Sleep credentials (email and password) and select āDoneā on top right of app.
You should be able to select your Eight Sleep devices in the configuration screen.
Once you have selected your devices, click Done on the top right.
For every Eight Sleep device, you should see two devices automatically appear under āThingsā with the labels Eight Sleep [device ID] [Left] and Eight Sleep [device ID] [Right] (may require SmartThings app restart). You most likely will want to relabel these devices to something more useful. This can be done by pressing the settings icon on the top right of the device tile screen.
Installation went smoothly. Can see the bed warmer is active and counting down. Looking forward to the morning and seeing the stats showing up. Great start!
I have another question: if you send a setLevel command to 100 for example, I suppose that the switch will be turn on too⦠The DTH does not reflect this in the UI.
Am I mistaken to assume that a setLevel command will turn on the switch also?
The api does sync with the eight Sleep app. This is most apparent by changing the level of heat and turning be mattress on and off. Altering the timer will not as this does not fire an api call.
The 403 is due to the device attempting to fetch sleep data for your partner user. I will stop this in the next release.
Setlevel does not turn the switch on. It just sets the level via the api and you should see this sync into the eight Sleep app.
Will you make the Eight devices Precense sensors?
My main goal for Eight was to have a way to have a way to set the house into Good Night mode based on both my wife and I getting in bed at a certain time slot. I currently have it set to no motion in the house at 11:00 pm but would love to come up with a way to use the sensors if my wife and I are both in bed for a xx:xx amount of time set the house into good night also.
The āpresenceā indicator is a contact sensor but is far from reliable at the moment to use within a rule. This is on the top of my list of things to figure out.
I can certainly alter the setLevel behaviour for the device so it also switches on the device if it makes it more consistent with other devices with similar capability.
As for the timer, thatās a mandatory requirement when you send an āonā command to the eight sleep API. The only way round this is to up the timer to the maximum 10 hours in the device. Itās the up arrow on the right hand side.
BETA Release 2 is here. Thank you for all the feedback and please keep it coming.
New features and areas to test include:
Changing setLevel behaviour to also turn on mattress if off as requested by @yvesracine
Partner account support. You should be able to add this into the Eight Sleep (Connect) app once updated. You should be able to view sleep trend data for both left and right side devices after this.
Still working on improving the presence detection. Iām analysing the variables over the next few nights to see if any patterns occur.
Another request if itās possible: could you expose the internal temperature reported in the Eight Mobile app⦠I donāt know if the APIs allow it.
That way, my smartapps could proportionally calculate the right setLevel to send to the device based on the temperature readings and the userās desired temp.
Regards.
EDIT: BTW, could you post the Eight APIs documentation?