Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pysomneo

An async Python library to communicate with the API of Philips Somneo wake-up lights.

Features

  • Async-first design using aiohttp for optimal Home Assistant integration
  • Automatic session management with connection pooling
  • Exponential backoff with jitter for transient errors
  • Automatic session recovery on connection errors
  • Full support for all Somneo API endpoints:
    • Light control (main light, night light)
    • Alarm management (create, modify, delete, enable/disable)
    • Sunset simulation (dusk mode)
    • Audio player control (FM radio, AUX, nature sounds)
    • Sensor data (temperature, humidity, luminance, noise level)
    • Display settings
    • Snooze configuration

Installation

pip install pysomneo

Usage

import asyncio
from pysomneo import Somneo


async def main():
    somneo = Somneo("192.168.1.100")

    # Fetch all data
    data = await somneo.fetch_data()
    print(data)

    # Get device info
    dev_info = await somneo.get_device_info()
    print(dev_info)

    # Control the light
    await somneo.toggle_light(True, brightness=128)

    # Get current data
    data = await somneo.fetch_data()
    print(f"Temperature: {data['temperature']}")
    print(f"Light is on: {data['light_is_on']}")


asyncio.run(main())

Development

pip install -e .

Release files for pysomneo 6.0.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysomneo 6.0.0b2
File Size Uploaded
pysomneo-6.0.0b2.tar.gz 50.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysomneo 6.0.0b2
File Interpreter ABI Platform
pysomneo-6.0.0b2-py3-none-any.whl Python 3 none any Details

Total release size:89.4 kB

Release files / pysomneo-6.0.0b2.tar.gz

Download URL pysomneo-6.0.0b2.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cdf0c6ed074386dce729a48e38132d560527fac3f006a2a717d63aad2b0d92ef
BLAKE2b-256 checksum
How to use checksums
ab3a180bc0d56f7867dfa219b8c9bd46b4333f9cb3467ab47d24792a1ac2ed9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / pysomneo-6.0.0b2-py3-none-any.whl

Download URL pysomneo-6.0.0b2-py3-none-any.whl
Size 39.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0c85043c79c0d361c9cba22e1b00565e254be61d43de5ec580d1e2e9044b4f6
BLAKE2b-256 checksum
How to use checksums
2f8080bc96225ee2be3efb07e619b7d963c7231e4f041be0cadbae1d0fefd7aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

6.0.0b2 This release

2 release files

5.0.6

2 release files

5.0.5

2 release files

5.0.4

2 release files

5.0.3

2 release files

5.0.2

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.2.4

2 release files

4.2.3

2 release files

4.2.2

2 release files

4.2.1

2 release files

4.2.0

2 release files

4.1.0

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.6.0

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page