Leantime smart home integration, free and open source

Leantime projects: open, due today and overdue tasks, milestones, tasks created from a scene.
The tasks of your self-hosted Leantime in Gladys: the open ones, those due today, the overdue ones, those done today and the next milestone, for the whole instance and for the projects you choose. A scene reacts when a task is assigned to someone or becomes overdue, another one creates "check the smoke detectors" every month, and Gladys can read today's tasks every morning.
Feedback welcome. This integration was tested against a real Leantime server (Docker image
leantime/leantime3.15.3 with MariaDB 11, November 2026), not yet in daily use. If something does not work as described, say so on the Gladys forum or in the issues.
What you need
- Gladys Assistant 5.1.0 or later.
- A Leantime 3.x Gladys can reach on your network.
- A Leantime API key: in Leantime, Company Settings → API Keys
tab → Generate API Key (an administrator can do it). Give it the
Editor role, so it can create tasks, and the projects to follow. Copy
the key (
lt_…): Leantime shows it only once.
The API key acts as a user of its own: the integration sees the projects given to the key (an administrator key sees them all), and the tasks created from Gladys bear its name.
Set up
- In Gladys, Integrations → install Leantime.
- On the Configuration screen, fill in:
- Address: the address of Leantime as in the browser, for example
http://192.168.1.20:8080, orhttps://pm.example.orgbehind a reverse proxy (a prefix such as/leantimeis kept); - API key.
- Address: the address of Leantime as in the browser, for example
- Options:
- Followed projects: names or numbers (the number is in the address of the project) separated by commas, 20 at most. Each gets its device, besides the one of the whole instance. Empty: the instance device only;
- Accept self-signed certificates: for an
https://address with a self-signed certificate, on your own server only; - Refresh interval: 1 to 10 minutes (5 by default). Midnight is always followed on time, whatever the interval;
- Language of the feature names: the names given to the features when a device is added (French by default), and the texts sent to scenes.
- Save, then Test the connection: it reads Leantime and reports the number of open tasks, of projects and of followed projects.
- In the Discovery tab, add the devices you want.
Devices
Leantime, for the whole instance (every project the key sees), and Leantime project for each followed project, with these features:
| Feature | What it shows |
|---|---|
Open tasks | the tasks whose status is not of the "Done" type |
Due today | the open tasks whose due date is today |
Overdue | the open tasks whose due date has passed |
Done today | the tasks of a "Done" status last changed today |
Next milestone | the open milestone that ends the soonest, today included; None else |
A task is any ticket that is not a milestone (task, bug, story,
subtask). It is open as long as its status is not of the "Done" type in
its project (Done and Archived by default). Its due day is its due
date; a milestone's is its end date. "Today" is the day in the time zone of
Gladys. Leantime keeps no closing date: "Done today" counts the done tasks
changed today, so also one finished earlier and edited today.
Dashboard
The Today's tasks widget shows two tiles (today, overdue) and the list of the tasks to finish by tonight (10 at most), the overdue ones first with their date, then today's, with their project. Choose a project device in the widget settings to see only its tasks, and give a name in Only the tasks of to see only one person's. When nothing is due, the widget says so and gives the next milestone, unless Show the next milestone when nothing is due is unticked. Projects carry the name given in Gladys once their device is added.
The counters can also go on the dashboard like any device feature.
Scenes
Triggers
- Leantime task assigned: an open task is now assigned to someone: it was just assigned or reassigned, created with an assignee, or reopened.
- Leantime task overdue: at midnight, a task due that day is still open. Once per task and due date.
Filters: the project (a project device, not the instance one) and, for the
first one, the assignee: their first and last name exactly as Leantime
shows them (Camille Martin). Data passed to the actions: the task, its
number, its project, its type, its status, the assignee, its due date
(YYYY-MM-DD) and its address in Leantime.
A change is seen at the next reading: within the refresh interval. A due date moved by hand to a day already over fires nothing. A restart fires nothing twice; a task assigned while the integration was stopped fires at its restart, as does a midnight less than an hour old.
Actions
- Create a Leantime task: a title; the project by its name or number
(empty: the first followed project); an optional due date:
2026-11-24, or+3dfor in three days; an optional description. The task is created unassigned, in theNewstatus. Results: the task, its number, its address, its project, its due date. - Read today's Leantime tasks: the tasks to finish by tonight as a
sentence (
3 task(s) due by tonight: …. 1 overdue.), for the whole instance or a project, and for everyone or one assignee. Results: the sentence, the number of tasks due by tonight, of overdue ones. Send the sentence in a message, or have Gladys say it.
A failure (unknown project, date not understood, key without the right) shows
in red with its reason. The fields accept scene variables, for example
{{triggerEvent.data.task}}.
Scene ideas
- At 08:00, Read today's Leantime tasks for
Camille Martin, then send the sentence on Telegram. - Leantime task assigned to
Camille Martin: send the task and its address in a message. - Leantime task overdue in the
Homeproject: turn the reminder lamp orange. - On the first of the month, Create a Leantime task
Check the smoke detectorsinHome, due+7d.
Troubleshooting
- "Leantime does not answer": check the address and port from the Gladys machine (the address opens Leantime in a browser).
- "API key refused": the key was mistyped (it starts with
lt_) or deleted: generate a new one. - "No Leantime API at this address": the address answers, but not with the Leantime API: check the port and the prefix. After an update of Leantime, open it once in a browser as an administrator: it may wait for its database update.
- "The address redirects": enter the
https://address. - "The API key may not do this": give it the Editor role, and the project.
- "This Leantime is too old": version 3.x is needed.
- A project is missing: give it to the key in Leantime; a name typed in Followed projects that matches no project is ignored, and Test the connection reports it. Closed projects are left out.
- "Several projects have this name": give its number.
- Logs:
LOG_LEVEL=debugon the container shows each reading.
Limits
- Leantime is read every 1 to 10 minutes (and at midnight): a change in Leantime shows in Gladys within that delay. Each reading makes three requests (projects, open tickets, tickets done today), plus one per project for its statuses once an hour. Leantime 3.7 and later filter the tickets on the server; an older 3.x answers every ticket, which the integration sorts itself.
- The integration creates tasks; it does not change, close, assign or delete them, and reads neither their comments, nor their files, nor the time spent. The assignee of a task created from Gladys is set in Leantime.
- The API key is kept by Gladys in the configuration of the integration and
sent only to the configured address. Gladys keeps no Leantime data outside
/data/leantime-state.json(the time of the last reading and the assignee number of each open task, so no event fires twice). - Not affiliated with Leantime or its publisher. Leantime is a trademark of its owner.
Configuration settings
These are the settings Leantime asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Your Leantime | section | No | A self-hosted Leantime 3.x. Create an API key in Leantime: Company Settings, API Keys tab, Generate API Key. Give it the Editor role (to create tasks) and the projects to follow. |
| Address | string | Yes | Address of Leantime, as in the browser, with https:// for HTTPS and :port if not the default. |
| API key | secret | Yes | Starts with lt_. Counted: the tasks of the projects given to the key; created tasks bear its name. |
| Options | section | No | |
| Followed projects | string | No | Names or numbers separated by commas (20 at most): one device each, besides the device of the whole instance. |
| Accept self-signed certificates | boolean | No | For an https:// address whose certificate is self-signed. Tick only for your own server. |
| Refresh interval | select | No | How often Leantime is read (three requests each time). Midnight is always followed on time. |
| Language of the feature names | select | No | Names given to the features when a device is added, and texts sent to scenes. |
How to install Leantime in Gladys
- In Gladys, open Integrations: Leantime appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/guim31/gladys-leantime:1.0.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/guim31/gladys-leantime.
Leantime 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
Leantime 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 guim31, 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