Heat Pump Manager: my Luxtronik heat pump on the Windows desktop

Monitor and control heat pumps with a Luxtronik 2.x controller from Windows – now in the Microsoft Store.

In March I wrote about building a Homey app for my CTA heat pump with Claude. Homey is great for automations, but I also wanted to see at a glance what the heat pump is doing, look back over days and weeks, and adjust the heating curve without going to the control unit.

So I built a Windows app for it: Heat Pump Manager. Like my Homey app, it was built together with Claude – this time with Claude Code on my PC. It talks directly to the Luxtronik controller on the local network, without an account and without any cloud.

What the app does

Everything at a glance

The overview shows the status the way the control unit does (“Heat pump running for 00:21:00”, next defrost) and a system diagram from the heat source through the heat pump to the heating circuit and hot water, with the temperatures on the pipes. Tiles show each temperature with a small chart of the last three hours and its trend.

overview

History and statistics

The history chart covers 1 hour to 30 days, with bars for heating, hot water and defrost. If the PC was off, the app fills the gap from the heat pump’s own 48-hour data logger. Statistics show compressor starts, runtime and heat quantity per day, plus an assessment of the cycling behaviour; on request, the app also writes one CSV file per day for Excel.

history
Statistics

Control

Operating mode for heating and hot water, hot water set point, the heating curve with a live preview while you adjust it, heating limit, night setback and the time slots for heating, hot water and circulation. Heat pump settings can be backed up and restored.

Control
time slots

Messages

The fault memory and the shutdown reasons appear in plain language, with hints from the installer manual. Windows notifications report a new fault, a heat pump that stops responding, or a long utility lock.

messages

In the background

The app keeps running in the notification area and keeps recording. One click on the icon opens a quick overview; on request it starts with Windows.

flyout

For advanced users

All values can go to your own MQTT broker, and Home Assistant creates the sensors automatically (read-only). A page lists every raw value and parameter with name, search and CSV export. The app speaks German, English, French, Italian and Dutch, follows the light or dark Windows theme, and works with keyboard and screen reader.

Which heat pumps it works with

Heat Pump Manager works with heat pumps that have a Luxtronik 2.0 or 2.1 controller with a network connection – for example from alpha innotec, Novelan, CTA, Roth and Elco, and some models from Buderus, NIBE and Wolf.

  • The PC must be on the same local network as the controller.
  • “Search network” finds the controller, or you enter its IP address (shown on the control unit under Service → System control → IP address).
  • Port 8889 is used for Luxtronik 2.1 and 8888 for the older Luxtronik 2.0; the connection test tries both.
  • Not supported: Luxtronik 1 and devices that only offer Modbus.

How I built it

As with the Homey app, I described what I wanted and Claude wrote the code – a WPF app on .NET 10 with the Windows 11 look. Four things made the difference:

  • A simulator instead of my real heat pump. Claude built a small program that behaves like a Luxtronik controller. Every write function was tried against it first, never against my own heat pump, and it also produced all the screenshots in this post.
  • Tests for everything. The app has about 500 automated tests, from the network protocol to the safety checks before writing.
  • The name. The app started as “Luxtronik for Windows”. Then it turned out that “Luxtronik” is a registered trademark of ait-deutschland GmbH, in the EU and in Switzerland, including for heat pump control software. So it became Heat Pump Manager, and manufacturer names now appear only to describe which devices are supported.
  • The Microsoft Store. The app is packaged as MSIX, and like every classic desktop app it needs the “runFullTrust” capability, which Microsoft approves with a short justification. My first upload was rejected because the package’s resource index didn’t contain the logos under the names the manifest expected; the build script now checks that. And after publishing, make sure “Windows 10/11 Desktop” is ticked under device family availability – otherwise the app shows up in the Store but can’t be installed on any PC.

Safety and privacy

A heat pump is not a toy, so changing settings is deliberately careful:

  • Every change needs a confirmation first.
  • Values are checked against the ranges from the installer manual before they are sent.
  • After sending, the app reads the value back and shows whether the controller accepted it; every change lands in a change log.
  • Writing can be switched off completely, and installer settings only appear on request.

There is no account, no cloud and no advertising. The app only talks to the controller on your own network. It contacts anything else only if you switch it on: your own MQTT broker, or a daily check for new controller firmware on the manufacturer’s download portal. Changes to the heat pump are at your own risk; if in doubt, ask your installer.

Get it

