Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Sleep Device Controller

    10

    Control Eight Sleep pods through the API/CLI: authenticate, list devices, query sensor data, set temperature per side, manage alarms and schedules, and handle o

    Free

    5 usesSecurity scanned
    Sleep Device Controller

    Sleep Device Controller

    Example session with this skill installed

    Create a python script to warm the left side of my bed to 28 degrees and check if the device is online.

    • Read your context and instructions
    • Compiled the sleep device controller

    I will generate a Python script using your ES_EMAIL and ES_PASS. It will authenticate, verify device connectivity, and issue a PUT request to /v1/devices/{id}/sides/left/target with a value of 28. It includes a backoff handler if the pod reports as offline.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Controlling smart beds manually through a mobile app prevents integration with home automation scripts or data analysis pipelines. Developers lack a structured way to programmatically manage temperatures, fetch biometric sensor data, and sync alarm schedules.

    What it does

    • Authenticates with the Eight Sleep API to manage session tokens.
    • Lists available devices and maps individual side IDs for dual-zone control.
    • Fetches high-resolution sensor data including heart rate, HRV, and respiratory metrics.
    • Sets target temperatures for specific bed sides with safety clamping.
    • Manages alarm configurations and weekly schedules via CLI or scripts.

    Frameworks & tools

    Eight Sleep API, cURL, Bash, Python, and jq.

    Why this beats prompting it yourself

    This skill handles the specific API handshake requirements and device side mapping logic that generic prompts miss. It includes built-in logic for handling offline devices with backoff strategies and stale data flagging to prevent script crashes.

    Use cases

    • Pre-heat the bed automatically based on external calendar events or sunset times.
    • Export sleep biometrics to a private database for long-term health tracking.
    • Sync bed alarms with phone or smart home morning routines.
    • Monitor device connectivity and log hardware uptime.

    Known limitations

    Requires active Eight Sleep account credentials. Target temperatures are restricted to the 10-40°C range for safety.

    Requires Eight Sleep account credentials via environment variables. Temperature settings are restricted to the 10-40°C range. Does not support other mattress brands.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    5 uses

    Times used to date

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 months ago

    • Free with an Agensi account

    Requires

    Eightsleep

    Permissions

    Terminal / Shell
    Network Access

    Allowed Hosts

    api.eightsleep.com
    Listed3 months ago

    What's inside

    Frequently Asked Questions

    This skill provides a structured interface to the Eight Sleep API, allowing you to programmatically control temperature, manage dual-zone sides, and extract biometric sensor data like heart rate and HRV for home automation or data logging.

    The skill is compatible with any AI agent or platform that supports external API integrations or command-line tools, including popular LLM frameworks and custom Python-based automation environments.

    Yes, the skill is designed for dual-zone beds; it can independently identify and control the left and right sides of the pod, allowing for unique temperature settings and alarm schedules for each user.

    You will need your Eight Sleep account credentials (email and password) to authenticate; the skill handles the session token management and API handshake required to communicate with the hardware.

    Your purchase includes the core logic for API communication, device mapping, and data fetching, along with documentation on how to integrate the controller into your existing scripts or AI agent workflows.

    For user safety, target temperatures are restricted to a range of 10-40°C (50-104°F) within the skill's logic to prevent hardware overheating or extreme cooling commands.

    New in APIs & Backend