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
aiohttpfor 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)
| File | Size | Uploaded | |
|---|---|---|---|
| pysomneo-6.0.0b2.tar.gz | 50.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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