Hatch Rest smart home integration, free and open source

Control Hatch Rest night lights and sound machines: light, color, sounds, volume, battery
Control your Hatch Rest night lights and white noise machines from Gladys: light, color, sounds, volume and battery.
Supported devices
Rest 2nd gen and Rest+ 2nd gen. Other Hatch products (Rest Mini, first-generation Rest+, Restore, Rest Baby) are not supported yet. The battery only exists on the Rest+.
Installation
- In Gladys, open Integrations, then the external integrations store.
- Search for Hatch Rest and click Install.
- Wait for the container to start: the integration shows up in the list.
Configuration
Open the Configuration tab and enter the email and password of your Hatch account (the one of the Hatch Baby app). Save: the integration signs in, finds every supported Rest of the account and shows its status. The Reconnect and refresh devices button signs in again (for example after adding a Rest in the Hatch app).
The Rests are reached through the Hatch cloud: there is no local control, and both Gladys and the Rest need internet access. A wrong password or a rate limit from Hatch is shown in the integration status, and the integration retries by itself with growing delays.
Usage
Go to the Discovery tab and add your Rests. Each one provides:
- Light, Brightness and Color: the night light;
- Sound (play or stop) and Volume: the sound machine;
- Battery and Charging (Rest+ only).
Changes made with the Hatch app or the Rest itself show up in Gladys within a couple of seconds.
Scenes and dashboards
Scene triggers:
- Battery low: a Rest+ fell to 20% or less (variables: device name, battery level);
- Connection changed: a Rest went online or offline (variables: device name, new status).
Scene actions:
- Play a sound: choose the sound (white noise, ocean, rain, lullabies...) and an optional volume;
- Set the light: a color as hex (for example
#FF8800) and a brightness, 0 turns the light off; - Turn off sound and light.
Dashboard widget Hatch Rest: the connection and current sound of every Rest, its volume and battery, and a button to turn it off.
Help
A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository. This integration relies on the unofficial Hatch protocol documented by the ha_hatch project and is not affiliated with Hatch.
Configuration settings
These are the settings Hatch Rest asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Hatch account | section | No | Sign in with the account of the Hatch Baby app. Every Rest 2nd gen and Rest+ 2nd gen of the account is added. The devices are reached through the Hatch cloud: they need internet access. |
string | Yes | Email of your Hatch account. | |
| Password | secret | Yes | Password of your Hatch account. |
How to install Hatch Rest in Gladys
- In Gladys, open Integrations: Hatch Rest appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/gboulvin/gladys-hatch-rest:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/gboulvin/gladys-hatch-rest.
Hatch Rest requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrations
Hatch Rest is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by gboulvin, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation