home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

EightSleep regularly fails to connect #11644

Closed jaburges closed 6 years ago

jaburges commented 6 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.60.1

Python release (python3 --version): 3.5.2

Component/platform: EightSleep

Description of problem: regularly fails to connect and initialize

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:


eight_sleep:
  username: !secret eight_sleep_user
  password: !secret eight_sleep_pass
  partner: true

**Traceback (if applicable):**
2018-01-14 12:27:35 ERROR (MainThread) [pyeight.eight] Error posting Eight data. 
2018-01-14 12:27:35 ERROR (MainThread) [pyeight.eight] Unable to authenticate and fetch eight token.
```bash

Additional info: first time raising but, let me know if anymore info is needed

mezz64 commented 6 years ago

This component uses the exact same api and call methods as the app, albeit in an unsupported manner. It's not using a local connection to your eight, so if the app works, this should work.

I do occasionally see connection errors as well in my instance, but since the component reestablishes the connection on each update is should only affect the data for that particular attempt. It does however need to be able to connect initially obviously or it won't be able to complete the setup.

jaburges commented 6 years ago

Issue seems resolved note 2 things i spotted:

  1. the indentation of the username and password is double....
eight_sleep:
1234username: "user"
1234password: "pass"
  1. i hit the API to check my token worked as i was getting auth issues.

Hope this helps someone