Skip to main content

Groq smart home integration, free and open source

Groq integration for Gladys Assistant

Run the Gladys assistant on Groq: very fast open models (GPT-OSS, Qwen) with your API key.

Overview​

This integration runs the assistant of Gladys on Groq, a service that serves open AI models (OpenAI GPT-OSS, Qwen) on its own LPU chips, several times faster than usual: the assistant answers almost at once, which suits voice commands. Once you choose it in Settings → Artificial Intelligence, every AI request of Gladys goes to Groq: the chat and the devices it controls, the scenes it creates, the "ask the AI" scene action and the weekly digest. It works with a free Groq key, with or without a Gladys Plus account.

It also adds a scene action that asks a question with web search, two scene triggers (the assistant fails, the assistant answers again) and a dashboard widget with the requests, the tokens and the requests left today.

Not affiliated with Groq. Not tested with a real Groq key yet: feedback welcome.

Prerequisites​

  • Gladys Assistant 5.3.0 or later.
  • A GroqCloud account and an API key: console.groq.com/keys → Create API Key. The free plan needs no card.
  • Free plan: per model, about 30 requests a minute, 1,000 a day and 8,000 tokens a minute; your exact limits are on console.groq.com/settings/limits. A chat message makes at least two requests (router, then chat). A request whose prompt plus answer budget goes over the tokens of a minute is refused: a home with many devices may hit it, which is why the maximum answer length is low by default.
  • Developer plan (pay as you go): GPT-OSS 120B costs $0.15 per million input tokens and $0.60 per million output tokens, GPT-OSS 20B half that; the limits are much higher. A spending limit (Settings → Billing → Limits on console.groq.com) caps the bill.
  • What leaves your home: every chat message, the history, the tools Gladys offers and their results (the state of the devices the assistant reads) and the chat images go to Groq over HTTPS. The answers control your devices and create scenes.

Configuration​

Field or buttonDefaultMeaning
Groq API key—Required (it starts with gsk_). Never shown again, never logged
Chat modelGPT-OSS 120BAnswers the chat, creates scenes, writes the weekly digest
Router modelGPT-OSS 20BSorts every message before the answer and must reply within 20 seconds
Other model id—Only when a model is set to "Other model": the exact id from the Groq docs (tools!)
Reasoning of the chat modelLowMore reasoning, better scenes, slower answers that use more tokens
Maximum answer length (tokens)4096Reasoning included; on the free plan it counts in the tokens of the minute
Service tierOn demandAuto: the best tier of your organization. Flex (paid): higher limits, fails when busy
Test the connection—One short answer from each model with its time and the requests left today

The status of the configuration screen says whether Groq accepts the key and lists both models, without spending anything, and warns when a preview model or the flex tier is chosen.

Usage​

  1. Integrations → Groq → Configuration: paste the API key, keep the default models, press Test the connection.
  2. Settings → Artificial Intelligence: choose Groq.
  3. Talk to Gladys in the chat: "turn on the living room", "what is the temperature in the bedroom?", "create a scene that closes the shutters at sunset".

Choosing the models​

  • GPT-OSS 120B (default for the chat): OpenAI's largest open model, reliable with tools, about 500 tokens a second.
  • GPT-OSS 20B (default for the router): twice as fast and half the price; a good chat model too for a small home.
  • Qwen 3.8 27B: reads the images of the chat and can answer without reasoning; a preview model, which Groq may remove at short notice.
  • Other model: any id of console.groq.com/docs/models that supports tools, for example the successor of a retired model.

GPT-OSS always reasons a little: the "Off" level gives it the low one. If a custom model refuses the reasoning parameter, the integration sends it without from then on.

Dashboard widget​

The Groq usage widget shows the requests, the tokens and the errors of the day, the tokens of the month, the requests the chat model has left today (from the limits Groq sends with each answer), the tokens per day over 30 days, whether Groq answers, the models, the last request and the last error. Groq gives no cost per request: the GroqCloud console stays the reference for the bill.