Heat Pump Manager is available in the Microsoft Store for CHF 9.90 (9.99 € in Germany). It runs on Windows 10 (version 1809 or later) and Windows 11 on 64-bit PCs, and the Store keeps it up to date.

“Luxtronik” is a trademark of ait-deutschland GmbH; alpha innotec, Novelan, CTA, Roth, Elco, Buderus, NIBE and Wolf are trademarks of their respective owners. They are named here only to identify the supported devices. Heat Pump Manager is an unofficial project and is not affiliated with any of these manufacturers.

How I built a Homey app with Claude AI — without writing a single line of code myself

A practical guide for smart home enthusiasts who want to bring their own devices into Homey — no professional development experience required.


Background

I own a Luxtronik-based heat pump (CTA) and wanted to control and monitor it directly from Homey. An older community app existed, but it was unmaintained and lacked the features I needed — like setting the hot water mode or triggering a hot water boost.

Instead of learning JavaScript from scratch and spending weeks studying the Homey SDK, I decided to try something different: I described what I wanted to Claude AI and iterated from there. The result is a fully published app: com.luxtronik.heatpump.

This post documents the process so you can do the same for your own device.


What you need

  • A Claude.ai account (Pro is recommended for longer conversations)
  • Node.js installed on your machine
  • The Homey CLI (npm install -g homey)
  • A Homey Pro to test on
  • Basic familiarity with the terminal
  • Patience and curiosity — no coding experience required

Step 1: Understand what you’re building

Before talking to Claude, spend 30 minutes getting clear on two things:

What device are you connecting? Find out how your device communicates. Does it have a local API? A TCP socket? A REST API? An existing npm package? In my case, the Luxtronik controller communicates over TCP on port 8889, and there was already an npm package called luxtronik2 that handled the protocol.

What do you want Homey to do with it? Write down a simple list:

  • What values should Homey read? (temperatures, states, energy usage…)
  • What should Homey be able to control? (modes, target temperatures…)
  • What Flows do you want? (trigger when temperature drops, set mode via voice…)

Having this list ready makes the conversation with Claude much more productive.


Step 2: Start the conversation with context

Open a new Claude conversation and give it everything it needs upfront. A good opening message looks like this:

“I want to create a Homey SDK 3 app for [your device]. The device communicates via [protocol/npm package]. The app should read [list of values] and allow the user to set [list of controls]. The app ID should be [com.yourname.appname]. Please create all necessary files.”

The more specific you are, the better the first draft will be. Include:

  • The Homey SDK version (SDK 3 as of 2024)
  • Any existing npm packages or APIs your device uses
  • Links to reference implementations (GitHub repos, documentation)
  • The exact app ID you want

Claude will generate the core files: app.json, app.js, drivers/[driver]/device.js, drivers/[driver]/driver.js, locales/en.json, package.json, and the pairing view.


Step 3: Validate early and often

As soon as you have the first set of files, test them:

# Install dependencies
npm install

# Validate the app
homey app validate

# Install on your Homey for testing
homey app install

The validator will catch structural errors — missing required fields, invalid capability names, wrong JSON syntax. Claude can fix every error the validator reports. Just paste the error message back into the conversation:

“I’m getting this error when running homey app validate: [paste error]. Please fix it.”

Common early issues I encountered:

  • Capability names with dots are only valid for built-in Homey system capabilities — custom capabilities must use flat names without dots
  • brandColor is required for publishing
  • Flow cards defined inside a driver are ignored — they must be at the top level of app.json
  • The thermostat device class prevents users from selecting status indicators

Each time, pasting the exact error message and letting Claude fix it took less than a minute.


Step 4: Test the actual device connection

Once the app installs without errors, pair it with your device and watch the Homey logs:

homey app logs

This is where things get interesting. The app may install fine but not show any values, or show wrong values. In my case, the field names I expected from the npm package were all wrong — I had used camelCase names like temperatureOutside but the library actually returned temperature_outside (snake_case).

The debug approach that worked well: add a one-time data dump to device.js that logs the raw response from the device on first poll. Claude added this for me:

javascript

if (!this._dataDumped) {
  this.log('=== Device data (first poll) ===');
  this.log('values:', JSON.stringify(data.values, null, 2));
  this.log('parameters:', JSON.stringify(data.parameters, null, 2));
  this._dataDumped = true;
}

Then check the Homey logs, copy the actual field names, and tell Claude to update the mapping.


