Skip to main content

Cal.com smart home integration, free and open source

Cal.com integration for Gladys Assistant

Your Cal.com bookings in the Gladys calendar, with scenes before each appointment.

Your Cal.com bookings in Gladys: they appear in the Gladys calendar, on a dashboard widget, and they trigger scenes — heat the office 30 minutes before a visit, light the entrance, open the gate, or get a message when a client books or cancels.

Works with Cal.com cloud and with a self-hosted Cal.com that runs its API v2 server. Calendly is not covered.

Developed without a real Cal.com account: feedback welcome on the Gladys forum. Not affiliated with Cal.com, Inc.

What you need​

  • Gladys Assistant 5.2.0 or later.
  • A Cal.com account and an API key: in Cal.com, Settings → Developer → API keys → Add.
  • Internet access from Gladys (the integration talks to api.cal.com).

Install and connect your account​

  1. In Gladys, Integrations → Install from GitHub, address https://github.com/guim31/gladys-calcom.
  2. On the integration page, in My calendars, paste your API key and click Enable.
  3. Your bookings arrive within a few seconds in a private calendar named "Cal.com".
  4. To use them in scenes and on the dashboard, share this calendar with the household (toggle in "My calendars"). A private calendar stays yours: no scene, no widget sees it.

Each member of the household can connect their own Cal.com account the same way.

Self-hosted Cal.com​

The API v2 is a separate server (the calcom-api service of the Cal.com Docker Compose file); the web application image does not answer it. In API address, enter the address of that server, for example http://192.0.2.10:5555. Pasting …/v2 or …/v2/bookings works too.

Event types to follow​

Leave empty to get all your bookings. Otherwise list the event types to keep, separated by commas: their slug, as in the booking link (cal.com/you/30min → 30min), or their numeric id.

Settings of the administrator​

SettingDefaultRole
Read the bookings every5 minHow often Cal.com is asked (one request per 100 bookings).
Show bookings up to90 daysHow far ahead bookings are copied into the Gladys calendar.
Language of the textsFrenchLanguage of the event names and of the texts sent to scenes.

The Sync now action reads every account at once and reports the result.

In Gladys​

Each booking becomes an event of the "Cal.com" calendar:

  • name: the booking title; a booking still waiting for your confirmation starts with "To confirm ·";
  • place: the address, or the video service (Cal Video, Google Meet, Zoom…);
  • description: the guest names only.

Cancelled and declined bookings are removed. Bookings that started less than 24 hours ago stay, so a long meeting in progress is still shown. The core's own calendar features work on a shared Cal.com calendar: the "An event is coming" trigger, "Is an event running" and the chips of the dashboard.

Dashboard widget​

Cal.com bookings shows the number of bookings today, whether one is in progress, and the coming bookings (8 at most) with their time; a tap shows the place and the guests. Settings: the period (today, 7, 14 or 30 days) and the Sync now button, which can be hidden.

Scene triggers​

New Cal.com booking​

Someone booked a slot, or moved a booking (Cal.com creates a new booking when it is rescheduled). Optional filter: the event type slug. Variables: title, start, minutes until the start, guest, place, event type, Gladys user, and confirmed (1, or 0 when the booking waits for your confirmation).

Cal.com booking cancelled​

A booking still to come was cancelled by the guest or declined by you. Same variables, without "confirmed".

Cal.com booking starting soon​

15, 30, 60 or 120 minutes before a confirmed booking. Choose the delay in the trigger; add a second trigger for a second delay. Same variables, plus the delay in minutes. A reminder missed for more than 5 minutes (Gladys stopped) is not sent late.

Scene action "Get the next Cal.com booking"​

Gives the next booking (optionally of one event type) of the shared calendars: found (1 or 0), title, start, minutes until the start, guest, place, plus bookings today and booking in progress (1 or 0). Use them in a "condition on variables" block: "if a booking is in progress, don't start the vacuum".

Scene examples​

  • Warm welcome: trigger "Cal.com booking starting soon", 60 minutes, event type visit → set the office thermostat to 20 °C.
  • Open the gate: trigger "starting soon", 15 minutes → open the gate, send "{{title}} at {{start}}" to your phone.
  • Booking alert: trigger "New Cal.com booking" → message "New booking: {{title}}, {{start}}".
  • Quiet house: every morning, action "Get the next Cal.com booking", then condition "booking in progress = 0" before starting the robot vacuum.

Troubleshooting​

MessageWhat to do
API key refused by Cal.com (HTTP 401)The key was deleted or expired: create a new one.
No Cal.com API v2 at this address (HTTP 404)Self-hosted: the address is the web app, not the API server.
The address does not answer like the Cal.com APISame cause: an HTML page came back.
Too many requests (HTTP 429)Another tool uses the same key heavily: wait, or read less often.
Network errorGladys has no internet access, or the server is down.

No scene fires? Check that the "Cal.com" calendar is shared in "My calendars". The integration logs (Supervision tab) show one line when an account starts failing and one when it works again.

Limits​

  • One-way: Gladys never creates, moves or cancels a Cal.com booking.
  • Changes are seen at the next reading (5 minutes by default), not instantly: a booking cancelled a few minutes before its start can still fire its last reminder.
  • 1,000 bookings at most in the window, 500 in the Gladys calendar.
  • A booking that goes from "to confirm" to "confirmed" fires no new trigger.
  • The Cal.com API v1 and Calendly are not supported.

Privacy and security​

The API key is stored by Gladys as a secret and only sent to the API address you entered. The integration keeps the title, the guest names and the place of each booking; never an e-mail address, a phone number nor the answers to the booking questions. In /data it only remembers booking identifiers, their status and the reminders already sent.

Credits​

Integration by guim31, Apache-2.0 licence. Cal.com is a trademark of Cal.com, Inc.; the API is described in its public API v2 reference.

Configuration settings​

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

SettingTypeRequiredDescription
How it workssectionNoEach user enters their own Cal.com API key in "My calendars" below, then shares the Cal.com calendar with the household to use it in scenes and on the dashboard. These settings apply to everyone.
Read the bookings everyselectNoOne request per user and per 100 bookings: far below the Cal.com limit of 120 requests per minute.
Show bookings up toselectNo
Language of the textsselectNoUsed for the event names and the texts sent to the scenes.

How to install Cal.com in Gladys​

  1. In Gladys, open Integrations: Cal.com appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/guim31/gladys-calcom:1.0.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/guim31/gladys-calcom.

Cal.com requires Gladys >=5.2.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​

Cal.com 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.

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 🙂