Skip to main content

Congés professionnels smart home integration, free and open source

Congés professionnels integration for Gladys Assistant

Lucca, PayFit or Factorial leave in Gladys: heating and alarm follow your days off

Your days off booked in Lucca, PayFit or Factorial reach Gladys: the alarm stays silent during your holidays, the heating switches to "someone is home" on days off and back to the weekday schedule the evening before you return. Without an HR tool, a manual list does the same, fully locally.

Installation​

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

Configuration​

Open the Configuration tab of the integration.

  1. HR service: Lucca, PayFit, Factorial or the manual list.
  2. Employee ids: one Gladys device is created for each. Separate them with commas and add a name if you like: 416, 512:Alice. Not needed for the manual list.
  3. The access to the chosen service:
    • Lucca: the address (mycompany.ilucca.net) and an API key created by an administrator allowed to read the leaves. An employee id is the number in the address of their profile.
    • PayFit: the company id and an API key allowed to read the absences. An employee id is their collaborator id.
    • Factorial: an API key. An employee id is the number in the address of their profile.
    • Manual list: days separated by commas, e.g. 2026-12-21..2027-01-02, 2027-03-03 am, 2027-03-04 pm.
  4. Working schedule: the working days (Monday to Friday by default, untick Wednesday for a part-time job), the public holidays (France, Alsace-Moselle, Germany, Spain or none), the time zone and the evening reminder hour (6 pm by default).
  5. Save, then click Test the connection: the number of leave periods found shows under the button.

Leave awaiting approval is ignored, unless you tick Count leave awaiting approval. The HR service is read every hour (adjustable, 15 minutes minimum).

The API keys stay in your Gladys and are only sent to the chosen service. For Lucca, only an ilucca.net (or ilucca.ch) address is accepted.

Usage​

Add the device from the Discovery tab. Each employee has:

FeatureValue
On leave today / tomorrow1 with at least half a day of leave
Working day today / tomorrow1 on a scheduled day, not a public holiday, not a full day of leave
Days until next leave0 during a leave, -1 when no leave is planned in the coming year
Next leavetext: first day → last day · leave type

Days of leave separated only by a weekend or a public holiday form one period. Half a day of leave still counts as a working day: check the part of the day with the "Check a day" action.

Scenes and dashboards​

Triggers (filterable by employee):

  • Leave added: a new leave appears in the HR service. Variables: first and last day, number of days, type, status.
  • Leave starts tomorrow: the evening before the first day of leave, at the evening reminder hour. Ideal to turn the alarm off and lower the heating. Variables: dates, number of days, type, part of the first day (full, morning, afternoon) and return date.
  • Back to work tomorrow: the evening before the first working day after a leave, at the evening reminder hour. Ideal to set the alarm again and schedule the preheating. Variables: return date, leave dates, number of days.

Each trigger fires once only, even across a restart.

Actions:

  • Refresh the leave: reads the HR service now and returns today's and tomorrow's status, the start of the next leave and the days until then.
  • Check a day: for today + N days, tells whether the day is worked, on leave (and which part), or a public holiday.

Wake-up scene example: every day at 6:30, condition "Working day today = 1", then turn the bedroom light on.

"Leave overview" dashboard widget: days until the next leave (live), today's and tomorrow's status, the upcoming leave and a Refresh button. Pick the employee in the widget settings.

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 Congés professionnels asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Getting startedsectionNoPick the HR service of your company, then list the employees to follow (one Gladys device each). Each service needs an API key created by its administrator. No HR tool? Choose the manual list: your days off typed below, nothing leaves the house.
HR serviceselectYes
Employee idsstringNoIds the HR service gives the employees, separated by commas, each optionally followed by a name: 416, 512:Alice. Not used by the manual list.
LuccasectionNoYour Lucca address and an API key allowed to read the leaves. The employee id is the number shown in the address of their Lucca profile.
Lucca addressstringNo
Lucca API keysecretNo
PayFitsectionNoYour PayFit company id and an API key allowed to read the absences. The employee id is the PayFit collaborator id.
PayFit company idstringNo
PayFit API keysecretNo
FactorialsectionNoAn API key allowed to read the time off. The employee id is the number shown in the address of their Factorial profile.
Factorial API keysecretNo
Manual listsectionNoDays off separated by commas: a day (2026-12-24), a range (2026-12-21..2027-01-02) or a half day (2027-03-03 am, 2027-03-04 pm). Read locally, no account needed.
Days offstringNo
Working schedulesectionNoWhich days count as working days, and the reminder hour of the evening scene triggers (a leave starts tomorrow, work resumes tomorrow).
Working daysmulti_selectNo
Public holidaysselectNoNational public holidays are days off too.
Count leave awaiting approvalbooleanNo
Time zonestringNoDecides when today becomes tomorrow (IANA name).
Evening reminder hournumberNoHour (0-23) the leave_starting and back_to_work triggers fire, the day before.
HR service read interval (s)numberNoHow often the leaves are read again, in seconds (15 minutes minimum).

How to install Congés professionnels in Gladys​

  1. In Gladys, open Integrations: Congés professionnels 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-conges-professionnels-lucca-payfit-factorial: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-conges-professionnels-lucca-payfit-factorial.

Congés professionnels 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​

Congés professionnels 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 🙂