Stateless serverless control for Atomberg smart fans — discover, query, and command in one endpoint.
Lists all fans with IDs and names. Use this first to find your device_id.
Returns the current power + speed of a specific fan. Read-only, no changes made.
Send a speed command: off, set 1–6, increment, or decrement. Auto power-on included.
Checks if your api_key and refresh_token are valid. No device interaction.
| Value | Behaviour |
|---|---|
| omit | Query mode — read only |
| -1 | Decrement by 1 — turns off if already at speed 1 |
| 0 | Turn fan off |
| 1 – 6 | Set absolute speed (auto power-on if off) |
| 7 | Increment by 1 (starts at 1 if fan is off) |
| Field | Type | Required | Description |
|---|---|---|---|
api_key | string | required | Your Atomberg developer API key |
refresh_token | string | required | Long-lived Atomberg refresh token |
device_id | string | optional | Target fan MAC. Omit → Discovery mode |
speed | number | optional | Speed command. Omit → Query mode (read only) |
validate | boolean | optional | true → Check credentials only, no device calls |
api_key and refresh_token.
Quota: 100 calls/day, 5 calls/sec.
Fill in credentials and hit Send. Mode is auto-detected from your inputs.