Eight Sleep Mattress - Port from ST

Is that within the specific device or within the log for the app itself?

Here is the device log:

I changed the httpPut to httpPutJson and that got rid of the API POST: null error I was getting when I selected the off button.

Still trying to sort out the contact open/close issue.

I guess my question is this: when you make a change in the Eight app (ios/Android) does the change reflect in hubitat and vice-versa?

I would expect this behavior to ensure connectivity.

The short answer is that it does for me. If I go into my iOS app and change the warming from 6 to 10. I do see that reflected in the device after the next polling cycle (5 minutes).

To expand (and complicate) your question, I think it’s about “what” is reflected by “which” platform. Unfortunately, the 8SLP API is private. Alex did a really great job at sniffing out what he could get and then building a pretty complicated DTH and App to support it. He put in a lot of stuff to recreate the sleep analysis and other stuff that is done on the 8SLP side. This isn’t just a simple pull and put as other DTHs are.

Unfortunately, things like the “contact” aren’t so simple. There is no contact switch that was accessed in the API. Alex used a pretty complicated formula of temperature measurement to guess if someone was in bed or not. So, somethings like “desiredLevel” or “on” or “off” will be synced between the two platforms. Other things aren’t.

If I follow the philosophy of Hubitat (which I think is just automation) then I can setup some rules to heat the bed (repeat every 3 hours since I can’t set the timer through the DTH) at night.

I was hoping to drive some automation in the house by being able use the “get out of bed”, but I’m having a hard time finding why that part of his code isn’t working. And I’m just starting to relearn how to code after decades of not doing it, so I’m far from being close to the sharpest tool in the shed.

My friend you are sharper than I.

I know Alex abandoned the app as he is in the UK and eight is not in the UK.

Maybe he would lend support?

I’ll reach out later today. He dropped support as his 8SLP died. Maybe I can get some of his previous code to help strip it down for more simple functionality.

I also have Eight sleep cover and would like to integrate it in HE, but after reading the whole thread I still don't completely understand is it working or not. @JDogg016 or @homeauto2112 can you clarify?

Not working and frankly it did not work that well on ST either. I’ve had better luck creating Virtual switches for the ‘Heat’ function in HE and then integrating with IFTTT.

THis works out as I do not require instantaneous changes to the bed heater.

I gave up on it. It was working, but there was such a delay in registering when I was in bed that it wasn't worth trying to tweak the rules to make it work.

Understood. Thank you guys. Is it possible that the problems were related to very unstable hub internet connection at that time(March 2018 and before)?.Right now I can say that internet connection for the hub is very stable and I didn't have any outage at least for 6 month already.
Which App an Dth is the latest one I can try if I decide to test it?

I no longer have the device code, it must be here somewhere.

I will caution you that when the internet goes down on the Eight Hub... this will assuredly crash the HE hub as it did for me.

I have just ordered an Eightsleep Pod and was wondering if this port works with the Pod as well which has the temperature controls?

I’m assuming everyone said forget it?

I wrote my own app based on Alex's app with some additional features at [RELEASE] Eight Sleep Pod.