|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: "Eight Sleep" |
| 4 | +description: "Interface an Eight Sleep smart cover or mattress to Home Assistant" |
| 5 | +date: 2017-04-24 00:00 |
| 6 | +sidebar: true |
| 7 | +comments: false |
| 8 | +sharing: true |
| 9 | +footer: true |
| 10 | +logo: eight_sleep.png |
| 11 | +ha_category: Hub |
| 12 | +ha_release: "0.44" |
| 13 | +--- |
| 14 | + |
| 15 | +The `eight_sleep` component allows Home Assistant to fetch data from your [Eight Sleep](https://eightsleep.com/) smart cover or mattress. |
| 16 | + |
| 17 | +It's setup utilizing 'Sensor' components to convey the current state of your bed and results of your sleep sessions and a 'Binary Sensor' component to indicate your presence in the bed. A service is also provided to set the heating level and duration of the bed. |
| 18 | + |
| 19 | +To get started add the following information to your `configuration.yaml` file: |
| 20 | + |
| 21 | +```yaml |
| 22 | +# Example configuration.yaml entry |
| 23 | +eight_sleep: |
| 24 | + username: "user@email.com" |
| 25 | + password: "password" |
| 26 | +``` |
| 27 | +
|
| 28 | +Configuration variables: |
| 29 | +
|
| 30 | +- **username** (*Required*): The email address associated with your Eight Sleep account. |
| 31 | +- **password** (*Required*): The password associated with your Eight Sleep account. |
| 32 | +- **partner** (*Optional*): Default is False. Defines if you'd like to fetch data for both sides of the bed. |
| 33 | +
|
| 34 | +### {% linkable_title Supported features %} |
| 35 | +
|
| 36 | +Sensors: |
| 37 | +
|
| 38 | +- eight_left/right_bed_state |
| 39 | +- eight_left/right_sleep_session |
| 40 | +- eight_left/right_previous_sleep_session |
| 41 | +
|
| 42 | +Binary Sensors: |
| 43 | +
|
| 44 | +- eight_left/right_bed_presence |
| 45 | +
|
| 46 | +### {% linkable_title Service `heat_set` %} |
| 47 | + |
| 48 | +You can use the service eight_sleep/heat_set to adjust the target heating level and heating duration of your bed. |
| 49 | + |
| 50 | +| Service data attribute | Optional | Description | |
| 51 | +| ---------------------- | -------- | ----------- | |
| 52 | +| `entity_id` | no | Entity ID of bed state to adjust. |
| 53 | +| `target` | no | Target heating level from 0-100. |
| 54 | +| `duration` | no | Duration to heat at the target level in seconds. |
| 55 | + |
| 56 | +Script Example: |
| 57 | + |
| 58 | +```yaml |
| 59 | +script: |
| 60 | + bed_set_heat: |
| 61 | + sequence: |
| 62 | + - service: eight_sleep.heat_set |
| 63 | + data: |
| 64 | + entity_id: "sensor.eight_left_bed_state" |
| 65 | + target: 35 |
| 66 | + duration: 3600 |
| 67 | +``` |
0 commit comments