Step 5: Fix write operations

Reading values is usually straightforward. Writing (setting modes, temperatures) is harder because of a common issue with local TCP devices: they only accept one connection at a time.

If your device uses a single TCP port for both reading and writing, the polling interval can conflict with write operations. The solution is to pause polling before writing:

javascript

// Stop polling → wait for connection to close → write → restart polling
this._stopPolling();
setTimeout(() => {
  this._pump.write(parameter, value, (err, res) => {
    this._startPolling(); // Always restart, even on error
    // handle result...
  });
}, 1500);

I discovered this issue because write operations were silently failing — no error, but the value wasn’t changing. Asking Claude to add detailed logging to the write method revealed the problem immediately.


Step 6: Iterate with real usage

Once the basics work, use the app normally for a few days. You’ll notice things that need improvement:

  • A capability showing a wrong value
  • A status indicator that’s always active even when it shouldn’t be
  • A slider that resets immediately after you set it (the poll overwrites your change before the device has processed it)

Each issue becomes a message to Claude:

“The alarm_generic capability is always true even when there are no errors. Looking at the luxtronik2 source code, v.errors contains the last 5 entries from the error log, not only active errors. The correct check for an active error is heatpump_state1 === 4. Please fix this.”

The key insight: the more context you give Claude, the better the fix. If you’ve investigated the root cause yourself (even briefly), include that in your message. Claude will implement it correctly rather than guessing.


Step 7: Polish the app

Once the functionality is solid, work on the presentation:

Icons: Homey expects SVG icons for capabilities. The important rules:

  • Use fill="currentColor" or stroke="currentColor" — never hardcoded hex colors like #000000
  • Remove <?xml version="1.0"?> declarations and xmlns:xlink attributes
  • Keep the viewBox but remove fixed width and height attributes

Capabilities as status indicators: For capabilities to appear in the Homey status indicator selector, they must start with measure_ or meter_. Also, the device class must not be thermostat, light, lock, or speaker — those classes prevent indicator selection.

Localization: Provide both en.json and any other language your users might speak. Claude can translate the locale files directly.

Changelog: Maintain .homeychangelog.json with version notes. It appears in the App Store and matters to users updating the app.


Step 8: Publish

Run the full publish validation before submitting:

bash

homey app validate --level publish

This checks everything the App Store requires. Work through any warnings — things like missing titleFormatted on flow cards will only be warnings today but will become errors in future SDK versions.

Once validation passes cleanly, submit through the Homey developer portal or via homey app publish.


Lessons learned

Be specific about errors. A vague “it doesn’t work” leads to guessing. “The write operation returns no error but the value doesn’t change, and the device log shows no incoming connection” leads to a precise fix.

Read the source code of your npm packages. Not to understand every line, but to find the actual field names and write parameter keys. Copy the relevant parts into your Claude conversation. In my case, reading 50 lines of luxtronik2/luxtronik.js revealed that I had been using the wrong state field for six weeks.

Keep a working ZIP. Every time a version works well, export it and keep a copy. When a new change breaks something, you have a clean baseline to fall back to — and you can upload it to Claude as the new starting point for the next session.

Use Homey Compose. The .homeycompose folder structure separates capabilities into individual JSON files, making it much easier for Claude to update a single capability without touching the rest of the app. Ask Claude to restructure to Homeycompose format early in the process.

Test on real hardware early. The app can validate and install perfectly and still not work because the device behaves differently than the documentation suggests. Real testing reveals the actual field names, timing issues, and connection limits that no amount of code review will catch.


The result

The finished app has:

  • 26 capabilities covering all sensor values, states and controllable parameters
  • Full Flow integration with triggers, conditions and actions
  • A hot water boost feature with auto-reset timer
  • Proper capability icons, localization in English and German
  • A correct heat pump state mapping using the detailed extended state field

Total development time: roughly 20–25 hours spread over several weeks — mostly spent testing on the actual heat pump and iterating on real-world issues. Not a single line was written by hand.

The app is open source: github.com/andiwirz/com.luxtronik.heatpump


Quick reference: useful prompts

SituationPrompt template
Getting started“Create a Homey SDK 3 app for [device]. It communicates via [protocol]. Read [values], control [parameters]. App ID: [id].”
Validation error“homey app validate returns this error: [paste]. Please fix it.”
Wrong field names“The device returns these fields: [paste JSON]. Update the capability mapping accordingly.”
Write not working“Setting [capability] has no effect. The device uses a single TCP port. Add polling pause before writes.”
New feature“Add a [feature] capability that [description]. Include a Flow action and trigger.”
Icon not showing“The SVG icon for [capability] is not displaying. Here is the current SVG: [paste]. Fix it for Homey.”

