Thatās great! Thank you. Iām working on commenting out the code that Iām not finding helpful now. For example, he used the battery as a way to report on the sleep score. Using the battery automatically included it in my HSM battery rule (and I can use the app to see the sleep score) so I commented it out. Iām also looking at the contact switch (in bed) part to see if it works and how I can speed up the reporting of it. Iād like to drive some automation based on whether Iām in bed or not.
I can keep you updated on this if you want. Iām not sure what has value to you in the code though, and itāll be a slow process as I continue to relearn how to program. Seems thatās taking longer than I thought.
There is definitely something strange going on. The devices will only log a poll and refresh. So, even when I select the On or Off buttons and the Device page shows the switch turning on/off, I donāt see any updates on the Events or Log pages.
Actually this is the issue, itās within the Bed App
[app:433](http://192.168.7.201/logs#app433)2018-03-21 21:39:29.433:infoStatus: 200
[app:433](http://192.168.7.201/logs#app433)2018-03-21 21:39:25.799:errorNo encoder found for request content type */* on line 538
[app:433](http://192.168.7.201/logs#app433)2018-03-21 21:39:25.793:debugBeginning API POST: /devices/3b0037000151363133343338, [leftHeatingDuration:11700]
[app:433](http://192.168.7.201/logs#app433)2018-03-21 21:39:23.792:errorNo encoder found for request content type */* on line 538
[app:433](http://192.168.7.201/logs#app433)2018-03-21 21:39:23.779:debugBeginning API POST: /devices/3b0037000151363133343338, [leftTargetHeatingLevel:10, leftHeatingDuration:11700]
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.
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?