Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 554 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 554 Bytes

Honeywell HPA250B BLE library

Controls Honeywell HPA250B device over BLE using the Bleak library.

Example

import asyncio

from hpa250b_ble import HPA250B, BleakDelegate, reconcile, State, Preset, Backlight


ADDRESS = "00:00:00:00:00:00"  # your device MAC address (UUID on macOS)

d = HPA250B(BleakDelegate(ADDRESS))
await d.connect()

desired = State(
    is_on=True,
    preset=Preset.AUTO_VOC_POLLEN,
    backlight=Backlight.DIM,
    voc_light=None,
    timer=12,
)
await reconcile(d, desired)