Skip to main content

unique-fridge

Async Python access to the characterized refrigerator BLE protocol.

Install for development

python -m pip install -e .

Basic use

import asyncio
from unique_fridge import RefrigeratorClient

async def main():
    async with RefrigeratorClient("BLE-ADDRESS", bytes.fromhex("AA BB CC")) as fridge:
        state = await fridge.read_state()
        print(state.actual_a.celsius, state.actual_b.celsius, state.voltage)

asyncio.run(main())

Safety model

  • Frame length, terminator, and checksum are validated.
  • BLE fragments are reassembled before decoding.
  • Setpoints are limited to the characterized -22..+10 C range.
  • Reserved cooling and battery-protection encodings are rejected.
  • Unknown deviceParam bits 7 and 4 are preserved.
  • Configuration methods perform a fresh state read, one write, validate the immediate 0x0B state response, and perform an independent 0x0A readback.
  • Compartment control accepts only states 0, 1, and 2 and performs an independent 0x0A readback.
  • History requires all 48 checksum-valid sequence frames and exactly 2880 decoded samples.
  • The CLI harness refuses mutating commands unless --allow-write is supplied.

Harness examples

python test_unique_fridge.py --address AA:BB:CC:DD:EE:FF --code AABBCC status
python test_unique_fridge.py --address AA:BB:CC:DD:EE:FF --code AABBCC history --output history.csv
python test_unique_fridge.py --address AA:BB:CC:DD:EE:FF --code AABBCC --allow-write cooling ECON
python test_unique_fridge.py --address AA:BB:CC:DD:EE:FF --code AABBCC --allow-write protection HIGH
python test_unique_fridge.py --address AA:BB:CC:DD:EE:FF --code AABBCC --allow-write compartment both

Metadata

Release files for unique-fridge 0.1.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 unique-fridge 0.1.1
File Size Uploaded Provenance
unique_fridge-0.1.1.tar.gz 10.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for unique-fridge 0.1.1
File Interpreter ABI Platform
unique_fridge-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / unique_fridge-0.1.1.tar.gz

Download URL unique_fridge-0.1.1.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e58761c186baed6ef7382831183d5726a3deb8740c175cedb3036867329f27d1
BLAKE2b-256 checksum
How to use checksums
af8da09a7f314eb05c712202e72419a1fd1604c33025eb008400d23947b9ba19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / unique_fridge-0.1.1-py3-none-any.whl

Download URL unique_fridge-0.1.1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80b3a49765422f539f78d7dfd0ae36df2e1d7311a131a3a2bd1ed5ebed35a520
BLAKE2b-256 checksum
How to use checksums
efe7af2b9e9a91aab0d388ec583affbb0d9617de4dab157cdde2a21e2a3eb01c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for unique-fridge 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1.1 This release

2 release files No 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