Read-only Model Context Protocol (MCP) server that acts as a KNX/ETS project auditor. It validates a .knxproj file and generates Home Assistant YAML from the audited project.
π οΈ Key Features
Read-only KNX/ETS project auditing
Validates a .knxproj
Generates Home Assistant YAML output
π Use Cases
Audit and verify KNX/ETS project configuration contained in a .knxproj
Convert KNX/ETS project details into Home Assistant YAML for further use
β‘ Developer Benefits
Deterministic inputs: a .knxproj
Produces Home Assistant YAML as generated output
β οΈ Limitations
Read-only operation
Scope described only for .knxproj validation and Home Assistant YAML generation
A design-time KNX / ETS6 assistant exposed as an MCP server.
Four things you can do with it β all without ever touching the live KNX bus:
Design a project from a spec β turn an equipment list / project specification into a complete, validated group-address structure plus the full implementation document set (ETS-importable XML/CSV, human-readable report, Home Assistant YAML, acceptance test protocol, as-built handover pack).
Audit, repair & finish an existing project β validate naming Β· DPT & sub-DPT Β· commandβstatus Β· KNX Secure Β· Matter-readiness, get concrete fix proposals (inferred DPTs, synthesised status GAs), grade completeness, and diff two project versions.
Generate the smart-home layer β assembled Home Assistant entities (colour lights, climate, covers, sensors) that read real device state, with everything ambiguous deferred to human review.
Compose a new project from parametrised room templates β from a list of rooms (with a basic/comfort preset per slot) assemble a new, validated project β an allocation manifest + ETS GA XML/CSV + a device BOM proposal. Dry-run, new projects only (R1).
Under the hood: a device library that expands each actuator into its real communication objects β from generic recipes up to the exact vendor object model parsed straight from ETS application programs.
New β a whole demo house.examples/demo-home ships a synthetic
239-GA / 47-Function project, the tool's generated report + Home Assistant config + ETS export, and a
full smart-home βbrainβ β circadian lighting, an 8-factor climate setpoint, a presence/season/time
state machine and statistics β driving a 5-view dashboard. See it all on the
live siteΒ β.
π₯οΈ The dashboard β live in Home Assistant
Real screenshots from a live Home Assistant running the demo house. They show the tool's assembled
entities at work: RGBW / RGB / CCT colour lights, six floor-heating climate zones (target, mode
and valve %), a circadian lighting curve and a computed climate setpoint β not set by hand.
This is a public beta. The full pipeline passes an end-to-end smoke test on a synthetic
project and has been validated against real multi-thousand-GA ETS5/ETS6 projects (anonymised) β
but real ETS projects are wonderfully messy and diverse, and more field reports make it better.
π If you have an ETS5/ETS6 project, please try it and tell us what happens. Open a
Real-project test report
issue. The tool is read-only and never connects to a bus, so testing is safe (see
Safety model). See CONTRIBUTING.md for details.
π¬ Join the discussion β β say hi, ask anything, or share what the tool found on your project.
πΊοΈ Roadmap β shaped by real integrators
Recent reviews from practising KNX integrators (in Discussions) are steering what comes next:
Cross-device parameter consistency(shipped β check_device_parameters) β flag the one device whose ETS parameter settings differ from its N identical siblings: a thermostat with a different setpoint/hysteresis, a presence detector with a different detection time. Extracts per-device parameters straight from the .knxproj and finds the odd one out on real 42β275-device projects β read-only, no ETS, no bus β and correctly reports nothing on a clean project (no false positives across a different vendor / integrator school).
Project Policy Profile(shipped β check_policy) β validate a project against your own agreed rules (naming, GA taxonomy, command/status exemptions) instead of one universal "professional standard", since conventions differ per integrator; with no profile it validates against the taxonomy inferred from the project itself.
Room Template Library β compose a new project from parametrised room templates. R1 shipped (compose_rooms + validate_room_template: new projects, dry-run, allocation manifest + ETS XML/CSV + device BOM). R2 planned: docking into an existing project + exact device selection.
Logic Machine support(coming β in research) β bring the same read-only, design-time model to Logic Machine (Embedded Systems) installations: parse an LM-based KNX project and run the same naming / DPT / status / topology audits and produce the same handover output, so LM integrators get the same evidential project model they already get from a raw .knxproj. Currently scoping against a real Logic Machine 5 unit.
On in-ETS group-address linking we deliberately don't reinvent the wheel: for linking GAs to communication objects inside ETS there are already ETS App-Store add-ins today, and native Smart Linking is coming in ETS7 β we point you to those and keep our focus on read-only audit and an evidential project model.
Have a project to test, a workflow that breaks, or a feature to shape? β Discussions.
Why this exists
As of mid-2026 there is no off-the-shelf ETS6 β Claude / MCP tool. The KNX community has
been explicitly asking for an integration that can inspect and help modify projects (adding /
renaming devices and group addresses) through an AI/CLI workflow. This package fills exactly the
design-time layer β the missing one.
The recommended full setup is four layers; only one needs to be built from scratch:
Layer
Purpose
What to use
Build it?
1. Live
states, control, debugging a running house
official Home Assistant MCP Server + KNX (XKNX) integration
written design rules your AI client reads (GA structure, naming, DPT, scenes) + an HA backup routine
plain files: CLAUDE.md + skills/ha-git-backup. Not served by the MCP server, which works without them
No, included
Safety by design: layer 2 (this server) physically cannot connect to a bus. It has no
network/bus dependency at all β it only reads .knxproj and writes files into a confined
workspace. The "never write to a live bus" requirement is enforced structurally, not by
promise. Any real interaction with the house goes only through layer 1 (Home Assistant).
What you can do with it
π Scenario 1 β Design a project from a spec (spec β implementation kit)
Turn a project specification (equipment schedules, cable journals, a device list) into a complete,
validated group-address structure β and the full document set to implement it:
Device list β object model. Each device expands into its real communication objects via the
device library (decompose_device): a dimmer channel is on/off + status + relative dim (3.007) +
absolute value (5.001) + brightness status β not "one GA"; a floor-heating zone is 8 objects; a
pulse meter is 6.
The professional logic layer. A bare spec never mentions what makes a project complete:
central & zone macros, scenes, presence logic, climate-control scaffolding, sun/wind shutter
logic, leakβshut-off chains, astro/meteo and date-time sources, reserves in every range. The
methodology encodes these completeness patterns β distilled from the KNX Association standard,
public manufacturer documentation and the study of real professional as-built ETS projects
(anonymised).
Structure & discipline. 3-level addressing, zone+function naming, commandβstatus pairing,
a DPT on every address.
Full methodology: docs/spec-to-structure.md. Field-checked by
reconstructing a real 14-room as-built ETS project from its 42-page specification alone:
96 % structural match (662 vs 687 GA), 10 / 10 domain taxonomy, at zero validation errors β
full write-up in the case study. The remaining delta is the integrator's
per-device parameterisation, which no spec encodes.
Read & classify. Parses password-protected ETS5/ETS6 .knxproj via
xknxproject; classifies every GA by category
(lighting / shutter / hvac / sensor / scene / energy / diagnostics) and kind (command / status /
sensor) from the DPT + multilingual (EN/DE/RU) name keywords. GA purpose tagging
(functional / reserve / logic / scratch) keeps intentional placeholders out of the error
lists, so the report doesn't cry wolf (on a real 685-GA project: false errors 29 β 6).
Validate (analyze_all runs everything): naming & structure Β· missing status objects
(ETS-Function roles first, then name-token pairing, positional pairing β parallel status middles with 1:1 names β and self-reporting R+T objects) Β· missing/inconsistent DPTs +
sub-DPT sanity (a "temperature" GA carrying 5.001 gets flagged) Β· relative-only dimmers Β·
KNX Secure posture (secured vs plaintext, mixed groups, keyring checklist β key material is
never read) Β· Matter-readiness Β· energy-domain coverage.
Repair, not just flag (suggest_repairs): infer a DPT from the name, correct a suspect
sub-DPT, synthesise a missing status GA in a free address slot, add an absolute-brightness GA.
Suggestions only β a human reviews, accepted GAs feed the ETS export. On a real 3,646-GA
project: 145 concrete proposals (32 DPT inferences, 112 synthesised status GAs).
Finish the job: grade_completeness (bare skeleton β as-built score), suggest_names,
diff_projects (semantic diff of two .knxproj revisions: added / removed / DPT-changed /
renamed / secure-changed), then regenerate the report, handover pack and test protocol.
π Scenario 3 β Generate the smart-home layer (Home Assistant)
Assembled entities, conservatively: covers β colour / dimmable lights (on/off +
brightness + RGBW/RGB/colour-temperature + statuses) β switches β climate (current temp,
target-temp status, operation/controller mode, valve value) β sensors/binary. Every entity gets
a state_address wherever the device can report β HA reads real state, never assumes.
Review-first: anything ambiguous (DPT 5.001 β brightness or blind position?) is not
guessed β it goes to a review list with an explanation (including actuator-dependent cover
flags like invert_position / travel times, which no .knxproj encodes).
Live control of the house stays in the official Home Assistant integration (layer 1) β this
server only prepares its configuration.
Ops companion: skills/ha-git-backup β the life of your config
after deploy: a real git history of /config (deploy key + pre-commit secret scanner) plus
encrypted offsite backups in GitHub Releases, with a monthly restore drill.
π§± Scenario 4 β Compose a new project from room templates
From rooms, not a blank sheet: pick from six built-in parametrised room templates (bedroom,
children, living, kitchen, bathroom, corridor), choose a basic / comfort preset per slot (a house
can mix comfort climate with basic lighting), and compose_rooms assembles a new project.
Out comes: an allocation manifest (main = domain, middle = role, sub sequential), ETS-importable
GA XML/CSV via the existing generators, and a device BOM proposal from the device library.
Validated by the real reader: the generated .knxproj is re-read through the standard load_project
β the same path used for third-party projects β and passes all four linters (naming / missing-status /
DPT / policy) with 0 errors / 0 warnings.
Dry-run by default, new projects only. The template format is a public contract (room_templates/SCHEMA.md):
identity is a locale-neutral slot_id, never a human name.
R2: docking into an existing project + exact device selection β planned.
parse_devices_from_project extracts exact vendor object models β including ref-level (ComObjectRef) publishers like HDL/Ekinex β from the manufacturer
application programs inside any .knxproj / .knxprod: object numbers, names, sizes, DPTs,
C/R/W/T/U flags, per-channel block strides β deterministically, and PII-safe (vendor catalog
data only; the client project part of the file is never read).
Point NICKOL_KNX_CATALOG at your catalog and decompose_device answers with the exact
model (catalog-exact) instead of a generic recipe β the catalog grows on demand, from the
projects and product databases you feed it.
Objects the vendor ships without a declared DPT stay honestly unverified β never guessed.
All writes go only into the workspace directory (NICKOL_KNX_WORKSPACE, default ./knx-workspace);
writes outside it are rejected.
On Debian/Ubuntu, if pip complains about an externally-managed environment, use a venv (as above)
or pip install -e . --break-system-packages. If PyJWT conflicts, run
pip install mcp --ignore-installed PyJWT first.
Verify:
bash
python tests/test_pipeline.py # synthetic 16-GA project, end-to-end smoke test
nickol-knx-mcp # start the MCP server (stdio)
Connecting to Claude
Claude Desktop
examples/claude_desktop_config.json wires up nickol-knx + filesystem + git + home-assistant.
Minimal fragment (macOS config path: ~/Library/Application Support/Claude/claude_desktop_config.json):
claude mcp add nickol-knx \
-e NICKOL_KNX_WORKSPACE="$HOME/knx-workspace" \
-- /absolute/path/to/.venv/bin/nickol-knx-mcp
Optionally, drop CLAUDE.md into your project root. It is a plain playbook your AI client reads (design
rules, safety rules, 3-level GA structure, command/status pairing, DPT discipline, naming, KNX Secure
keyring handling, and the recommended workflow). The server does not need it: parsing, checks and
generation all run as code inside the MCP server.
MCP tools (32)
Read
Tool
Purpose
load_project(path, password?, language?)
parse a .knxproj (read-only) and cache it
load_ga_export(path)
load an ETS group-address export (ga-export/01 XML, e.g. from ETS or TapPlan) as a project without devices
list_group_addresses(category?, kind?)
list GAs with classification and filters
get_devices()
devices + their communication objects
get_topology()
topology (areas / lines / devices)
explain_ga(address)
provenance for one GA: why it's classified this way β evidence per decision with a confidence tier (authoritative ETS Function > structural DPT > heuristic name), how its status was paired, and conflicts (name says "AC", DPT says lighting β contested)
validate against a Project Policy Profile (your main-group taxonomy, naming, pairing) β or, with no profile, against the taxonomy inferred from the project itself; flags GAs that deviate from your convention, not a universal standard. write_example_to writes an example profile seeded from the loaded project's own main groups (mains the project doesn't have are never listed)
Repair & design
Tool
Purpose
suggest_repairs()
propose fixes, not just flag β infer DPTs, synthesise status/brightness GAs
suggest_names()
naming-hygiene suggestions
decompose_device(order_number, channels?)
device β GA decomposition: exact vendor model from a local catalog (NICKOL_KNX_CATALOG), or generic recipe
list_device_recipes()
the built-in device library (Zennio + ABB families)
build a new project from a list of rooms β allocation manifest, ETS GA XML/CSV, device bom proposal; generated .knxproj is re-read by the standard loader and linted (0 errors / 0 warnings). New projects only, dry-run by default.
Typical workflow
load_project β point it at your .knxproj (+ password if protected).
analyze_all or project_report β read the findings; human review first.
Fix naming/DPT/status in ETS (by importing generated GAs or manually).
generate_ets_group_addresses(fmt="xml") β import the missing GAs into ETS.
generate_ha_package β place the YAML into Home Assistant; resolve review items by hand.
Keep everything (.knxproj export, HA configs, address schema) in Git.
Touch the live house only through the Home Assistant MCP (layer 1).
Limitations (honest)
command/status and category classification is a heuristic (DPT + names + ETS Functions). On
messy projects with no Functions and non-standard names, false negatives/positives are possible β
which is why the report is always for human review, and ambiguity goes to review, not into config.
DPT 5.001 is structurally ambiguous (brightness vs position); it's disambiguated by keywords β
double-check with non-standard naming.
The HA generator is conservative: it would rather defer an item to review than emit a wrong entity.
The server never writes to the bus and never talks to ETS directly β ETS exchange is file
import/export of GAs only.
Validated on a synthetic demo project and on real multi-thousand-GA ETS5/ETS6 projects
(anonymised) β but real .knxproj files vary enormously, and it is still a beta. Hence the
call for testers.
π Safety model
No bus access, structurally. There is no networking or bus library in the dependency tree.
workspace_info() reports bus_access: false.
Read-only on your project.project.py is the only module that touches .knxproj, and it
only reads.
Confined writes. All output is constrained to NICKOL_KNX_WORKSPACE; paths outside it are rejected.
Hardened against hostile project files. A .knxproj is an untrusted ZIP-of-XML, so parsing runs
through safexml.py: DTD/entity XML is refused (billion-laughs / XXE), and archives are pre-flighted
against size / entry / decompression-ratio caps with path-traversal names rejected (zip-bomb defense).
Human-in-the-loop. Generate a project_report and review it before importing into ETS or
deploying into Home Assistant.
Not affiliated with or endorsed by the KNX Association. "KNX" and "ETS" are trademarks of the
KNX Association cc. This is an independent, community tool.
Install
Configuration
Environment variables
NICKOL_KNX_WORKSPACE
Directory the server may write generated files into (reports, HA YAML, ETS exports). Defaults to ./knx-workspace
NICKOL_KNX_CATALOG
Optional path to a local device catalog for exact vendor decomposition