The usage widget: requests and tokens of the day, tokens of the month, errors, requests left today, tokens per day, models, last request and last error (generated illustration, not a screenshot)

Scenes​

  • Action "Groq: ask with web search": GPT-OSS searches the web with the browser search built into Groq and answers in a few sentences. Fields: the question (scene variables allowed), extra instructions. Outputs: the answer and the sources, one per line. The pages read count as tokens: on the free plan, one search may use the tokens of a minute.
  • Trigger "Groq: the assistant fails": once per failure (key refused, spending limit, rate limit, request too large for the plan, model unavailable, API unreachable, too slow, Groq error), with the kind, the message, the request and the model.
  • Trigger "Groq: the assistant answers again": the first answer after a failure, with the minutes of failure.

Examples: every morning, ask with web search for the news of the day and send the answer by Telegram; when the assistant fails because of a rate limit, send a message to the administrator.

Troubleshooting​

  • "Groq refused the API key": copy the key again from console.groq.com/keys; a deleted key gives the same message.
  • "A request of the assistant is bigger than the tokens per minute": lower the maximum answer length (2048 is often enough), choose GPT-OSS 20B, or move to the Developer plan.
  • "Groq rate limit reached": the requests or tokens of the minute or of the day are spent. Wait, or move to the Developer plan.
  • "The spending limit of the Groq organization is reached": raise it on console.groq.com, or wait for the 1st of the month.
  • "… is not available to this Groq key": the model id is wrong, the model was retired, or the project blocks it (model permissions).
  • "cannot read images": choose Qwen 3.8 27B as the chat model.
  • "The answer was cut at max_tokens": raise the maximum answer length.
  • Logs: Settings → Supervision, the logs of the integration. Never share your API key.

Configuration settings​

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

SettingTypeRequiredDescription
Getting startedsectionNoGroq runs open models (OpenAI GPT-OSS, Qwen) on its own LPU chips, several times faster than usual: the assistant answers almost at once, which suits voice. Create a free key on console.groq.com/keys, paste it below, then select this integration in Settings, Artificial Intelligence. Groq then sees every chat message, the history, the state of the devices the assistant reads and the chat images.
Free plan and limitssectionNoThe free plan needs no card but allows, per model, about 30 requests a minute, 1,000 a day and 8,000 tokens a minute: enough for a household, but a chat with many devices may go beyond the tokens of a minute. The Developer plan (pay as you go, a few cents a day for a household) raises the limits; a spending limit in Settings, Billing, Limits caps the bill. The exact limits of your organization are on console.groq.com/settings/limits.
Groq API keysecretYesCreated on console.groq.com/keys (it starts with gsk_). It stays in Gladys and is never shown again nor logged.
Chat modelselectYesAnswers the chat, creates the scenes and writes the weekly digest. GPT-OSS 120B is the most capable; GPT-OSS 20B is twice as fast and half the price; Qwen 3.8 27B (preview) also reads the images of the chat.
Router modelselectYesSorts every chat message before the answer, and must reply within 20 seconds: GPT-OSS 20B answers in well under a second.
Other model idstringNoOnly for “Other model”: the exact id from console.groq.com/docs/models, such as a newer model. It must support tool use.
Reasoning of the chat modelselectYesMore reasoning gives better scenes but slower answers that use more tokens. GPT-OSS cannot turn reasoning off: “Off” gives it the low level.
Maximum answer length (tokens)numberNoThe reasoning counts in it too. On the free plan Groq counts it in the tokens of the minute: keep it low; raise it if the logs say an answer hit max_tokens.
Service tierselectYesOn demand is Groq’s usual tier. Auto takes the best tier your organization has. Flex (paid plans) has much higher limits but a request fails at once when Groq is busy.

How to install Groq in Gladys​

  1. In Gladys, open Integrations: Groq appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/william-de71/gladys-groq:0.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/William-De71/gladys-groq.

Groq requires Gladys >=5.3.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​

Groq 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 William-De71, 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 🙂