App built with Claude (Anthropic). Special thanks to Robin Flikkema for the original Luxtronik Homey app that served as reference and inspiration.

Luxtronik 2.0 Installer Access

Tested with firmware version 1.89

Accessing the Luxtronik Web Interface

Open the Web Interface:

  • Make sure your Luxtronik heat pump is connected to the same local network as your computer.
  • Open any web browser (Chrome, Firefox, Edge, …).
  • Enter the Luxtronik’s IP address in the address bar, for example:

http://192.168.x.x

You can find the correct IP address in your router’s device list, via a network scan or directly in the heat pump’s menu.

Web Interface Overview

  • After entering the IP address, the Luxtronik web interface will load.
  • You can now view system information and basic settings. The settings are read only (without entering a password).

Installer Access (Advanced Settings)

To access extended configuration options, you need the installer login. Enter the following password:

This unlocks additional menus such as heating curve settings, temperature adjustments, error reset, and other advanced functions.

Quick & dirty vulnerability assessment on Windows

If you want to run a quick vulnerability assessment on a single Windows system, read the following article.

OpenScap

Update November 2022: OpenScap will not get any further updates for Windows – Therefore, please use the SCAP Compliance Checker (scroll down)

openscap/windows.md at maint-1.3 · OpenSCAP/openscap · GitHub

One of the applications I use is the command line tool OpenSCAP – for Windows client and server operating systems, download the latest msi installer from: https://github.com/OpenSCAP/openscap/releases

Run the setup and open “Windows Explorer” to go to the path where OpenScap has been installed: “C:\Program Files (x86)\OpenSCAP 1.3.4”

Optional: To make sure you do not have to install the executables on every single system, you can just copy the folder to a central location to reuse it later again on other systems.

SCAP content

To compare your system against the STIG (Security Technical Implementation Guides) standard, you have to download the STIG Benchmark file for your operating system.

Go to: https://public.cyber.mil/stigs/scap/

…and download the compressed file:

Copy the extracted XML file to the OpenScap directory:

Run the assessment

Open a “command pompt” as Administrator – change the directory to the OpenScap path and run the following command (use your downloaded XML file in the command!):

oscap xccdf eval –report report.html U_MS_Windows_10_V2R1_STIG_SCAP_1-2_Benchmark.xml

Open the HTML report “report.html” and check each finding and remediate it if possible (depends on compatibility to other systems / system landscape / specific requirements / down Level compatibility / etc.)

SCAP Compliance Checker (fast & easy)

Another option is the SCAP Compliance Checker – Download “SCC 5.5 Windows” from: https://public.cyber.mil/stigs/scap/

Install the setup and run a scan (by default it checks against all available benchmarks):

When finished, you can review the findings and recommendations directly within the tool:

Stay safe…

Luxtronik 2.0 Heatpump JAVA and HTML Access (<V1.89.0)

Using the information herein is at one’s own risk!

Newer versions than “V1.88.0” definitely disable Telnet access on TCP port 23.

Update firmware

Download heat pump specific firmware for…

alpha-innotec (AIT): https://www.heatpump24.com/DownloadArea.php?layout=1

Novelan: https://www.heatpump24.com/DownloadArea.php?layout=2

CTA: https://www.heatpump24.com/DownloadArea.php?layout=3

Use the download button on the right side to get the file.

Safe the file “wpreg.V1.86.2” to a FAT32 formatted USB pen drive and use the drive to update your heat pump: Video instructions by Novelan

New HTML “Heatpump Controller”

