Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sleepiq services #11735

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
49 changes: 49 additions & 0 deletions source/_integrations/sleepiq.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,52 @@ password:
required: true
type: string
{% endconfiguration %}

## Services

SleepIQ exposes a few services to control your Sleep Number bed via automations:

This changes a bed's sleep number to the specified value. This value should be a multiple of 5 between 5 and 100. Other values will work, but they will be rounded to the nearest multiple of 5 by the Sleep Number API.
Jay2645 marked this conversation as resolved.
Show resolved Hide resolved

```yaml
- service: sleepiq.set_sleep_number
data:
sleep_number: 45
bed: 'Master Bedroom'
side: 'right'
```

{% configuration %}
Jay2645 marked this conversation as resolved.
Show resolved Hide resolved
sleep_number:
required: true
description: The new sleep number, as a multiple of 5 between 5 and 100.
type: integer
bed:
required: false
description: The name of the bed. If unspecified, affects all beds. Case-insensitive.
type: string
side:
required: false
description: The side to change. If unspecified, both sides will change. Case-insensitive.
type: string
{% endconfiguration %}

This service changes a side's sleep number to its "favorite" preset.

```yaml
- service: sleepiq.set_to_favorite_sleep_number
data:
bed: 'Master Bedroom'
side: 'left'
```

{% configuration %}
bed:
required: false
description: The name of the bed. If unspecified, affects all beds. Case-insensitive.
type: string
side:
required: false
description: The side to change. If unspecified, both sides will change. Case-insensitive.
type: string
{% endconfiguration %}