Zum Hauptinhalt springen

Zoho Calendar Smart-Home-Integration, kostenlos und Open Source

Zoho Calendar-Integration für Gladys Assistant

Unofficial: your Zoho Calendar calendars in the Gladys calendar, for scenes.

Info

Die Dokumentation dieser Integration wird von ihrem Autor geschrieben und ist bisher nur auf Englisch verfügbar.

Unofficial integration, not affiliated with Zoho. It has never been tested with a real Zoho account: the requests and answers follow the official documentation (Zoho Calendar API, zoho.com/calendar/help/api, and Zoho OAuth, read on 2026-12-03); the tests run against a made-up Zoho.

The calendars of your Zoho Calendar account appear in the Gladys calendar, and once shared they can start scenes with the trigger "A calendar event is coming". Read only: nothing is ever written to Zoho.

What it does​

  • Each user enables the integration in the My calendars block of its page, with their own Zoho account. Their calendars start private; shared, they are visible to the household and reach the scenes.
  • Every 30 minutes (15 min, 1 h or 3 h in the settings), the own calendars of the account are read (hidden ones left out, 50 at most, or only the names you list), from 30 days back to 2 months ahead (1 month to 1 year in the settings). Repeating events come as separate instances.
  • An event deleted in Zoho disappears from Gladys at the next read; a calendar deleted in Zoho is deleted from Gladys after two reads without it.
  • Kept: title, start, end, all-day, place, link to the event in Zoho. Not kept: description, attendees, reminders.

Connect your account (Zoho "Self Client")​

  1. Open the Zoho API Console of your data centre: https://api-console.zoho.com (or .eu, .in, .com.au, .jp, zohocloud.ca, .sa, .uk: the domain of your Zoho sign-in page).

  2. Get started → Self Client → Create. Copy the Client ID and the Client Secret (tab "Client Secret").

  3. Tab Generate Code: scope ZohoCalendar.calendar.READ,ZohoCalendar.event.READ, time 10 minutes, any description → Create, copy the code.

  4. Within those 10 minutes, exchange it for a refresh token, from any computer (replace the domain with yours):

    HISTCONTROL=ignorespace
    read -rs CLIENT_SECRET # paste the Client Secret, then Enter (nothing is shown)
    curl -X POST https://accounts.zoho.eu/oauth/v2/token \
    -d grant_type=authorization_code \
    -d client_id=YOUR_CLIENT_ID \
    --data-urlencode "client_secret=$CLIENT_SECRET" \
    -d code=THE_CODE

    The curl line starts with a space on purpose: with HISTCONTROL=ignorespace the shell does not keep it in its history, and the secret never appears in the command. The answer holds refresh_token: it does not expire until you revoke it. Copy it, then clear the screen (clear); do not paste the command or the answer in a forum or a ticket. If the line did reach your history, delete it (history -d NUMBER, then history -w). If the secret or the token leaked, revoke the token and generate a new Client Secret in the Zoho API Console.

  5. In Gladys, My calendars: pick the data centre, paste the Client ID, the Client Secret and the refresh token, then Enable.

The Client Secret and the refresh token are kept by Gladys in its database, never shown again, and sent only to the accounts server of the chosen data centre (accounts.zoho.<domain>/oauth/v2/token). The access token they give (valid one hour) stays in the memory of the integration; nothing secret is written to its /data volume, the logs or the status.

Settings (administrator)​

SettingChoicesDefault
Read the calendarsevery 15 min, 30 min, 1 h, 3 h30 min
Days read ahead1, 2, 3, 6 months, 1 year2 months

Zoho answers 31 days per request: with 2 months ahead, a calendar costs 4 requests per read, plus one for the list and, about once an hour, one to renew the access token.

Status and errors​

