🔌 TI-Monitor – TI Connector Command Center in the Windows Tray, Live in Home Assistant

A lean Windows tray app that turns the practice’s TI connector (Konnektor) into a full command center: status tiles, 24-hour history, certificate radar and live card events – with toast alerts and every value in Home Assistant over MQTT discovery.

TI-Monitor app icon

Community app for practices and IT staff who want the connector state always in view – in the tray, in the Leitstand window and in Home Assistant, without polling a web portal.

  • Windows 10 / 11 (x64)
  • .NET 10 · WPF
  • Tray app
  • Home Assistant via MQTT
  • 24 h history
  • MIT license
Category
💻 GitHub projects
Requirements
See section below
Code blocks
2
Read time
9 min read
Read-only by design. TI-Monitor only reads the connector – it never unlocks cards, changes PINs or signs anything. The authoritative configuration remains the connector administration.

📸 At a glance

TI-Monitor sits in the Windows notification area and polls the local TI connector at a fixed interval (default 5 minutes). Live events arrive even faster via a CETP subscription: a card inserted or removed shows up in seconds, not on the next poll. Everything lands in the Leitstand (command center) window, in the tray traffic light and – the special feature – in Home Assistant as a proper device with sensors.

TI-Monitor Leitstand window in dark mode: tab bar for areas, status band with KPI tiles for reachability, VPN TI, VPN SIS, live events, cards and terminals, a 24-hour hour-by-hour history and dismissible notices
Leitstand – overview (dark mode, demo data)
TI-Monitor Leitstand window in light mode with the same status band, 24-hour history and notices
Light & dark – toggle via moon/sun top right
TI-Monitor certificates area as a list sorted by expiry: connector gSMC-K, SMC-B, HBA, gSMC-KT and client system certificates with days remaining and warning colors
Certificates – sorted by expiry, warning colors
TI-Monitor cards area in light mode with the inserted cards on the left and the detail view of the SMC-B showing ICCSN, Telematik-ID, PIN status and certificate actions
Cards – PIN status and certificates, read-only
TI-Monitor settings dialog in dark mode with tabs for general, notifications, connector and updates
Settings – general, notifications, connector, updates
TI-Monitor tray context menu with icons for query now, updates, settings, autostart, notifications and exit
Tray menu – all actions with icons
All screenshots use demo data (Praxis Dr. Muster) – the app never needs a live practice connection to browse its interface.

💡 Why TI-Monitor?

  • Two worlds, one app – the tray is for the staff at the workplace, Home Assistant is for the admin on the sofa
  • Command center instead of log spam – status band, hour tiles for the last 24 hours and dismissible notices in one window
  • Read-only by design – monitoring without touching card or PIN operations
  • Live instead of polling – card and terminal events arrive through the event subscription
  • Certificate radar – every expiry in one sorted list, warnings at 90/30/7 days, plus an .ics calendar for Outlook
  • Nothing hidden – connector stays in the LAN, passwords protected by Windows DPAPI

✨ Features

FeatureWhat it does
🛡️ Tray traffic lightGreen (all OK) / amber (notice) / red (fault or not reachable) / grey (not configured or first query running)
🖥️ Leitstand windowAreas as tabs, status band with KPI tiles (reachable, VPN TI/SIS, live events, cards, terminals), 24-hour history and notices at a glance
🔌 Full connector viewSDS, operating faults, card terminals, cards, PIN status, certificates, clock drift
⚡ Live eventsCETP subscription: card inserted/removed, terminal connected/disconnected – immediately, not on the next poll
🔔 Windows toastsConnector unreachable, VPN offline, SMC-B not unlocked, PIN blocked, certificate expiry 90/30/7 days; notices in the window can be dismissed with ✕
🏠 Home AssistantMQTT discovery with one device per practice, fixed sensors and last will (“unavailable” when the PC is off); configurable send interval
📜 CertificatesIncluding the connector runtime (gSMC-K) and additional client system certificates you add yourself
📈 14-day historyReachability, VPN, SMC-B and HBA as day tiles with an hours view
📅 Expiry calendarAll certificate dates as .ics for Outlook, with reminders
⬇️ UpdatesReleases from this Forgejo, SHA-256 verified, optional silent install
🚀 Delayed autostartStarts silently in the tray at sign-in; monitoring waits a configurable delay (default 45 s) and, if desired, for the network – so no false alarms while the PC is still booting
🌗 Light & dark, German & EnglishToggle via moon/sun in the title bar or under Settings → General

What the app reads

