Skip to main content

PySnooz

Python Language + Bleak API + SNOOZ White Noise Machine

CI Status Test coverage percentage PyPI Version

Control SNOOZ white noise machines with Bluetooth.

Installation

Install this via pip (or your favourite package manager):

pip install pysnooz

Supported devices

Usage

import asyncio
from datetime import timedelta
from home_assistant_bluetooth import BluetoothServiceInfo
from pysnooz.device import (
  SnoozAdvertisementData,
  SnoozDevice,
  SnoozCommandResultStatus,
  disable_night_mode,
  enable_night_mode,
  get_device_info,
  set_auto_temp_enabled,
  set_fan_speed,
  set_light_brightness,
  set_temp_target,
  set_volume,
  toggle,
  turn_fan_off,
  turn_fan_on,
  turn_light_off,
  turn_light_on,
  turn_off,
  turn_on,
)

# found with discovery
device_info = BluetoothServiceInfo(...)
advertisement = parse_snooz_advertisement(device_info)

device = SnoozDevice(device_info, advertisement)

# optionally specify a volume to set before turning on
await device.async_execute_command(turn_on(volume=100))

# you can transition volume by specifying a duration
await device.async_execute_command(turn_off(duration=timedelta(seconds=10)))

# toggle on or off. A transition that's still running is reversed from where
# it is, instead of toggling the momentary device state
await device.async_execute_command(toggle(volume=75, duration=timedelta(seconds=30)))

other_commands = [
  set_volume(50, duration=timedelta(seconds=10)),
  set_light_brightness(75),
  turn_light_on(),
  turn_light_off(),
  enable_night_mode(),
  disable_night_mode(),

  # the following commands are only supported by Breez
  set_fan_speed(33, duration=timedelta(seconds=10)),
  set_auto_temp_enabled(True),
  set_temp_target(71)
]
for command in other_commands:
  await device.async_execute_command(command)

# view the result of a command execution
result = await device.async_execute_command(turn_on())
assert result.status == SnoozCommandResultStatus.SUCCESS
result.duration # how long the command took to complete

Contributors ✨

Thanks goes to these wonderful people (emoji key):

bradleysryder
bradleysryder

💻
Martin Weinelt
Martin Weinelt

💻
epenet
epenet

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Cookiecutter and the browniebroke/cookiecutter-pypackage project template.

Metadata

Release files for pysnooz 0.11.1

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

Source distribution (sdist)

Source distribution for pysnooz 0.11.1
File Size Uploaded Provenance Actions
pysnooz-0.11.1.tar.gz 24.3 kB With provenance Details for pysnooz-0.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysnooz 0.11.1
File Interpreter ABI Platform Actions
pysnooz-0.11.1-py3-none-any.whl Python 3 none any Details for pysnooz-0.11.1-py3-none-any.whl

Total release size: 51.1 kB

Release files / pysnooz-0.11.1.tar.gz

Download URL pysnooz-0.11.1.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
49dec5b85212948b88421d7981c8e378b71c90cbde33ff6fe9067ffc6e8dfafd
BLAKE2b-256 checksum
How to use checksums
9a3b5017be856ffdfe2c650792388ead25f6b60c477a213eb5a90d5b2c6ffcf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / pysnooz-0.11.1-py3-none-any.whl

Download URL pysnooz-0.11.1-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
564aca213221d5e46129e2fdb9e34765728d2e4e2406213070c4025096157840
BLAKE2b-256 checksum
How to use checksums
4c426f57e0c444552679b59c60bee5f6e3ab7a046c9a85439473d528bd82ed94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for pysnooz 0.11.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pysnooz-0.11.1.tar.gz

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 Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11.1 This release

2 release files Full provenance

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