The configuration screen names every user and their state. The integration is "connected" when at least one account was read.

  • Zoho refused the Client ID, Client Secret or refresh token: the token server answered invalid_code, invalid_client or invalid_client_secret. Nothing more is sent for these values, even after a restart; enter new values (a new refresh token, or the right data centre). Any new value is tried at once.
  • Zoho turned the access down: the access token works but the Calendar API refuses it (scope missing): generate a new code with both scopes. Tried again after 15 minutes, then up to every hour. This is never taken for refused credentials.
  • Zoho did not renew the access token: Zoho allows 10 access tokens every 10 minutes per refresh token. The integration asks at most one a minute per account and keeps it almost an hour; tried again after 10 minutes.
  • Paused: Zoho answered 429 or a server error. The pause follows Retry-After (1 minute to 6 hours), else 10 minutes doubled up to 6 hours, and survives a restart. The events already in Gladys stay.
  • Could not be read: network, timeout (20 s) or an unreadable or oversized answer; tried again after 5 minutes (or the interval if shorter). One calendar that cannot be read keeps its events and does not stop the others.
  • The /data volume cannot be read or written: the date of each attempt is written there before the read, so that a restart never reads sooner than the interval: nothing is read until it works again (read again every 10 s).

Limits​

  • One Zoho request at a time, 250 ms apart; at most 25 calendar writes a minute to Gladys.
  • 3,000 instances per calendar; 50 calendars per user (Gladys); 20 names in the filter.
  • A time without its UTC offset is never guessed: such an event is left out.
  • Full-day events are read by calendar date, end exclusive: if Zoho turned out to write the last day itself, a several-day event would show one day short (to be checked on a real account).

Konfigurationseinstellungen​

Diese Einstellungen fragt Zoho Calendar in seinem Konfigurationsbildschirm in Gladys ab.

EinstellungTypPflichtfeldBeschreibung
How it workssectionNeinUnofficial integration, not affiliated with Zoho. Each user connects their own Zoho account in "My calendars" below, with a Zoho "Self Client" (read only). Their calendars start private: shared, they reach the household and the scene trigger "A calendar event is coming". Nothing is ever written to Zoho. These settings apply to everyone.
Read the calendarsselectNeinHow often each account is read. A change of account is read at once.
Days read aheadselectNeinThe last 30 days are read too. Zoho answers 31 days per request: a longer span means more requests.

So installierst du Zoho Calendar in Gladys​

  1. Öffne in Gladys Integrationen: Zoho Calendar erscheint im Katalog neben den nativen Integrationen, mit einem Community-Badge.
  2. Klicke auf Installieren. Gladys lädt das Docker-Image (ghcr.io/lm1lc3n7/gladys-zoho-calendar:0.1.1) herunter, startet es in einer vom Kern isolierten Sandbox und erzeugt die Oberfläche der Integration (Geräte, Erkennung und Konfiguration).
  3. Öffne den Bildschirm Konfiguration der Integration, fülle die Einstellungen aus und speichere.
  4. Du kannst sie auch direkt über die URL ihres Repositorys installieren: https://github.com/LM1LC3N7/gladys-zoho-calendar.

Zoho Calendar benötigt Gladys >=5.2.0. Der Katalog in Gladys wird stündlich aktualisiert, eine neue Version ist also spätestens eine Stunde nach ihrer Veröffentlichung verfügbar.

Du nutzt Gladys noch nicht? Es ist kostenlos und Open Source: folge der Installationsanleitung, um loszulegen.

Über externe Integrationen​

Zoho Calendar ist eine externe Integration: eine Community-Integration, die als Docker-Container verpackt und auf GitHub veröffentlicht wird. Gladys installiert sie mit einem Klick und führt sie in einer vom Kern isolierten Sandbox aus. Sie wird von LM1LC3N7 veröffentlicht und gepflegt, nicht vom Gladys-Kernteam.

Abonniere den Newsletter von Gladys Assistant

Ein paar E-Mails im Monat zu neuen Releases und Neuigkeiten aus dem Projekt. Verschickt von Pierre-Gilles Leymarie, dem Gründer des Projekts. Jederzeit abbestellbar 🙂