asyncsleepiq
ASync SleepIQ API
What it is and what it does
AsyncSleepIQ is a Python library that wraps the SleepIQ API—the remote interface for SleepNumber smart beds—using async/await patterns via aiohttp. It lets you authenticate to your SleepNumber account, fetch current bed occupancy and sleep number settings, and control bed features like pause mode and calibration from Python code.
The library manages authentication (supporting both legacy key-based and modern cookie-based methods) and handles automatic re-authentication if sessions expire. You initialize it once with login and init_beds, then call fetch_bed_statuses repeatedly to poll for updates without re-authenticating each time. It exposes bed state through SleepIQBed, SleepIQSleeper, and SleepIQFoundation classes that you query and manipulate after fetching.
Use it for:
- Monitor bed occupancy and sleep number values in a home automation system.
- Build a dashboard that displays real-time SleepNumber bed status for multiple beds.
- Automate bed pause mode or calibration on a schedule or in response to events.
- Integrate SleepNumber data into a sleep tracking or health monitoring application.
- Create alerts when bed occupancy changes or sleep number drifts beyond a threshold.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
AsyncSleepIQ provides async Python access to the SleepIQ API for SleepNumber beds, allowing you to query bed status, occupancy, sleep number values, and control bed features like pause mode and calibration.
Yes, if you own a SleepNumber bed and need programmatic control or monitoring. The library is actively maintained, has no known vulnerabilities, installs with minimal friction (one dependency), and uses a permissive MIT license. The main constraint is hardware availability—you must own a compatible SleepNumber bed to test or use it meaningfully.
Install
asyncsleepiq on PyPI
pip
pip install asyncsleepiquv
uv add asyncsleepiqpoetry
poetry add asyncsleepiqInstalling asyncsleepiq
Before you install
Low install friction; depends only on aiohttp. Actively maintained with a recent commit as of 2026-03-11 and no known vulnerabilities.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe to integrate into any project.
Quickstart
pip install asyncsleepiq
import asyncio
from asyncsleepiq import AsyncSleepIQ, LOGIN_COOKIE
async def main():
api = AsyncSleepIQ(login_method=LOGIN_COOKIE)
await api.login("user@example.com", "password")
await api.init_beds()
await api.fetch_bed_statuses()
for bed in api.beds.values():
print(bed)
await api.close_session()
asyncio.run(main())
Requires a SleepNumber bed with SleepIQ capability and valid SleepNumber account credentials.
Verify before relying
- Whether the library supports all current SleepIQ API endpoints or only a subset of documented operations.
- Python version compatibility beyond the generic 'Python :: 3' classifier.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — aiohttp |
| Maintenance | actively maintained — 156 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 75,809/month — #14,679 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: asyncsleepiq-1.7.1-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
aio-pikaaio-pika is an asyncio-based wrapper around…
permissive · top 5,000 on PyPI
python-timeoutGenerates random timeouts between specified…
unclear · top 15,000 on PyPI
aiomodernformsAsynchronous Python client for controlling and…
permissive · top 15,000 on PyPI
aiosyncthingAsynchronous Python client for the Syncthing…
permissive · top 15,000 on PyPI
stqdmstqdm wraps tqdm progress bars for Streamlit…
permissive · top 15,000 on PyPI
ha-garminPython client for the Garmin Connect API with…
permissive · top 15,000 on PyPI
relrel is a cross-platform asynchronous event…
permissive · top 15,000 on PyPI
aioresponsesMocks HTTP requests made by aiohttp's…
permissive · top 5,000 on PyPI
AIOSomecomfortAsyncIO client for querying and controlling…
permissive · top 15,000 on PyPI
pybedtoolsWraps the BEDTools suite to perform genomic…
permissive · top 15,000 on PyPI