AreaSourceContent
Connectorconnector.sdsManufacturer, product, firmware/hardware, services and versions, TLS requirement
Operating stateEventService.GetResourceInformationVPN TI and VPN SIS, active fault states (EC_*)
Card terminalsEventService.GetCardTerminalsName, CtId, IP, MAC, slots, connected yes/no
CardsEventService.GetCardsSMC-B, HBA, eGK, gSMC-KT: holder, ICCSN, slot, expiry date
PIN statusCardService.GetPinStatusVerified, transport PIN, blocked, remaining attempts (read-only)
CertificatesCertificateService.ReadCardCertificate / VerifyCertificateC.AUT, C.ENC, C.SIG, C.QES: expiry, issuer, Telematik-ID; OCSP check on demand
Connector certificateTLS handshake (gSMC-K)Expiry date = end of the connector’s runtime (HTTPS only)
TimeHTTP Date headerDrift of the connector clock against the PC
Live eventsEventService subscription + CETPCARD/INSERTED, CARD/REMOVED, CT/CONNECTED, CT/DISCONNECTED, CERT/CARD/STATUS
Reading the eGK insured data (ReadVSD) does not take place – TI-Monitor only sees technical state, never patient data.

📜 Certificates

The Certificates area lists every expiry as a row, the most urgent on top:

  • Connector (gSMC-K) – the connector’s TLS certificate. Its expiry is the end of the connector’s runtime; order a renewal or swap in time.
  • SMC-B, HBA, gSMC-KT – from the inserted cards.
  • App’s client system – the P12 that TI-Monitor signs in with.
  • Other client systems – added via Add certificate as .cer/.crt/.pem (no password) or .p12/.pfx (password read once), e.g. from other workplaces or the practice management system. Only name, holder, expiry and fingerprint are stored – remove via the ✕ in the row.

For all of them the same applies: toast warning at 90, 30 and 7 days and at expiry, an entry in the expiry calendar and a sensor in Home Assistant.

🏠 Home Assistant (MQTT)

Prerequisite is an MQTT broker (e.g. the Mosquitto add-on) with the MQTT integration set up. TI-Monitor then uses MQTT discovery: each configured practice appears as one device with fixed sensors – no YAML, no template work. The footer of the Leitstand shows the current state (e.g. “MQTT: 31 sensors · 14:02”).

Example Home Assistant dashboard with the sensors of one practice: connector, VPN TI and SIS, operating faults, cards, terminals, SMC-B PIN, certificate expiries and card status
Example dashboard in Home Assistant (names changed)

Setup under Connection → Home Assistant: enable “Send to Home Assistant”, fill in broker, port (1883, or 8883 with TLS), user and password, give the practice a name (it forms the entity slug; defaults to the SMC-B holder) and set the send interval. 0 sends with every connector query; a custom interval sends independently of the queries, and “Send changes immediately” still pushes state changes (VPN, card, status …) right away. Without a broker the Home Assistant REST API (address and long-lived access token) works too.

Entity (excerpt)Content
binary_sensor.timonitor_<practice>_erreichbarConnector reachable
binary_sensor.timonitor_<practice>_vpn_ti / _vpn_sisVPN TI / VPN SIS online
binary_sensor.timonitor_<practice>_smcb_gestecktSMC-B inserted
sensor.timonitor_<practice>_statusok, warnung, stoerung, nicht_erreichbar, abfrage_abgelehnt
sensor.timonitor_<practice>_karten / _terminals / _betriebsfehlerInserted cards, connected terminals, active faults
sensor.timonitor_<practice>_smcb_pinSMC-B PIN state (attributes verifiziert, versuche_uebrig)
sensor.timonitor_<practice>_smcb_<iccsn>_ablauf etc.Days left for SMC-B / HBA / gSMC-KT (last six of the ICCSN)
sensor.timonitor_<practice>_konnektor_ablaufDays left of the connector certificate (gSMC-K)
sensor.timonitor_<practice>_clientsystem_ablaufDays left of the app’s client system certificate
sensor.timonitor_<practice>_firmwareConnector firmware (attributes manufacturer, product, hardware …)
sensor.timonitor_<practice>_app_lebenszeichen / _letzter_abrufApp heartbeat and time of the last query
  • PC off or app closed: via last will all sensors of the practice become unavailable
  • Several PCs of the same practice under the same name keep the practice reachable as long as one is running
  • Cards removed while the app was not running are cleared from Home Assistant on the next connect

Example automation for expiring certificates:

Certificate expiry automation
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.timonitor_praxis_muster_smcb_083818_ablauf
      - sensor.timonitor_praxis_muster_konnektor_ablauf
    below: 60
