Skip to main content

Nanit smart home integration, free and open source

Nanit integration for Gladys Assistant

Nanit baby monitors: nursery temperature, humidity, motion, sound and night light.

Brings your Nanit baby monitors into Gladys: nursery temperature, humidity and light level, motion and sound detection, the night light and the camera power (sleep mode). It works through the Nanit cloud, with your Nanit app account, like the Home Assistant Nanit integration.

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for Nanit and click Install.
  3. Wait for the container to start: the integration shows up in the list.

Configuration​

Nanit protects every account with a verification code sent by SMS or e-mail. Signing in takes three steps, all in the Configuration tab of the integration:

  1. Enter the e-mail and the password of your Nanit app account, then save.
  2. Click Send a verification code: Nanit sends you a code.
  3. Type the code in Validate the verification code and confirm (codes expire quickly: use the latest one).

The status turns green and tells how many cameras were found. The session is kept and renewed on its own: a restart of Gladys or of the integration needs no new code. If Nanit ends the session (password changed, session revoked), the status says so: send and validate a new code.

Changing the e-mail or the password signs you out.

Devices​

Open the Discovery tab: each Nanit camera of the account shows up as a device named after the baby. Add it. It carries:

FeatureWhat it is
Temperature (°C)Nursery temperature, pushed by the camera
Humidity (%)Nursery humidity, pushed by the camera
Light level (lux)Nursery light level, read every 5 minutes
Motion1 for 5 minutes after Nanit reported motion
Sound1 for 5 minutes after Nanit reported a sound
Night lightOn/off, controllable
Night light brightness (%)Controllable
Camera on1 = awake, 0 = asleep (Nanit sleep mode: no monitoring), controllable

Motion and sound come from the Nanit cloud events, read every 30 seconds: expect up to 30 seconds of delay. The device badge shows cloud while the camera is reachable, unreachable after 2 minutes without it.

Scenes and dashboards​

Scene triggers

  • Motion detected by a Nanit camera and Sound detected by a Nanit camera: filter on a camera (or leave empty for all). The time variable gives the time of the event (ISO).
  • Nanit camera online or offline: a camera became reachable again, or stayed unreachable for 2 minutes. Filter on the camera and on the new state; the state variable is online or offline.

Scene actions

  • Nanit night light: turn the night light of a camera on (with an optional brightness) or off. Outputs: night_light, brightness.
  • Nanit camera on/off: wake the camera up or put it to sleep. Output: camera_on.
  • Read the Nanit sensors: ask the camera for fresh readings. Outputs: temperature, humidity, light, usable in the next actions (e.g. a message if the room is too warm).

Dashboard widget

  • Nanit nursery: pick a camera. Shows live temperature and humidity, the camera state (online, asleep, offline), the night light, the last motion and the last sound, with two buttons: night light on/off, and camera to sleep / wake up (confirmed before putting the camera to sleep).

Limits​

  • Cloud only: the integration needs Internet access and the Nanit servers. The local connection to the camera (on port 442 of the camera) is not supported yet.
  • Not supported yet: the video stream and snapshots (the Nanit cloud currently returns no still picture), the Sound & Light Machine, the Care Logs.
  • Nanit publishes no official API: the integration uses the same calls as the Nanit app, which Nanit may change.

Privacy​

Your e-mail, password and Nanit session tokens stay in your Gladys; they are only sent to Nanit (api.nanit.com) and never written to the logs.

Help​

A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.

Configuration settings​

These are the settings Nanit asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Your Nanit accountsectionNoEnter the e-mail and password of your Nanit app account, then save. Click "Send a verification code": Nanit sends a code by SMS or e-mail. Enter it in "Validate the verification code". Your cameras then show up in the Discovery tab.
Nanit e-mailstringYesThe e-mail you sign in to the Nanit app with.
Nanit passwordsecretYesStored in Gladys and only sent to Nanit.

How to install Nanit in Gladys​

  1. In Gladys, open Integrations: Nanit appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/prohand/gladys-nanit:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/prohand/gladys-nanit.

Nanit 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​

Nanit 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 prohand, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