This is a custom Home Assistant integration for controlling the Hatch Rest (1st-generation) nightlight and sound machine over Bluetooth Low Energy (BLE).
It provides a fully asynchronous, locally-controlled interface using a rewritten BLE API based on — and with gratitude to — the original work by kjoconnor in the pyhatchbabyrest project.
- Local BLE control — no cloud required
- Three (3) entities exposed:
- Light (RGB + brightness)
- Switch (main power)
- Media Player (sounds + volume)
- Add this repository as a Custom Repository (HACS → Integrations → Custom Repositories)
- Search for Hatch Rest
- Install → Restart Home Assistant
- Go to Settings → Devices & Services → Add Integration
- Search for Hatch Rest
- Choose your discovered device from the list
- Confirm the Bluetooth address
- Done!
- Master on/off power state of the device
Because the Hatch Rest is a BLE device:
- A compatible Home Assistant Bluetooth controller is required
This integration uses BLE connections aggressively but cleanly:
- Queues operations
- Avoids simultaneous connects
- Disconnects when idle
- Automatically retries on common BLE failures
Issues and PRs are welcome!
If you improve the async BLE API or add new services (timers, programs, gradients), feel free to submit a pull request.