Skip to content

Machine-translated – improvements welcome. Suggest an improvement

Developing clients

Clients are programs that run outside Ablago and talk to Ablago: the app for Homey Pro, later an integration for Home Assistant, a phone app, add-ins for the office. Ablago itself needs no client – everything works in the browser. A client is an extra.

Where clients live

All clients are in the repository motom001/dms-clients, each in a folder of its own directly below the root (e.g. homey/) with README.md and CHANGELOG.md. Which exist and which are planned is in the README. Like everything at Ablago, a new client starts with an issue (template "New client") and the label freigegeben.

The rules in detail are in the CONTRIBUTING of dms-clients – that is their one place. In short:

  • Only Ablago's API v1 (Interface). If something is missing there, request it in the repository dms – a client builds no detours and never accesses database or files.
  • Narrowest key level: "counters only", "read only" or "read and write". The client's README says which it needs and why.
  • No telemetry, no advertising, no connections to third parties. A client only talks to the Ablago address that someone enters. Exceptions only where the platform strictly requires them, and then in the README.
  • README and CHANGELOG per client, version in the format X.Y.Z; the release arises by itself after the merge. Commits with git commit -s.

Interfaces for clients

Most integrations only need numbers, no content:

  • Counter endpoint GET /api/v1/ich/zaehler with the key level "counters only" – returns the numbers the interface shows too, without titles, senders or documents. See Counter endpoint and key levels.
  • Reporting to the outside – Ablago does not report on its own; clients query the counter. There has been no separate webhook since #991; in future an automation reports (see Reporting to the outside).

More than numbers (filing post, reading folders) works via the other endpoints of API v1 with a key "read only" or "read and write".

The client builds sentences itself; the API returns numbers: for a table (GET /api/v1/mappen/{id}/tabelle/{feld}), verborgen only says how many rows the key may not read. If a client shows this, it does so like the interface, with the field's label (label or beschriftungen.<language>.label): "You can see 3 of 7 Items", never a general "entries" (#1305). When paging (von) every page counts by itself; since #1265 there is no need to pass gesamt there, a value passed is ignored.

The same in all clients

A client should look and work like Ablago itself: name Ablago, terms from the glossary addressing the user as "you", paths the way you click ("Click your name at the top right → My account → Connections → API keys"), icons from Lucide in the same shapes as the interface, logo and colours only from the folder marke/ of dms-website. The exact names of the numbers and triggers are in the CONTRIBUTING of dms-clients.

On top of that, three principles for every new client:

  • First understand what is needed, then show what it looks like, only then technology. A client starts with the situations in which someone needs it, not with the choice of tool.
  • A companion, not a copy. The web interface stays the main client, the workbench stays in the browser. A client does what works better on the go or on its platform.
  • The same in language and meaning, like the platform in how it is used, with tips and tours where they fit, and one look per client (Usability principles 11–13, pattern catalogue).

Home network and data protection

  • Ablago usually runs in the home network. A client must be able to handle addresses such as http://ablago.home.arpa:8080 and says understandably when it can't reach Ablago.
  • API keys belong in the platform's secure storage (keychain, encrypted settings), never in logs.
  • A client stores at most what it needs for display, and says in the README under "Data protection" what is where.
  • What is under What every contribution keeps to applies to all contributions – above all: nothing leaves the device without explicit consent.