After the update, the old JAVA management is gone and a “new” interface without java appears by accessing the URL of your heat pump (http://ipaddressheatpump):

As some features (heating curve, temperature adjustments, thermal disinfection, etc) are missing on the new interface I wanted the old interface somehow back – after checking telnet access and available files, I found the old wp.jar on the root of the web folder.

Enable the old interface in parallel

I was able to get the original content of index.html from an older version. A new html file with a different name is now required to access wp.jar:

Create another html file for wp.jar

Use telnet (for example with putty) to access your heat pump:

Enter root as user and press [Enter] / leave the password blank and press [Enter] / type cd /home and press [Enter]

type “vi java.html” and press [Enter]

Copy the code below:

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WEBSERVER - Wärmepumpe - Heatpump</title>
</head>
<body>
<table align="center" valign="center" width="100%" height="1000px">
<tr><td>
<applet code="communication.WpApplet" archive="wp.jar" width="100%" height="100%">
</applet>
</td></tr>
</table>
</body>
</html>

type “i” and paste the code into the editor / press [Escape] / type “:wq” to save and close the file

The old interface is now reachable on http://ipaddressheatpump/java.html

…and the new one as it was before:

Problems with JAVA and new Browsers (Windows 11)

If you face issues, using JAVA, you have two options: You can use the “IE Tab” Addon: IE Tab – Microsoft Edge Addons or set Edge into Internet Explorer compatibility mode:

Add URL in Edge to use the “IE mode”

Java Security settings

Make sure to add the URL to the exception list under Security within the Java Control Panel.

Java version?

Make sure to use the 32-bit version of Java: Java Downloads for All Operating Systems

Use and prevent Mimikatz

Mimikatz is is an application that allows you to view, save and use authentication credentials and even more.

The following examples are simple and do not require a master’s degree in computer science. As an Admin you should go trough the article to make sure you know how to prevent your infrastructure from a Mimikatz attack. Specially if you use older Operating systems!

Continue reading “Use and prevent Mimikatz”

Securing Active Directory

Everything seems to be ok and nobody complains, but there is always room for improvement. Especially when it comes to security.

Unfortunately, an updated operating system and antivirus solution are no longer sufficient to be safe. Assessment help to get an overview about risks, misconfigurations, legacy configurations and optimisations.

Active Directory Assessments

Microsoft RAP as a Service

Microsoft offers a service called “RAP as a Service” where you can choose (not for free!) assessments of multiple technologies. One of their offering is an Active Directory Security RAP. The assessment opens your eyes to what is not optimally configured and fills the task list of every AD responsible. The services is quite good but there is one problem: You need a “Microsoft Premier Support contract”. Not every company has such a contract as they are expensive and third parties offer similar Support offerings.

Give it a try if you’re eligible to use it: https://services.premier.microsoft.com/assess?Culture=en-US

In addition to these paid offers, there are also freely usable tools.

PingCastle

Ping Castle is an Active Directory Security Assessment tool which helps to detect security issues, get an overview of the technical situation and provide guidance and advice’s to fix the issues.

There is a free version available with basic functionalities. The tool scans you Active Directory objects, permissions, GPOs and many more (remote SMBv1 check, specific user permission scan, …) and generates a report against >100 checks to get an indicator of the Domain risk level. Details on all findings can then be remediated by going trough each documentation:

If you need more features, there are three paid version which come with additional benefits:

Give it a try!

https://www.pingcastle.com/

https://github.com/vletoux/pingcastle

Path to Domain Admin

Collect data

To collect data you need a tool called SharpHound.exe

Download it from: https://github.com/BloodHoundAD/BloodHound/tree/master/Ingestors

Run the following command with a normal “Domain User” to enumerate Group Membership, Trusts, ACLs, ObjectProps, Containers, and GPO Local Admins within a Domain:

SharpHound.exe -c DCOnly

When finished, a zip file should have been generated – example: 20200220204118_BloodHound.zip

Database

Data must be stored in a database. BloodHound is using Neo4J.

Download it from: https://neo4j.com/download/

Make sure to safe your Desktop Key. You’ll need it later.

Install the application and run it (enter your Desktop Key) and Neo4j Desktop windows appears.

Change the Project Name to BloodHound:

Add a graph: Name it BloodHound and choose a password (need this to login with BloodHound.exe later on) > click Create

Open the settings of graph BloodHound and start it: Press play button

Visualize data

To visualize the collected data you need BloodHound.

Download it from: https://github.com/BloodHoundAD/BloodHound/releases

Extract the zip file to “C:\Tools\BloodHound”

Start “BloodHound.exe” and enter the password which you’ve set while creating the graph (do not change Database URL and Username!): click on Login

Drag the zip file into BloodHound windows and wait until it’s fully loaded into the database.

Finding the shortest path to a specific user

Enter the Start Node (user), Target Node (for example Domain Admins) and press Play:

The result will show the path to Domain Admins:

Pre-Built Queries

BloodHound has as well a lot of interesting pre-built queries: