lukas-clarke / eight_sleep

Home Assistant Eight Sleep integration that works with Eight Sleep's new API and OAUTH2
MIT License
107 stars 19 forks source link

bed_state_type doesn't match README values #33

Open JMartJonesy opened 4 months ago

JMartJonesy commented 4 months ago

I am seeing my bed_state_type as 'timeBased' instead of one of the four values you listed as possible values ("off", "smart:bedtime", "smart:initial", "smart:final"). How should I be telling if the 8sleep is off on a particular side?

lukas-clarke commented 4 months ago

I'll try to take a look at this later in the week/next weekend

mwalling commented 4 months ago

I confirmed that /temperature is returning "off" as appropriate in the HA logbook for myself.

@JMartJonesy do you have Autopilot enabled in the app? Also, can you try capturing the traffic using something like mitmproxy and get the response body for the /temperature endpoint where you see this value? (feel free to redact stuff that looks like IDs)

The joys of reversing an undocumented API...