action:
  - service: notify.notify
    data:
      message: "{{ state_attr(trigger.entity_id, 'friendly_name') }}: {{ trigger.to_state.state }} days left"

📋 Requirements

  • Windows 10 (from 1809) or 11, 64-bit (x64)
  • No separate runtime – the installer ships .NET 10 and the Windows App SDK self-contained, which keeps the setup file small
  • Network: LAN access to the connector, access to the MQTT broker or Home Assistant, HTTPS to git.jimmybones.de for updates

🚀 Quick start

  1. Download the latest release (TIMonitor-*-Setup.exe) and run it – no administrator rights needed, it installs to %LocalAppData%\Programs\TIMonitor.
  2. On first start the Leitstand opens directly in the Connection area.
  3. Enter the connector address (IP or hostname, optionally with port, e.g. 192.168.1.10 or 10.0.0.5:8443) and keep TLS (https) enabled.
  4. Select the client certificate (.p12/.pfx) of this client system and its password – the client system must be registered in the connector administration.
  5. Fill in the call context from the information model: mandant ID, client system ID, workplace ID; the user ID only if HBA access fails with 4003 Keine User-ID angegeben.
  6. Save and connect. On the first TLS handshake the connector’s SHA-256 fingerprint appears – compare it with the connector administration and trust it only if they match. If the certificate changes later, the app warns explicitly.
CheckWhy it matters
Workplace allowed for EventService, CardService and CertificateServiceWithout these permissions the app only sees fragments
Windows firewall allows inbound connections from the connector on TCP port 48150Enables live events; without it the app polls on the set interval instead
Autostart delay covers slow networksDefault 45 s and an optional “wait for network” keep the first minutes free of false alarms
The diagnostic log and Report generate texts without passwords – handy for support and for your own records.

🖱️ Usage

ActionEffect
Left-click the tray iconOpens the Leitstand window
Right-click menuQuery now, updates, settings, autostart, notifications and exit – all with icons
Close the windowMonitoring continues in the background

🔐 Data & privacy

  • The connector connection stays in the local network – no cloud, no vendor connection
  • Passwords sit DPAPI-encrypted in settings.json; only the signed-in Windows user can read them
  • The private key of the P12 file stays in memory and is never written to disk
  • The connector certificate is pinned via SHA-256 after you confirm it; a changed certificate triggers a clear warning
  • The event listener only accepts connections from the connector’s address and discards plaintext when the connector requires TLS
  • Updates arrive only over HTTPS from git.jimmybones.de and are verified against checksums.txt (SHA-256)
File (under %AppData%\TIMonitor\)Content
settings.jsonLanguage, appearance, autostart, updates, connector and Home Assistant access, added certificates (metadata only) – passwords DPAPI-encrypted
connector-history.jsonConnector history over 14 days (can be switched off)
connector-warnings.jsonAlready reported expiry levels and PIN states – prevents duplicate toasts
error.log, update-install.logError and update log
If one of these files is briefly locked (e.g. by an antivirus scanner), the app does not overwrite it with defaults – a damaged file is saved aside as a copy first.

⚠️ Known limitations

  • Windows x64 only (10 / 11)
  • Live events need an open inbound port 48150 – otherwise the poll interval applies (default 5 minutes)
  • The connector does not expose other client systems through any interface – their certificates must be added manually
  • Monitoring replaces neither the connector administration nor the gematik portal

🗂️ For developers

Requirements: .NET 10 SDK, Inno Setup 6 for the installer, PowerShell 7 for releases.

PowerShell
git clone https://git.jimmybones.de/jimmybones/TI-Monitor.git
cd TI-Monitor

# Build only (publish\TIMonitor.exe)
.\Build.ps1

# Build + installer + checksums.txt (installer-out\)
.\Build.ps1 -Version 1.0.0 -Installer

# Tests
dotnet test tests\TIMonitor.Tests.csproj

# Release on Forgejo: tag, build, create release, upload installer and checksum
.\Release.ps1 -Version 1.0.0 -Notes "First version"

The app queries …/api/v1/repos/jimmybones/TI-Monitor/releases/latest. A release is installable only once TIMonitor-<version>-Setup.exe and checksums.txt are attached; prereleases (1.3.0-beta.1) are never pushed to stable installs.

Stack: WPF with a tray icon · net10.0-windows · Windows App SDK toasts · MQTT · Inno Setup · MIT License.

TI-Monitor on Forgejo

Downloads, release notes, source code and issues – hosted on our own Forgejo instance.

View on Repository (opens in a new tab)

← Back to all scripts