<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniel Klas</title>
    <description>The latest articles on DEV Community by Daniel Klas (@dkfuh).</description>
    <link>https://dev.to/dkfuh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3850921%2F119da5d9-552f-4e6b-ba19-24a645db6104.jpeg</url>
      <title>DEV Community: Daniel Klas</title>
      <link>https://dev.to/dkfuh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dkfuh"/>
    <language>en</language>
    <item>
      <title>Your Smart Kitchen Is a Distributed System. Why Aren't We Designing It Like One?</title>
      <dc:creator>Daniel Klas</dc:creator>
      <pubDate>Fri, 04 Dec 2026 09:58:54 +0000</pubDate>
      <link>https://dev.to/dkfuh/your-smart-kitchen-is-a-distributed-system-why-arent-we-designing-it-like-one-111k</link>
      <guid>https://dev.to/dkfuh/your-smart-kitchen-is-a-distributed-system-why-arent-we-designing-it-like-one-111k</guid>
      <description>&lt;p&gt;&lt;em&gt;Connected appliances, proprietary ecosystems, Shelly, KNX, Matter, MQTT, and the engineering challenges of building a genuinely intelligent kitchen.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A modern European kitchen can easily contain thousands of euros worth of connected technology.&lt;/p&gt;

&lt;p&gt;A modern European kitchen can easily contain thousands of euros worth of connected technology.&lt;/p&gt;

&lt;p&gt;The oven has Wi-Fi. The dishwasher sends push notifications. The refrigerator reports its temperature. The induction cooktop communicates with an extractor hood. The lighting system has its own gateway, and the coffee machine can be controlled through a smartphone.&lt;/p&gt;

&lt;p&gt;On paper, this sounds like an intelligent environment.&lt;/p&gt;

&lt;p&gt;In practice, you often end up with five different applications, multiple cloud accounts, incompatible communication protocols, inconsistent device states, and a surprising amount of manual work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The individual appliances may be smart. The kitchen as a system is not.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As a master carpenter, kitchen designer, and Shelly Gold Installer working at the intersection of interior design, lighting, electrical infrastructure, and smart home technology in Germany, I see this as more than a software problem.&lt;/p&gt;

&lt;p&gt;It is an architectural problem.&lt;/p&gt;

&lt;p&gt;We need to stop thinking about connected kitchens as collections of individual products and start designing them as distributed, interoperable systems.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The European kitchen is a particularly interesting IoT environment
&lt;/h2&gt;

&lt;p&gt;The European kitchen market, especially in Germany, Austria, and Switzerland, has a strong tradition of individually planned fitted kitchens.&lt;/p&gt;

&lt;p&gt;European kitchen projects often involve the coordinated planning of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Furniture and cabinetry&lt;/li&gt;
&lt;li&gt;Integrated household appliances&lt;/li&gt;
&lt;li&gt;Electrical installations&lt;/li&gt;
&lt;li&gt;Water supply and drainage&lt;/li&gt;
&lt;li&gt;Ventilation and extraction&lt;/li&gt;
&lt;li&gt;Architectural lighting&lt;/li&gt;
&lt;li&gt;Task lighting&lt;/li&gt;
&lt;li&gt;Building automation&lt;/li&gt;
&lt;li&gt;Interior design&lt;/li&gt;
&lt;li&gt;Energy management&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A kitchen is not simply a room containing devices. It is a permanent technical installation within a building.&lt;/p&gt;

&lt;p&gt;The expected lifecycle of a kitchen is also significantly different from the lifecycle of a smartphone, an IoT gateway, or a software application.&lt;/p&gt;

&lt;p&gt;A kitchen might remain in use for 20 years. An appliance could be replaced after 10 years. A smart home controller might be upgraded after five years.&lt;/p&gt;

&lt;p&gt;A cloud API could change tomorrow.&lt;/p&gt;

&lt;p&gt;This creates a fundamental engineering challenge:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;How do we design a system whose physical infrastructure is expected to outlive its software components?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The answer cannot be to purchase every component from the same manufacturer and hope that the ecosystem remains compatible for the next two decades.&lt;/p&gt;

&lt;p&gt;We need abstraction, modularity, documented interfaces, replaceable components, and clearly defined failure boundaries.&lt;/p&gt;

&lt;p&gt;In other words, we need architecture.&lt;/p&gt;

&lt;p&gt;At &lt;a href="https://kuechen-klas.de/" rel="noopener noreferrer"&gt;Klas Küchen®&lt;/a&gt;, our approach to kitchen design starts with the room, its infrastructure, and the user's daily routines rather than with the selection of individual appliances or furniture.&lt;/p&gt;

&lt;p&gt;Our &lt;a href="https://kuechen-klas.de/ratgeber/" rel="noopener noreferrer"&gt;collection of practical kitchen planning guides&lt;/a&gt; explores these physical and functional dependencies in more detail.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. The current landscape of connected appliances in Europe
&lt;/h2&gt;

&lt;p&gt;The European appliance market already offers sophisticated connected products. Many manufacturers have invested considerably in digital services, automated functions, recipe platforms, and remote monitoring.&lt;/p&gt;

&lt;p&gt;However, these capabilities are distributed across multiple ecosystems.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ecosystem&lt;/th&gt;
&lt;th&gt;Typical applications&lt;/th&gt;
&lt;th&gt;Integration consideration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Home Connect&lt;/td&gt;
&lt;td&gt;Bosch, Siemens, NEFF&lt;/td&gt;
&lt;td&gt;Official cloud API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Miele@home&lt;/td&gt;
&lt;td&gt;Connected Miele appliances&lt;/td&gt;
&lt;td&gt;Cloud-based third-party API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AEG / Electrolux&lt;/td&gt;
&lt;td&gt;Cooking assistance and connected appliances&lt;/td&gt;
&lt;td&gt;Model-dependent integrations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;V-ZUG Home&lt;/td&gt;
&lt;td&gt;Connected premium appliances&lt;/td&gt;
&lt;td&gt;Appliance-dependent capabilities&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Samsung SmartThings&lt;/td&gt;
&lt;td&gt;Appliances and smart home integration&lt;/td&gt;
&lt;td&gt;Platform-dependent interoperability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LG ThinQ&lt;/td&gt;
&lt;td&gt;Connected household appliances&lt;/td&gt;
&lt;td&gt;Manufacturer ecosystem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly&lt;/td&gt;
&lt;td&gt;Relays, sensors, energy monitoring&lt;/td&gt;
&lt;td&gt;Local interfaces on compatible devices&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KNX&lt;/td&gt;
&lt;td&gt;Professional building automation&lt;/td&gt;
&lt;td&gt;Standardized building infrastructure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DALI&lt;/td&gt;
&lt;td&gt;Professional lighting control&lt;/td&gt;
&lt;td&gt;Dedicated lighting protocol&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Matter&lt;/td&gt;
&lt;td&gt;Cross-platform interoperability&lt;/td&gt;
&lt;td&gt;Device and controller support varies&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The problem is not that these ecosystems are inherently bad.&lt;/p&gt;

&lt;p&gt;Many of them solve specific problems exceptionally well.&lt;/p&gt;

&lt;p&gt;The problem is that they are designed around different technical assumptions, commercial objectives, and product boundaries.&lt;/p&gt;

&lt;p&gt;A dishwasher manufacturer does not necessarily design its products with the intention of coordinating architectural lighting, external ventilation systems, photovoltaic energy management, and furniture-integrated sensors.&lt;/p&gt;

&lt;p&gt;That coordination is left to the system integrator.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Connected does not mean interoperable
&lt;/h2&gt;

&lt;p&gt;There are several levels of appliance intelligence that are frequently confused in marketing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Level 1: Connected
&lt;/h3&gt;

&lt;p&gt;A device can communicate with an application or a cloud service.&lt;/p&gt;

&lt;p&gt;For example, a dishwasher sends a notification when its program has finished.&lt;/p&gt;

&lt;h3&gt;
  
  
  Level 2: Remotely controlled
&lt;/h3&gt;

&lt;p&gt;A user can modify supported settings or initiate permitted actions through an external interface.&lt;/p&gt;

&lt;h3&gt;
  
  
  Level 3: Integrated
&lt;/h3&gt;

&lt;p&gt;A third-party platform can access relevant device information and perform supported actions.&lt;/p&gt;

&lt;p&gt;For example, Home Assistant receives the operating state of a dishwasher.&lt;/p&gt;

&lt;h3&gt;
  
  
  Level 4: Automated
&lt;/h3&gt;

&lt;p&gt;An event in one subsystem triggers meaningful behavior in another subsystem.&lt;/p&gt;

&lt;p&gt;For example, the dishwasher finishing its cycle generates a notification and updates the kitchen dashboard.&lt;/p&gt;

&lt;h3&gt;
  
  
  Level 5: Context-aware
&lt;/h3&gt;

&lt;p&gt;Multiple signals are evaluated together to determine the appropriate behavior of the room.&lt;/p&gt;

&lt;p&gt;For example, the kitchen adapts its lighting based on occupancy, daylight, cooking activity, time of day, and the user's preferences.&lt;/p&gt;

&lt;p&gt;Many appliance connectivity features primarily address the first three levels.&lt;/p&gt;

&lt;p&gt;A genuinely intelligent kitchen requires meaningful automation and context-aware behavior.&lt;/p&gt;

&lt;p&gt;And this is where the complexity begins.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Why manufacturer-specific features become isolated solutions
&lt;/h2&gt;

&lt;p&gt;Consider automatic extractor hood control.&lt;/p&gt;

&lt;p&gt;AEG offers Hob²Hood, which allows compatible cooktops and extractor hoods to communicate using infrared technology.&lt;/p&gt;

&lt;p&gt;This is a useful feature. It removes the need to manually adjust extraction during cooking.&lt;/p&gt;

&lt;p&gt;But from a broader architectural perspective, several questions remain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can another automation system observe the current extraction level?&lt;/li&gt;
&lt;li&gt;Can the lighting system respond to cooking activity?&lt;/li&gt;
&lt;li&gt;Can an independent air-quality sensor request additional ventilation?&lt;/li&gt;
&lt;li&gt;Can a building energy management system access the operating state?&lt;/li&gt;
&lt;li&gt;What happens when the cooktop is replaced with a different brand?&lt;/li&gt;
&lt;li&gt;Can the original feature continue working without external infrastructure?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A manufacturer-specific automation can be technically excellent while remaining isolated from the rest of the building.&lt;/p&gt;

&lt;p&gt;This is not necessarily a failure of engineering.&lt;/p&gt;

&lt;p&gt;There are legitimate reasons why manufacturers maintain controlled ecosystems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product safety&lt;/li&gt;
&lt;li&gt;Regulatory compliance&lt;/li&gt;
&lt;li&gt;Warranty considerations&lt;/li&gt;
&lt;li&gt;Predictable behavior&lt;/li&gt;
&lt;li&gt;Cybersecurity&lt;/li&gt;
&lt;li&gt;Reduced support complexity&lt;/li&gt;
&lt;li&gt;Commercial differentiation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nevertheless, those decisions transfer integration complexity to the customer, the developer, or the kitchen planner.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The correct approach is not to dismantle every proprietary subsystem.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is to preserve useful native functionality while creating a higher-level orchestration layer around it.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. The cloud dependency problem
&lt;/h2&gt;

&lt;p&gt;Let's look at &lt;a href="https://developer.home-connect.com/" rel="noopener noreferrer"&gt;Home Connect&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The ecosystem provides an official developer API through which applications can access supported appliance states, events, settings, and programs.&lt;/p&gt;

&lt;p&gt;This is a significant advantage compared with devices that expose no supported external interface.&lt;/p&gt;

&lt;p&gt;However, the documented third-party Home Connect architecture relies on the manufacturer's online service rather than direct communication between an external application and the appliance.&lt;/p&gt;

&lt;p&gt;A simplified integration looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Kitchen appliance
       |
       v
Local Wi-Fi network
       |
       v
Internet connection
       |
       v
Manufacturer cloud
       |
       v
Manufacturer API
       |
       v
Home Assistant
       |
       v
Kitchen automation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;A comparatively simple event, such as a dishwasher completing a program, may depend on several external components.&lt;/p&gt;

&lt;p&gt;Potential failure points include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Internet outages&lt;/li&gt;
&lt;li&gt;Authentication token expiration&lt;/li&gt;
&lt;li&gt;API rate limits&lt;/li&gt;
&lt;li&gt;Manufacturer service outages&lt;/li&gt;
&lt;li&gt;Changes to API behavior&lt;/li&gt;
&lt;li&gt;Device-specific restrictions&lt;/li&gt;
&lt;li&gt;Changes in developer licensing&lt;/li&gt;
&lt;li&gt;Discontinued services&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://developer.miele.com/" rel="noopener noreferrer"&gt;Miele&lt;/a&gt; also offers an official third-party API, with functionality depending on the appliance category and generation.&lt;/p&gt;

&lt;p&gt;These interfaces are useful, but they should not be confused with autonomous local infrastructure.&lt;/p&gt;

&lt;p&gt;If a cloud service becomes unavailable, the kitchen must still function.&lt;/p&gt;

&lt;p&gt;The lights must work. The extractor hood must remain operable. The refrigerator must continue cooling.&lt;/p&gt;

&lt;p&gt;The user must be able to prepare food.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A kitchen should not become unusable because an OAuth token expired.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is why I advocate a local-first architecture rather than a cloud-first architecture.&lt;/p&gt;


&lt;h2&gt;
  
  
  6. Local-first does not mean cloud-free
&lt;/h2&gt;

&lt;p&gt;There is an important distinction.&lt;/p&gt;

&lt;p&gt;A completely cloud-free kitchen is difficult to achieve if you want to use all the capabilities of modern premium appliances.&lt;/p&gt;

&lt;p&gt;Some manufacturers provide useful information and control functionality exclusively through their online services.&lt;/p&gt;

&lt;p&gt;Rejecting every cloud-connected appliance would unnecessarily limit product selection.&lt;/p&gt;

&lt;p&gt;Instead, I prefer to classify functionality according to its dependency and criticality.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Function&lt;/th&gt;
&lt;th&gt;Preferred architecture&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Basic lighting&lt;/td&gt;
&lt;td&gt;Local and manually operable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Task lighting&lt;/td&gt;
&lt;td&gt;Local&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ambient lighting scenes&lt;/td&gt;
&lt;td&gt;Local&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Occupancy detection&lt;/td&gt;
&lt;td&gt;Local&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Water leak detection&lt;/td&gt;
&lt;td&gt;Local&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Appliance energy monitoring&lt;/td&gt;
&lt;td&gt;Local&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Appliance program information&lt;/td&gt;
&lt;td&gt;Cloud or local&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recipe synchronization&lt;/td&gt;
&lt;td&gt;Cloud acceptable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remote notifications&lt;/td&gt;
&lt;td&gt;Cloud acceptable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Appliance safety functions&lt;/td&gt;
&lt;td&gt;Native and independent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Essential building functions&lt;/td&gt;
&lt;td&gt;Independent of consumer cloud services&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The principle is straightforward:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The cloud may enhance the kitchen, but it should never be required for its essential operation.&lt;/strong&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  7. Why Shelly is particularly interesting for kitchen automation
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.shelly.com/" rel="noopener noreferrer"&gt;Shelly&lt;/a&gt; occupies an interesting position between traditional electrical installation and modern software-driven IoT infrastructure.&lt;/p&gt;

&lt;p&gt;Depending on the specific product and generation, Shelly devices can provide capabilities such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Local HTTP interfaces&lt;/li&gt;
&lt;li&gt;JSON-RPC&lt;/li&gt;
&lt;li&gt;MQTT communication&lt;/li&gt;
&lt;li&gt;On-device scripting&lt;/li&gt;
&lt;li&gt;Energy monitoring&lt;/li&gt;
&lt;li&gt;Digital inputs&lt;/li&gt;
&lt;li&gt;Relay outputs&lt;/li&gt;
&lt;li&gt;Wireless sensor integration&lt;/li&gt;
&lt;li&gt;DIN rail installation&lt;/li&gt;
&lt;li&gt;Ethernet connectivity&lt;/li&gt;
&lt;li&gt;Local schedules and automation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For developers, the most interesting aspect is not the manufacturer's smartphone application.&lt;/p&gt;

&lt;p&gt;It is the possibility of interacting with compatible devices through documented interfaces on the local network.&lt;/p&gt;

&lt;p&gt;Shelly devices can act as a bridge between physical infrastructure and software.&lt;/p&gt;

&lt;p&gt;This allows us to introduce automation into kitchens without requiring every appliance, light, or furniture component to belong to the same ecosystem.&lt;/p&gt;
&lt;h3&gt;
  
  
  Potential Shelly components
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Potential application&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Shelly 1 Gen3&lt;/td&gt;
&lt;td&gt;Suitable switching applications and dry-contact interfaces&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly 1PM Gen3&lt;/td&gt;
&lt;td&gt;Switching and monitoring compatible loads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly 2PM Gen3&lt;/td&gt;
&lt;td&gt;Two independently controlled compatible outputs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly Pro 4PM&lt;/td&gt;
&lt;td&gt;Centralized switching and energy monitoring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly Pro 3EM&lt;/td&gt;
&lt;td&gt;Electrical energy monitoring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly Dimmer series&lt;/td&gt;
&lt;td&gt;Compatible dimmable lighting circuits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly RGBW controllers&lt;/td&gt;
&lt;td&gt;Compatible low-voltage LED lighting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly DALI Dimmer Gen3&lt;/td&gt;
&lt;td&gt;Compatible DALI lighting applications&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly BLU Door/Window&lt;/td&gt;
&lt;td&gt;Cabinet and door monitoring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly Flood sensors&lt;/td&gt;
&lt;td&gt;Water leak detection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shelly BLU Motion&lt;/td&gt;
&lt;td&gt;Occupancy-related automation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The exact hardware must always be selected according to its electrical characteristics, installation environment, firmware capabilities, and intended use.&lt;/p&gt;

&lt;p&gt;A relay is not a universal appliance interface.&lt;/p&gt;

&lt;p&gt;And power monitoring is not equivalent to access to an appliance's internal operating logic.&lt;/p&gt;

&lt;p&gt;From a practical planning perspective, we have explored several of these applications in our German-language guide to &lt;a href="https://kuechen-klas.de/ratgeber/smart-home-kueche-shelly/" rel="noopener noreferrer"&gt;kitchen automation with Shelly&lt;/a&gt;, including water leak detection, lighting scenes, shading, and local control strategies.&lt;/p&gt;


&lt;h2&gt;
  
  
  8. The non-invasive integration principle
&lt;/h2&gt;

&lt;p&gt;One of the biggest mistakes in kitchen automation is trying to control everything directly.&lt;/p&gt;

&lt;p&gt;Sometimes, monitoring an appliance provides considerably more value than attempting to control it.&lt;/p&gt;

&lt;p&gt;Consider a conventional dishwasher without a supported smart home API.&lt;/p&gt;

&lt;p&gt;By monitoring its electrical consumption, it is often possible to infer whether it is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Idle&lt;/li&gt;
&lt;li&gt;Running&lt;/li&gt;
&lt;li&gt;Temporarily paused&lt;/li&gt;
&lt;li&gt;Heating&lt;/li&gt;
&lt;li&gt;Potentially finished&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This does not require modification of the appliance firmware or communication with its internal electronics.&lt;/p&gt;

&lt;p&gt;It can be implemented with suitable external metering equipment.&lt;/p&gt;

&lt;p&gt;However, power consumption is an indirect signal. It does not provide authoritative information about the appliance's program state.&lt;/p&gt;

&lt;p&gt;For example, a dishwasher may temporarily consume very little power during a soaking or drying phase.&lt;/p&gt;

&lt;p&gt;A single threshold is therefore insufficient.&lt;/p&gt;

&lt;p&gt;A more robust implementation uses temporal context, hysteresis, and state transitions.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;IDLE
  |
  | Sustained power increase
  v
RUNNING
  |
  | Sustained low power
  v
FINISH_CANDIDATE
  |
  +-- Power increases --&amp;gt; RUNNING
  |
  +-- Confirmation period --&amp;gt; COMPLETED
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The system should also support an &lt;code&gt;UNKNOWN&lt;/code&gt; state when measurements become unavailable.&lt;/p&gt;

&lt;p&gt;This is essentially the same problem that software developers encounter when designing distributed event-driven systems.&lt;/p&gt;

&lt;p&gt;We are inferring domain state from imperfect telemetry.&lt;/p&gt;


&lt;h2&gt;
  
  
  9. Building a dishwasher activity detector
&lt;/h2&gt;

&lt;p&gt;Here is a simplified TypeScript example illustrating how appliance activity can be inferred without relying on a proprietary cloud API.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;ApplianceState&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"idle"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"running"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"finish_candidate"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"completed"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"unknown"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;PowerSample&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;watts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;runningThreshold&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;idleThreshold&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;startConfirmationMs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;60_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;finishConfirmationMs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;maxSampleGapMs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ApplianceMonitor&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ApplianceState&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"unknown"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="n"&gt;highSince&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="n"&gt;lowSince&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="n"&gt;lastSample&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"unknown"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;highSince&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lowSince&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastSample&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sample&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;PowerSample&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ApplianceState&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;watts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timestamp&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sample&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;watts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
      &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
      &lt;span class="n"&gt;watts&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
      &lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastSample&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
        &lt;span class="n"&gt;timestamp&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastSample&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastSample&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
      &lt;span class="n"&gt;timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastSample&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;maxSampleGapMs&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastSample&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;switch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"unknown"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"idle"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"completed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;watts&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;runningThreshold&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;highSince&lt;/span&gt; &lt;span class="o"&gt;??=&lt;/span&gt; &lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

          &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;highSince&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt;
            &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;startConfirmationMs&lt;/span&gt;
          &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"running"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lowSince&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;highSince&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"running"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;watts&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;idleThreshold&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lowSince&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"finish_candidate"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

      &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"finish_candidate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;watts&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;idleThreshold&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"running"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lowSince&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lowSince&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
          &lt;span class="n"&gt;timestamp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lowSince&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt;
            &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;finishConfirmationMs&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"completed"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;highSince&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
          &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lowSince&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="nf"&gt;checkAvailability&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ApplianceState&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastSample&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
      &lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lastSample&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;maxSampleGapMs&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The threshold values in this example are illustrative.&lt;/p&gt;

&lt;p&gt;They must be calibrated using actual consumption data from the appliance, including its different programs and drying phases.&lt;/p&gt;

&lt;p&gt;A production implementation should also persist relevant state across controller restarts, deduplicate notifications, explicitly acknowledge completed cycles, and distinguish between confirmed appliance states and inferred states.&lt;/p&gt;

&lt;p&gt;The important design decision is that the automation observes the appliance without interfering with its power supply.&lt;/p&gt;


&lt;h2&gt;
  
  
  10. Communicating with Shelly through local RPC
&lt;/h2&gt;

&lt;p&gt;Compatible Shelly Gen2 and later devices expose a documented JSON-RPC interface.&lt;/p&gt;

&lt;p&gt;For example, retrieving device status can be as simple as:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST \
  http://shelly-kitchen.local/rpc \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "id": 1,
    "method": "Shelly.GetStatus"
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;For a compatible switching component with power measurement, a more specific request might look like this:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl \
  &lt;span class="s2"&gt;"http://shelly-kitchen.local/rpc/Switch.GetStatus?id=0"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The response may include information about the output state, active power, voltage, current, and accumulated energy, depending on the device.&lt;/p&gt;

&lt;p&gt;An illustrative response:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"output"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"apower"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;124.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"voltage"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;231.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"current"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.54&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"aenergy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"total"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;821.4&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This allows developers to create applications that communicate with physical infrastructure without routing every request through an external cloud service.&lt;/p&gt;

&lt;p&gt;The examples assume an accessible local device without authentication enabled. A secured installation must implement the authentication mechanisms supported by the device.&lt;/p&gt;

&lt;p&gt;For event-driven systems, MQTT or persistent communication channels are generally preferable to continuously polling dozens of devices.&lt;/p&gt;

&lt;p&gt;Further technical documentation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://shelly-api-docs.shelly.cloud/gen2/General/RPCProtocol/" rel="noopener noreferrer"&gt;Shelly RPC Protocol&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shelly-api-docs.shelly.cloud/gen2/ComponentsAndServices/Mqtt/" rel="noopener noreferrer"&gt;Shelly MQTT Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shelly-api-docs.shelly.cloud/gen2/Scripts/Overview/" rel="noopener noreferrer"&gt;Shelly Scripting Documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  11. MQTT as the communication backbone
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://mqtt.org/" rel="noopener noreferrer"&gt;MQTT&lt;/a&gt; is particularly useful when multiple subsystems need to exchange small amounts of information.&lt;/p&gt;

&lt;p&gt;Instead of every component communicating directly with every other component, a message broker provides an intermediary.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                   MQTT Broker
                        |
     +----------+-------+-------+----------+
     |          |               |          |
   Shelly    Sensors       Automation   Energy
   devices                 controller   manager
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;A structured topic hierarchy can help keep the architecture maintainable.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;home/kitchen/lighting/worktop/state
home/kitchen/lighting/ambient/state

home/kitchen/appliances/dishwasher/power
home/kitchen/appliances/dishwasher/state
home/kitchen/appliances/dishwasher/availability

home/kitchen/environment/humidity
home/kitchen/environment/temperature
home/kitchen/environment/voc

home/kitchen/safety/leak/state
home/kitchen/occupancy/state

home/kitchen/events
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;These are application-level topics, not the native topic structure of every Shelly device.&lt;/p&gt;

&lt;p&gt;An adapter can translate manufacturer-specific MQTT messages into this common namespace.&lt;/p&gt;

&lt;p&gt;A normalized event might look like this:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"schemaVersion"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"eventId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"evt-dw-20261204-001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"kitchen.dishwasher"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"appliance.cycle.completed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"timestamp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-12-04T18:42:00Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"confidence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"inferred"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"state"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"completed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"detectionMethod"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"power-monitoring"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The crucial advantage is decoupling.&lt;/p&gt;

&lt;p&gt;The dishwasher integration does not need to know whether the kitchen uses KNX lighting, Shelly LED controllers, Zigbee sensors, or another technology.&lt;/p&gt;

&lt;p&gt;It simply publishes an event.&lt;/p&gt;

&lt;p&gt;Other components decide what to do with that information.&lt;/p&gt;
&lt;h3&gt;
  
  
  Important MQTT design rules
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Separate commands, states, and events.&lt;/li&gt;
&lt;li&gt;Use access controls for individual clients.&lt;/li&gt;
&lt;li&gt;Monitor device availability.&lt;/li&gt;
&lt;li&gt;Include timestamps in important messages.&lt;/li&gt;
&lt;li&gt;Treat outdated measurements as invalid.&lt;/li&gt;
&lt;li&gt;Make consumers tolerant of duplicate messages.&lt;/li&gt;
&lt;li&gt;Use retained messages selectively for state.&lt;/li&gt;
&lt;li&gt;Do not retain transient action commands.&lt;/li&gt;
&lt;li&gt;Use idempotent handlers wherever possible.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MQTT is a useful communication layer, but it is not automatically a reliable or secure system simply because the broker is running.&lt;/p&gt;


&lt;h2&gt;
  
  
  12. Home Assistant as an orchestration layer
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.home-assistant.io/" rel="noopener noreferrer"&gt;Home Assistant&lt;/a&gt; is an attractive platform for coordinating heterogeneous kitchen technologies.&lt;/p&gt;

&lt;p&gt;It provides integrations for numerous manufacturers and protocols, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.home-assistant.io/integrations/shelly/" rel="noopener noreferrer"&gt;Shelly&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.home-assistant.io/integrations/knx/" rel="noopener noreferrer"&gt;KNX&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.home-assistant.io/integrations/home_connect/" rel="noopener noreferrer"&gt;Home Connect&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.home-assistant.io/integrations/matter/" rel="noopener noreferrer"&gt;Matter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.home-assistant.io/integrations/mqtt/" rel="noopener noreferrer"&gt;MQTT&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Its primary architectural value is that it can translate multiple device ecosystems into a shared entity and automation model.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                 Home Assistant
                        |
      +---------+-------+--------+---------+
      |         |       |        |         |
    Shelly     KNX    Matter    MQTT    Appliance
    Local                              cloud APIs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;A kitchen automation should ideally reference a functional entity rather than the manufacturer's specific implementation.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="s"&gt;light.kitchen_worktop&lt;/span&gt;
&lt;span class="s"&gt;light.kitchen_ambient&lt;/span&gt;
&lt;span class="s"&gt;sensor.kitchen_dishwasher_power&lt;/span&gt;
&lt;span class="s"&gt;sensor.kitchen_dishwasher_state&lt;/span&gt;
&lt;span class="s"&gt;binary_sensor.kitchen_occupied&lt;/span&gt;
&lt;span class="s"&gt;binary_sensor.kitchen_water_leak&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If an LED controller is replaced, the rest of the automation should not need to know which hardware now controls the worktop lighting.&lt;/p&gt;

&lt;p&gt;This is a form of hardware abstraction.&lt;/p&gt;
&lt;h3&gt;
  
  
  Example: Context-aware worktop lighting
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;alias&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Kitchen - Automatic worktop lighting&lt;/span&gt;

&lt;span class="na"&gt;triggers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;trigger&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;state&lt;/span&gt;
    &lt;span class="na"&gt;entity_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;binary_sensor.kitchen_occupied&lt;/span&gt;
    &lt;span class="na"&gt;to&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"on"&lt;/span&gt;

  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;trigger&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;numeric_state&lt;/span&gt;
    &lt;span class="na"&gt;entity_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sensor.kitchen_illuminance&lt;/span&gt;
    &lt;span class="na"&gt;below&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt;

&lt;span class="na"&gt;conditions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;state&lt;/span&gt;
    &lt;span class="na"&gt;entity_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;binary_sensor.kitchen_occupied&lt;/span&gt;
    &lt;span class="na"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"on"&lt;/span&gt;

  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;numeric_state&lt;/span&gt;
    &lt;span class="na"&gt;entity_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sensor.kitchen_illuminance&lt;/span&gt;
    &lt;span class="na"&gt;below&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt;

  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;condition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;state&lt;/span&gt;
    &lt;span class="na"&gt;entity_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;input_boolean.kitchen_manual_override&lt;/span&gt;
    &lt;span class="na"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"off"&lt;/span&gt;

&lt;span class="na"&gt;actions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;light.turn_on&lt;/span&gt;
    &lt;span class="na"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;entity_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;light.kitchen_worktop&lt;/span&gt;
    &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;brightness_pct&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;85&lt;/span&gt;
      &lt;span class="na"&gt;transition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;restart&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This automation considers occupancy, ambient brightness, and manual override.&lt;/p&gt;

&lt;p&gt;A complementary automation can return the system to its preferred state after the room becomes unoccupied.&lt;/p&gt;

&lt;p&gt;However, turning lighting off automatically deserves particular attention.&lt;/p&gt;

&lt;p&gt;A person preparing food may remain relatively stationary while chopping vegetables or reading a recipe.&lt;/p&gt;

&lt;p&gt;A simple motion detector might incorrectly assume that the kitchen is empty.&lt;/p&gt;

&lt;p&gt;Presence detection, appropriate timeouts, manual control, and careful sensor positioning are therefore essential.&lt;/p&gt;

&lt;p&gt;The official Home Assistant project is available on GitHub:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/home-assistant" rel="noopener noreferrer"&gt;
        home-assistant
      &lt;/a&gt; / &lt;a href="https://github.com/home-assistant/core" rel="noopener noreferrer"&gt;
        core
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      🏡 Open source home automation that puts local control and privacy first.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="rst"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Home Assistant &lt;a href="https://www.home-assistant.io/join-chat/" rel="nofollow noopener noreferrer"&gt;&lt;img alt="Chat Status" src="https://camo.githubusercontent.com/4728d94ced5deadbad89cea65b3db1bae4b00c7b2e7e2d0f26ccc531c3567dec/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3333303934343233383931303936333731342e737667"&gt;
&lt;/a&gt;
&lt;/h1&gt;

&lt;/div&gt;

&lt;p&gt;Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.&lt;/p&gt;

&lt;p&gt;Check out &lt;a href="https://home-assistant.io" rel="nofollow noopener noreferrer"&gt;home-assistant.io&lt;/a&gt; for &lt;a href="https://demo.home-assistant.io" rel="nofollow noopener noreferrer"&gt;a
demo&lt;/a&gt;, &lt;a href="https://home-assistant.io/getting-started/" rel="nofollow noopener noreferrer"&gt;installation instructions&lt;/a&gt;,
&lt;a href="https://home-assistant.io/getting-started/automation/" rel="nofollow noopener noreferrer"&gt;tutorials&lt;/a&gt; and &lt;a href="https://home-assistant.io/docs/" rel="nofollow noopener noreferrer"&gt;documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://demo.home-assistant.io" rel="nofollow noopener noreferrer"&gt;&lt;img alt="screenshot-states" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fhome-assistant%2Fcore%2Fdev%2F.github%2Fassets%2Fscreenshot-states.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Featured integrations&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://home-assistant.io/integrations/" rel="nofollow noopener noreferrer"&gt;&lt;img alt="screenshot-integrations" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fhome-assistant%2Fcore%2Fdev%2F.github%2Fassets%2Fscreenshot-integrations.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the &lt;a href="https://contributors.home-assistant.io/architecture/big-picture/" rel="nofollow noopener noreferrer"&gt;section on architecture&lt;/a&gt; and the &lt;a href="https://contributors.home-assistant.io/core/integrations/create/" rel="nofollow noopener noreferrer"&gt;section on creating your own
components&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you run into issues while using Home Assistant or during development
of a component, check the &lt;a href="https://home-assistant.io/help/" rel="nofollow noopener noreferrer"&gt;Home Assistant help section&lt;/a&gt; of our website for further help and information.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.openhomefoundation.org/" rel="nofollow noopener noreferrer"&gt;&lt;img alt="Home Assistant - A project from the Open Home Foundation" src="https://camo.githubusercontent.com/66ffb3964de41e9c93924c4681adb3d9fb1bf103baf6dd95ce250e79bd5947e8/68747470733a2f2f7777772e6f70656e686f6d65666f756e646174696f6e2e6f72672f6261646765732f686f6d652d617373697374616e742e706e67"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/home-assistant/core" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;





&lt;h2&gt;
  
  
  13. KNX: Why professional building automation still matters
&lt;/h2&gt;

&lt;p&gt;Developers sometimes assume that Wi-Fi-based IoT devices are the natural replacement for traditional building automation.&lt;/p&gt;

&lt;p&gt;That is not necessarily the case.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.knx.org/" rel="noopener noreferrer"&gt;KNX&lt;/a&gt; remains highly relevant in professional European building projects because it addresses a different set of requirements.&lt;/p&gt;

&lt;p&gt;A wired KNX installation can provide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Distributed device intelligence&lt;/li&gt;
&lt;li&gt;Standardized communication&lt;/li&gt;
&lt;li&gt;Long-term infrastructure planning&lt;/li&gt;
&lt;li&gt;Physical user interfaces&lt;/li&gt;
&lt;li&gt;Independence from consumer cloud platforms&lt;/li&gt;
&lt;li&gt;Multi-manufacturer interoperability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In a new building or extensive renovation, it may be sensible to establish KNX as the foundational building automation infrastructure.&lt;/p&gt;

&lt;p&gt;Shelly, MQTT, and Home Assistant can then complement it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;KNX building infrastructure
          |
          v
KNX/IP interface
          |
          v
Home Assistant
          |
          +---- MQTT
          +---- Shelly
          +---- Matter
          +---- Appliance APIs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The building infrastructure continues performing its configured basic functions even when the higher-level orchestration system is unavailable, provided those functions have been designed accordingly.&lt;/p&gt;

&lt;p&gt;This is especially important when planning a system that will remain in use for many years.&lt;/p&gt;

&lt;p&gt;My preferred architecture for a high-quality new installation is not necessarily KNX &lt;em&gt;or&lt;/em&gt; Shelly.&lt;/p&gt;

&lt;p&gt;It is often KNX &lt;em&gt;and&lt;/em&gt; Shelly, with clearly defined responsibilities.&lt;/p&gt;

&lt;p&gt;Our approach to &lt;a href="https://kuechen-klas.de/smart-home/" rel="noopener noreferrer"&gt;integrated smart home planning with Shelly, KNX, and DALI&lt;/a&gt; follows this principle, coordinating the building infrastructure with furniture, lighting, and the intended user experience.&lt;/p&gt;




&lt;h2&gt;
  
  
  14. DALI and the importance of dedicated lighting protocols
&lt;/h2&gt;

&lt;p&gt;Lighting is one of the most valuable areas of kitchen automation.&lt;/p&gt;

&lt;p&gt;It is also one of the areas where consumer smart home approaches can become unnecessarily complicated.&lt;/p&gt;

&lt;p&gt;A properly planned kitchen may contain several independent lighting zones:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;General ceiling lighting&lt;/li&gt;
&lt;li&gt;Worktop lighting&lt;/li&gt;
&lt;li&gt;Island lighting&lt;/li&gt;
&lt;li&gt;Pendant luminaires&lt;/li&gt;
&lt;li&gt;Cabinet lighting&lt;/li&gt;
&lt;li&gt;Display lighting&lt;/li&gt;
&lt;li&gt;Plinth lighting&lt;/li&gt;
&lt;li&gt;Indirect architectural lighting&lt;/li&gt;
&lt;li&gt;Dining-area lighting&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each has different requirements for intensity, color temperature, glare control, and switching behavior.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.dali-alliance.org/" rel="noopener noreferrer"&gt;DALI&lt;/a&gt; provides a dedicated standardized protocol for digital lighting control.&lt;/p&gt;

&lt;p&gt;Instead of treating every luminaire as an independent consumer IoT product, lighting can be organized into professionally designed groups and scenes.&lt;/p&gt;

&lt;p&gt;DALI can also be integrated with KNX or other automation systems using appropriate gateways and controllers.&lt;/p&gt;

&lt;p&gt;A practical lighting model might look like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lighting zone&lt;/th&gt;
&lt;th&gt;Preparation&lt;/th&gt;
&lt;th&gt;Dinner&lt;/th&gt;
&lt;th&gt;Night&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ceiling lighting&lt;/td&gt;
&lt;td&gt;80%&lt;/td&gt;
&lt;td&gt;25%&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Worktop lighting&lt;/td&gt;
&lt;td&gt;100%&lt;/td&gt;
&lt;td&gt;15%&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Island lighting&lt;/td&gt;
&lt;td&gt;75%&lt;/td&gt;
&lt;td&gt;40%&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cabinet lighting&lt;/td&gt;
&lt;td&gt;40%&lt;/td&gt;
&lt;td&gt;60%&lt;/td&gt;
&lt;td&gt;Off&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plinth lighting&lt;/td&gt;
&lt;td&gt;15%&lt;/td&gt;
&lt;td&gt;25%&lt;/td&gt;
&lt;td&gt;5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are illustrative scene values, not universal lighting design recommendations.&lt;/p&gt;

&lt;p&gt;The appropriate values depend on the room, luminaires, surface materials, measured illuminance, visual comfort, and user requirements.&lt;/p&gt;

&lt;p&gt;Systems such as &lt;a href="https://casambi.com/" rel="noopener noreferrer"&gt;Casambi&lt;/a&gt; can also be interesting where compatible luminaires and wireless lighting controls are appropriate.&lt;/p&gt;

&lt;p&gt;One common misconception is that Wi-Fi, Zigbee, Matter, DALI, PWM, and 0–10 V are directly competing technologies.&lt;/p&gt;

&lt;p&gt;They actually address different layers of the lighting control architecture.&lt;/p&gt;

&lt;p&gt;We have discussed these distinctions in more detail in our technical guide to &lt;a href="https://kuechen-klas.de/ratgeber/kuechenbeleuchtung-smart-steuern-dali-zigbee/" rel="noopener noreferrer"&gt;smart kitchen lighting and control protocols&lt;/a&gt; (German).&lt;/p&gt;

&lt;p&gt;The physical lighting concept is equally important. Our guide to &lt;a href="https://kuechen-klas.de/ratgeber/kuechenlicht-ideen/" rel="noopener noreferrer"&gt;architectural kitchen lighting design&lt;/a&gt; explains how lighting zones, illuminance, color temperature, and visual comfort influence the design.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The objective is not maximum connectivity. The objective is good lighting that can be controlled reliably.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  15. Practical kitchen automation scenarios
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Cooking mode
&lt;/h3&gt;

&lt;p&gt;When cooking activity is detected through an appliance API, local measurement, or an explicit user command, the room can enter a preparation scene.&lt;/p&gt;

&lt;p&gt;Possible actions include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Activating worktop lighting&lt;/li&gt;
&lt;li&gt;Adjusting general lighting&lt;/li&gt;
&lt;li&gt;Suspending decorative lighting animations&lt;/li&gt;
&lt;li&gt;Preventing inappropriate automatic lighting shutdown&lt;/li&gt;
&lt;li&gt;Displaying relevant appliance information&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The extractor hood should continue using its native control system unless an approved external interface is available.&lt;/p&gt;

&lt;h3&gt;
  
  
  Dinner mode
&lt;/h3&gt;

&lt;p&gt;A physical button or a centralized scene controller can transform the room after cooking.&lt;/p&gt;

&lt;p&gt;Worktop lighting becomes less prominent. Pendant luminaires and indirect lighting create a different atmosphere. Decorative lighting becomes more important.&lt;/p&gt;

&lt;p&gt;The automation supports the spatial design rather than competing with it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Night mode
&lt;/h3&gt;

&lt;p&gt;When someone enters the kitchen at night, low-level plinth or indirect lighting provides orientation without illuminating the entire room.&lt;/p&gt;

&lt;p&gt;This is a comparatively simple automation, but it may provide more everyday value than remotely controlling an oven.&lt;/p&gt;

&lt;h3&gt;
  
  
  Dishwasher completion
&lt;/h3&gt;

&lt;p&gt;A dishwasher completion event can trigger:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A local dashboard update&lt;/li&gt;
&lt;li&gt;A mobile notification&lt;/li&gt;
&lt;li&gt;A subtle visual indicator&lt;/li&gt;
&lt;li&gt;An optional announcement through an audio system&lt;/li&gt;
&lt;li&gt;Energy consumption logging&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The event can originate from the manufacturer's API or from external power monitoring.&lt;/p&gt;

&lt;p&gt;The rest of the automation does not need to know the difference.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cabinet lighting
&lt;/h3&gt;

&lt;p&gt;A door sensor can activate lighting inside a pantry, appliance garage, or display cabinet.&lt;/p&gt;

&lt;p&gt;Local automation is particularly suitable here because response time matters.&lt;/p&gt;

&lt;p&gt;A cabinet light should not need to communicate with a remote server before illuminating its contents.&lt;/p&gt;

&lt;h3&gt;
  
  
  Refrigerator door monitoring
&lt;/h3&gt;

&lt;p&gt;An external contact sensor can identify a refrigerator door that remains open for an unusual period.&lt;/p&gt;

&lt;p&gt;The notification should incorporate a delay and avoid repeated alerts.&lt;/p&gt;

&lt;p&gt;Where supported, the appliance's native door monitoring function may already solve this problem better.&lt;/p&gt;

&lt;h3&gt;
  
  
  Water leak detection
&lt;/h3&gt;

&lt;p&gt;Sensors can be placed in appropriate locations near:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The sink cabinet&lt;/li&gt;
&lt;li&gt;The dishwasher&lt;/li&gt;
&lt;li&gt;Water filtration systems&lt;/li&gt;
&lt;li&gt;Refrigerators with water connections&lt;/li&gt;
&lt;li&gt;Integrated drinking water systems&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A detected leak can trigger a local alert and notify the homeowner.&lt;/p&gt;

&lt;p&gt;An appropriately specified automatic water shutoff system may also be integrated.&lt;/p&gt;

&lt;p&gt;However, water protection must not depend entirely on Home Assistant, Wi-Fi availability, or cloud notifications.&lt;/p&gt;

&lt;p&gt;A professionally installed independent protection system is preferable for critical functions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Accessibility and independent living
&lt;/h3&gt;

&lt;p&gt;Kitchen automation can also support people with limited mobility, impaired vision, or changing physical abilities.&lt;/p&gt;

&lt;p&gt;Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Accessible physical scene controls&lt;/li&gt;
&lt;li&gt;Automatic orientation lighting&lt;/li&gt;
&lt;li&gt;Appliance status notifications&lt;/li&gt;
&lt;li&gt;Voice control as an additional interface&lt;/li&gt;
&lt;li&gt;Reduced need to reach individual switches&lt;/li&gt;
&lt;li&gt;Water leakage notifications&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, accessibility must begin with the physical room rather than with software.&lt;/p&gt;

&lt;p&gt;Our guide to &lt;a href="https://kuechen-klas.de/ratgeber/kueche-komfortabel-altersgerecht-planen/" rel="noopener noreferrer"&gt;accessible and comfortable kitchen design&lt;/a&gt; explores this relationship between ergonomics, furniture, and assistive technology.&lt;/p&gt;




&lt;h2&gt;
  
  
  16. Energy management: Where kitchen automation becomes economically interesting
&lt;/h2&gt;

&lt;p&gt;The modern European kitchen contains several significant electrical consumers.&lt;/p&gt;

&lt;p&gt;Induction cooktops, ovens, dishwashers, steam ovens, and other appliances can contribute substantially to simultaneous household power demand.&lt;/p&gt;

&lt;p&gt;When a building also contains a photovoltaic system, battery storage, an electric vehicle, and a heat pump, energy coordination becomes particularly interesting.&lt;/p&gt;

&lt;p&gt;A kitchen energy management system could evaluate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Current photovoltaic production&lt;/li&gt;
&lt;li&gt;Household electricity consumption&lt;/li&gt;
&lt;li&gt;Available battery capacity&lt;/li&gt;
&lt;li&gt;Grid import and export&lt;/li&gt;
&lt;li&gt;Dynamic electricity tariffs&lt;/li&gt;
&lt;li&gt;Appliance operating states&lt;/li&gt;
&lt;li&gt;User-defined completion deadlines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Consider an abstract appliance scheduling policy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;EnergyContext&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;surplusWatts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;electricityPricePerKWh&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;applianceReady&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;remoteStartAllowed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;mayScheduleDishwasher&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;EnergyContext&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;applianceReady&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;remoteStartAllowed&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;surplusWatts&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;1500&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
    &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;electricityPricePerKWh&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mf"&gt;0.25&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This function represents a scheduling decision, not a direct appliance command.&lt;/p&gt;

&lt;p&gt;The actual implementation must use an officially supported appliance interface, comply with manufacturer restrictions, and respect the user's intentions.&lt;/p&gt;

&lt;p&gt;A more complete scheduling system would also consider forecast generation, expected program duration, electricity price changes, battery objectives, and appliance deadlines.&lt;/p&gt;

&lt;p&gt;Crucially, energy optimization should not mean switching off appliances whenever household consumption increases.&lt;/p&gt;

&lt;p&gt;A refrigerator, oven, dishwasher, or induction cooktop is not an ordinary controllable resistive load.&lt;/p&gt;

&lt;p&gt;Its internal control electronics, safety mechanisms, and intended operating conditions must be respected.&lt;/p&gt;




&lt;h2&gt;
  
  
  17. Matter: A promising development, not a universal solution
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://csa-iot.org/all-solutions/matter/" rel="noopener noreferrer"&gt;Matter&lt;/a&gt; is intended to improve interoperability between smart home ecosystems.&lt;/p&gt;

&lt;p&gt;Its device categories include various household appliances, alongside lighting, sensors, and other connected products.&lt;/p&gt;

&lt;p&gt;This is encouraging.&lt;/p&gt;

&lt;p&gt;A common application-layer protocol could reduce the amount of manufacturer-specific integration work required.&lt;/p&gt;

&lt;p&gt;But several limitations remain.&lt;/p&gt;

&lt;p&gt;A standardized device category does not guarantee that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every existing appliance supports Matter.&lt;/li&gt;
&lt;li&gt;Every new appliance implements the same optional features.&lt;/li&gt;
&lt;li&gt;Every smart home controller supports the relevant device type.&lt;/li&gt;
&lt;li&gt;Every proprietary function becomes accessible.&lt;/li&gt;
&lt;li&gt;A firmware update will introduce compatibility.&lt;/li&gt;
&lt;li&gt;Manufacturer-specific safety restrictions disappear.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A Matter-enabled oven may expose a useful standardized subset of its capabilities while retaining advanced cooking functions within the manufacturer's ecosystem.&lt;/p&gt;

&lt;p&gt;This is a perfectly reasonable architecture.&lt;/p&gt;

&lt;p&gt;The danger is expecting Matter to eliminate every integration challenge.&lt;/p&gt;

&lt;p&gt;Matter can reduce fragmentation at the communication and application layers.&lt;/p&gt;

&lt;p&gt;It cannot eliminate all differences in appliance behavior, physical capabilities, commercial policies, or regulatory requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  A practical example from the German kitchen industry: Naber LIC 2.0
&lt;/h3&gt;

&lt;p&gt;An interesting example of this transition is Naber's LUMICA LIC 2.0 lighting platform.&lt;/p&gt;

&lt;p&gt;The platform illustrates the growing demand for kitchen-specific lighting systems that can participate in broader building automation environments.&lt;/p&gt;

&lt;p&gt;According to the manufacturer information discussed in our guide, LIC 2.0 supports integration technologies including Zigbee, Matter, and DALI.&lt;/p&gt;

&lt;p&gt;Rather than introducing yet another isolated lighting application, this approach has the potential to connect furniture-integrated lighting with established smart home and professional lighting architectures.&lt;/p&gt;

&lt;p&gt;We have examined the system from a kitchen planning perspective in our article on &lt;a href="https://kuechen-klas.de/ratgeber/naber-lic-2-0-kuechenbeleuchtung/" rel="noopener noreferrer"&gt;Naber LIC 2.0 and interoperable kitchen lighting&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This is precisely the direction the European kitchen industry needs to explore further: specialized products with meaningful integration capabilities.&lt;/p&gt;




&lt;h2&gt;
  
  
  18. The EU Data Act and the future of appliance interoperability
&lt;/h2&gt;

&lt;p&gt;An important development for the European market is the &lt;a href="https://digital-strategy.ec.europa.eu/en/policies/data-act" rel="noopener noreferrer"&gt;EU Data Act&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The regulation became applicable on September 12, 2025, and establishes rights concerning access to and sharing of data generated by connected products and related services.&lt;/p&gt;

&lt;p&gt;A specific design-related obligation applies to relevant products placed on the market after September 12, 2026.&lt;/p&gt;

&lt;p&gt;This is particularly interesting for independent developers, system integrators, and service providers.&lt;/p&gt;

&lt;p&gt;Access to appliance-generated data could enable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Independent energy dashboards&lt;/li&gt;
&lt;li&gt;Predictive maintenance&lt;/li&gt;
&lt;li&gt;Consumption analysis&lt;/li&gt;
&lt;li&gt;Cross-manufacturer reporting&lt;/li&gt;
&lt;li&gt;Innovative after-sales services&lt;/li&gt;
&lt;li&gt;More sophisticated automation strategies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, data access must not be confused with unrestricted device control.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://developer.miele.com/" rel="noopener noreferrer"&gt;Miele developer platform&lt;/a&gt; illustrates this distinction by differentiating between its connected appliance interfaces and Data Act-related data access.&lt;/p&gt;

&lt;p&gt;An appliance may therefore become more transparent without becoming fully controllable.&lt;/p&gt;

&lt;p&gt;From an architectural perspective, this distinction is critical:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Observability and controllability are separate capabilities.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We should design systems that benefit from better data access without assuming that every connected appliance will become an open automation endpoint.&lt;/p&gt;




&lt;h2&gt;
  
  
  19. Designing a vendor-independent kitchen device model
&lt;/h2&gt;

&lt;p&gt;One of the most useful software architecture decisions is to introduce an abstraction layer between manufacturer-specific integrations and room-level automations.&lt;/p&gt;

&lt;p&gt;Rather than building every automation around individual APIs, we can describe a shared device model.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;ApplianceState&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"idle"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"running"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"paused"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"completed"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"fault"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"unknown"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;ReadCapability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"read_state"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"read_energy"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"read_temperature"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"read_remaining_time"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;ControlCapability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"remote_start"&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"remote_stop"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;Capability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;ReadCapability&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;ControlCapability&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;ApplianceSnapshot&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;manufacturer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ApplianceState&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;available&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;capabilities&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Capability&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;powerWatts&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;remainingTimeSeconds&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;observedAt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;confidence&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"reported"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"inferred"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;ApplianceAdapter&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;getSnapshot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ApplianceSnapshot&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;execute&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;capability&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ControlCapability&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;parameters&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Individual adapters can implement this interface for different appliance ecosystems.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HomeConnectAdapter
MieleAdapter
MatterAdapter
PowerMonitoringAdapter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An automation can then evaluate whether the required capability is actually available.&lt;/p&gt;

&lt;p&gt;For example, a power-monitoring adapter may expose energy consumption and inferred operating state but must never claim that it supports remote program control.&lt;/p&gt;

&lt;p&gt;Capability-based design prevents the software from making incorrect assumptions about the underlying hardware.&lt;/p&gt;

&lt;p&gt;It also makes future appliance replacement significantly easier.&lt;/p&gt;




&lt;h2&gt;
  
  
  20. A reference architecture for an intelligent kitchen
&lt;/h2&gt;

&lt;p&gt;The architecture I would propose consists of six layers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+------------------------------------------------+
| 6. User Experience                             |
| Physical buttons, dashboards, notifications    |
+------------------------------------------------+
                        |
+------------------------------------------------+
| 5. Orchestration                               |
| Home Assistant, Node-RED, automation rules     |
+------------------------------------------------+
                        |
+------------------------------------------------+
| 4. Integration and Abstraction                 |
| Device adapters, normalized events, MQTT       |
+------------------------------------------------+
                        |
+------------------------------------------------+
| 3. Communication                               |
| Ethernet, Wi-Fi, KNX, Matter, Zigbee, APIs      |
+------------------------------------------------+
                        |
+------------------------------------------------+
| 2. Distributed Local Control                   |
| Shelly, KNX actuators, DALI controllers         |
+------------------------------------------------+
                        |
+------------------------------------------------+
| 1. Physical Infrastructure                      |
| Lighting, appliances, sensors, wiring, safety  |
+------------------------------------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each layer should have a clearly defined responsibility.&lt;/p&gt;

&lt;p&gt;The physical infrastructure must not depend on the dashboard.&lt;/p&gt;

&lt;p&gt;Local control must not depend on cloud availability.&lt;/p&gt;

&lt;p&gt;The orchestration layer must understand that different devices expose different capabilities.&lt;/p&gt;

&lt;p&gt;The user experience must remain usable even when individual integrations become unavailable.&lt;/p&gt;

&lt;p&gt;The architecture should degrade gracefully.&lt;/p&gt;




&lt;h2&gt;
  
  
  21. Why I would not use n8n as the primary kitchen controller
&lt;/h2&gt;

&lt;p&gt;Tools such as &lt;a href="https://n8n.io/" rel="noopener noreferrer"&gt;n8n&lt;/a&gt; are extremely powerful for connecting applications, automating business processes, and orchestrating external services.&lt;/p&gt;

&lt;p&gt;They can also play a useful role in kitchen-related workflows.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generating weekly energy reports&lt;/li&gt;
&lt;li&gt;Creating maintenance reminders&lt;/li&gt;
&lt;li&gt;Sending structured service notifications&lt;/li&gt;
&lt;li&gt;Exporting consumption data&lt;/li&gt;
&lt;li&gt;Integrating external analytics&lt;/li&gt;
&lt;li&gt;Managing documentation&lt;/li&gt;
&lt;li&gt;Connecting automation events with business systems&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, I would avoid placing n8n in the critical path of basic room control.&lt;/p&gt;

&lt;p&gt;A physical light switch should not trigger a workflow that makes several network requests before finally activating a luminaire.&lt;/p&gt;

&lt;p&gt;Different automation tools belong in different architectural layers.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Appropriate role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Shelly Script&lt;/td&gt;
&lt;td&gt;Small device-local automation tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KNX&lt;/td&gt;
&lt;td&gt;Distributed building automation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DALI&lt;/td&gt;
&lt;td&gt;Dedicated lighting control&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Home Assistant&lt;/td&gt;
&lt;td&gt;Cross-system smart home orchestration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MQTT&lt;/td&gt;
&lt;td&gt;Event and telemetry communication&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Node-RED&lt;/td&gt;
&lt;td&gt;Complex event-driven automation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;n8n&lt;/td&gt;
&lt;td&gt;External workflows, reporting and business integration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://nodered.org/" rel="noopener noreferrer"&gt;Node-RED&lt;/a&gt; can be particularly useful for event processing and more complex automation logic, while n8n is better positioned for integrations beyond the immediate room control layer.&lt;/p&gt;

&lt;p&gt;Choosing the right tool for the right responsibility is more important than selecting a single platform capable of doing everything.&lt;/p&gt;




&lt;h2&gt;
  
  
  22. Electrical safety: Software cannot replace engineering
&lt;/h2&gt;

&lt;p&gt;This is where kitchen automation differs fundamentally from experimenting with a development board on a desk.&lt;/p&gt;

&lt;p&gt;A kitchen contains electrical equipment operating at potentially dangerous voltages and significant power levels.&lt;/p&gt;

&lt;p&gt;In Germany, fixed electrical installations are subject to applicable regulations and technical standards, including the requirements of &lt;a href="https://www.gesetze-im-internet.de/nav/__13.html" rel="noopener noreferrer"&gt;Section 13 of the Niederspannungsanschlussverordnung (NAV)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Relevant electrical work must be carried out by appropriately qualified and authorized professionals.&lt;/p&gt;

&lt;p&gt;A developer should never assume that a relay can safely control a particular load merely because its advertised nominal current appears sufficient.&lt;/p&gt;

&lt;p&gt;The selection of switching and monitoring equipment must consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Continuous current&lt;/li&gt;
&lt;li&gt;Inrush current&lt;/li&gt;
&lt;li&gt;Load characteristics&lt;/li&gt;
&lt;li&gt;Thermal conditions&lt;/li&gt;
&lt;li&gt;Installation enclosure&lt;/li&gt;
&lt;li&gt;Protective devices&lt;/li&gt;
&lt;li&gt;Conductor sizing&lt;/li&gt;
&lt;li&gt;Manufacturer requirements&lt;/li&gt;
&lt;li&gt;Applicable electrical standards&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An induction cooktop must not be treated like an ordinary smart plug load.&lt;/p&gt;

&lt;p&gt;Likewise, an oven's heating system, an extractor hood motor, and a refrigerator compressor should not be arbitrarily switched using generic automation rules.&lt;/p&gt;

&lt;p&gt;For appliance integration, the preferred order is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Native manufacturer functionality.&lt;/li&gt;
&lt;li&gt;Documented and supported control interfaces.&lt;/li&gt;
&lt;li&gt;Non-invasive monitoring.&lt;/li&gt;
&lt;li&gt;Professionally designed external control where appropriate.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Never bypass an appliance's native safety mechanisms.&lt;/p&gt;

&lt;p&gt;The purpose of automation is to improve the kitchen, not to introduce additional hazards.&lt;/p&gt;




&lt;h2&gt;
  
  
  23. Cybersecurity and network architecture
&lt;/h2&gt;

&lt;p&gt;A professionally designed kitchen automation system requires a deliberate network architecture.&lt;/p&gt;

&lt;p&gt;Simply connecting every device to the same wireless network is not sufficient.&lt;/p&gt;

&lt;p&gt;A reasonable network segmentation concept might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Trusted user network
         |
      Firewall
         |
         +---- Automation services
         |       Home Assistant
         |       MQTT broker
         |
         +---- IoT device network
         |       Shelly
         |       Connected appliances
         |       Gateways
         |
         +---- Guest network
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The exact network design must accommodate the discovery and communication requirements of the selected protocols.&lt;/p&gt;

&lt;p&gt;Matter, for example, introduces requirements involving IPv6 and multicast discovery that need to be considered when designing segmented networks.&lt;/p&gt;

&lt;p&gt;Important measures include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Restricting unnecessary internet exposure.&lt;/li&gt;
&lt;li&gt;Avoiding direct port forwarding to IoT devices.&lt;/li&gt;
&lt;li&gt;Using VPN access or appropriately secured remote access.&lt;/li&gt;
&lt;li&gt;Applying firmware updates.&lt;/li&gt;
&lt;li&gt;Maintaining unique credentials.&lt;/li&gt;
&lt;li&gt;Restricting MQTT topic access.&lt;/li&gt;
&lt;li&gt;Protecting manufacturer API tokens.&lt;/li&gt;
&lt;li&gt;Documenting firewall exceptions.&lt;/li&gt;
&lt;li&gt;Backing up configuration and automation data.&lt;/li&gt;
&lt;li&gt;Monitoring unavailable devices.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Privacy is also relevant.&lt;/p&gt;

&lt;p&gt;Kitchen occupancy data, appliance operating times, and energy consumption can reveal daily routines.&lt;/p&gt;

&lt;p&gt;Collecting this information should have a clearly defined purpose and reasonable retention limits.&lt;/p&gt;

&lt;p&gt;A smart kitchen should not become an unnecessarily detailed surveillance system.&lt;/p&gt;




&lt;h2&gt;
  
  
  24. Planning automation before the furniture is installed
&lt;/h2&gt;

&lt;p&gt;One of the greatest advantages of combining kitchen design with automation planning is the ability to prepare the infrastructure before installation.&lt;/p&gt;

&lt;p&gt;Retrofitting is possible, but it often introduces compromises.&lt;/p&gt;

&lt;p&gt;During the initial planning phase, consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lighting circuits and lighting zones&lt;/li&gt;
&lt;li&gt;Suitable cable routes&lt;/li&gt;
&lt;li&gt;Serviceable power supplies&lt;/li&gt;
&lt;li&gt;Accessible installation spaces&lt;/li&gt;
&lt;li&gt;Network coverage&lt;/li&gt;
&lt;li&gt;Ethernet connections where useful&lt;/li&gt;
&lt;li&gt;Sensor placement&lt;/li&gt;
&lt;li&gt;DIN rail space&lt;/li&gt;
&lt;li&gt;Cabinet ventilation&lt;/li&gt;
&lt;li&gt;Maintenance access&lt;/li&gt;
&lt;li&gt;Physical control locations&lt;/li&gt;
&lt;li&gt;Future expansion possibilities&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Metal surfaces, refrigerators, ovens, and appliance housings can affect wireless communication.&lt;/p&gt;

&lt;p&gt;A device hidden behind an appliance may be difficult to access for maintenance or replacement.&lt;/p&gt;

&lt;p&gt;LED drivers placed inside inaccessible furniture can turn a simple component failure into a complicated repair.&lt;/p&gt;

&lt;p&gt;These are not problems that can be solved through better software alone.&lt;/p&gt;

&lt;p&gt;This is where electrical planning becomes an essential part of software architecture.&lt;/p&gt;

&lt;p&gt;Our practical guide to &lt;a href="https://kuechen-klas.de/ratgeber/elektroplan-kueche/" rel="noopener noreferrer"&gt;electrical infrastructure planning for kitchens&lt;/a&gt; explores these physical dependencies from the perspective of professional kitchen planning.&lt;/p&gt;

&lt;p&gt;Similarly, professional &lt;a href="https://kuechen-klas.de/kuechenstudio/lichtdesign/" rel="noopener noreferrer"&gt;architectural lighting design&lt;/a&gt; determines the lighting zones, control interfaces, luminaires, and visual atmosphere before the automation layer is implemented.&lt;/p&gt;

&lt;p&gt;The technical architecture begins with the physical architecture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Software, furniture, lighting, electrical installations, and spatial design must be planned together.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  25. Three practical implementation strategies
&lt;/h2&gt;

&lt;p&gt;Not every kitchen needs the same level of automation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Strategy A: Retrofit an existing kitchen
&lt;/h3&gt;

&lt;p&gt;Use suitable local retrofit devices, sensors, and non-invasive energy monitoring.&lt;/p&gt;

&lt;p&gt;A possible technology stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shelly&lt;/li&gt;
&lt;li&gt;Home Assistant&lt;/li&gt;
&lt;li&gt;MQTT&lt;/li&gt;
&lt;li&gt;Compatible wireless sensors&lt;/li&gt;
&lt;li&gt;Existing physical controls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The objective is to improve functionality without unnecessary reconstruction.&lt;/p&gt;

&lt;h3&gt;
  
  
  Strategy B: Plan a kitchen renovation with automation
&lt;/h3&gt;

&lt;p&gt;Introduce dedicated lighting circuits, accessible controllers, network infrastructure, and centralized orchestration.&lt;/p&gt;

&lt;p&gt;A possible technology stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shelly Pro&lt;/li&gt;
&lt;li&gt;Suitable LED controllers&lt;/li&gt;
&lt;li&gt;DALI where appropriate&lt;/li&gt;
&lt;li&gt;Home Assistant&lt;/li&gt;
&lt;li&gt;MQTT&lt;/li&gt;
&lt;li&gt;Official appliance integrations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This allows more consistent integration between lighting, furniture, and household appliances.&lt;/p&gt;

&lt;h3&gt;
  
  
  Strategy C: Integrate a premium kitchen into a new smart building
&lt;/h3&gt;

&lt;p&gt;Make the kitchen part of a professional building automation architecture.&lt;/p&gt;

&lt;p&gt;A possible technology stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;KNX&lt;/li&gt;
&lt;li&gt;DALI&lt;/li&gt;
&lt;li&gt;KNX/IP&lt;/li&gt;
&lt;li&gt;Shelly for complementary functions&lt;/li&gt;
&lt;li&gt;Home Assistant&lt;/li&gt;
&lt;li&gt;Matter&lt;/li&gt;
&lt;li&gt;Official appliance APIs&lt;/li&gt;
&lt;li&gt;Building energy management&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this scenario, the kitchen becomes a domain within the larger building rather than an independent collection of smart products.&lt;/p&gt;




&lt;h2&gt;
  
  
  26. Testing failure scenarios before commissioning
&lt;/h2&gt;

&lt;p&gt;An automation should not be considered finished simply because it works once.&lt;/p&gt;

&lt;p&gt;Before handing a system over to its users, test how it behaves when individual components fail.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test scenario&lt;/th&gt;
&lt;th&gt;Expected behavior&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Internet connection unavailable&lt;/td&gt;
&lt;td&gt;Essential local functionality remains operational&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Home Assistant unavailable&lt;/td&gt;
&lt;td&gt;Physical controls continue working&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manufacturer API unavailable&lt;/td&gt;
&lt;td&gt;Appliance operates normally through native controls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MQTT broker unavailable&lt;/td&gt;
&lt;td&gt;Dependent automations degrade safely&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sensor battery depleted&lt;/td&gt;
&lt;td&gt;Sensor becomes unavailable rather than reporting false certainty&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Controller restarted&lt;/td&gt;
&lt;td&gt;State is reconciled without unintended actions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Duplicate MQTT event&lt;/td&gt;
&lt;td&gt;No duplicate harmful or unwanted action&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Device reports outdated data&lt;/td&gt;
&lt;td&gt;Automation ignores the stale information&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User activates manual override&lt;/td&gt;
&lt;td&gt;Automatic behavior respects the override&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Electricity supply restored&lt;/td&gt;
&lt;td&gt;Devices resume an appropriate configured state&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Appliance replaced&lt;/td&gt;
&lt;td&gt;Integration changes are isolated wherever possible&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is essentially resilience testing for a cyber-physical system.&lt;/p&gt;

&lt;p&gt;And it is just as important as testing the successful execution path.&lt;/p&gt;




&lt;h2&gt;
  
  
  27. Documentation is part of the product
&lt;/h2&gt;

&lt;p&gt;A professionally installed automated kitchen should not depend entirely on the person who originally configured it.&lt;/p&gt;

&lt;p&gt;The homeowner or a future service provider should receive appropriate documentation.&lt;/p&gt;

&lt;p&gt;This may include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Electrical and lighting plans&lt;/li&gt;
&lt;li&gt;Device inventory&lt;/li&gt;
&lt;li&gt;Network topology&lt;/li&gt;
&lt;li&gt;Automation descriptions&lt;/li&gt;
&lt;li&gt;Configuration backups&lt;/li&gt;
&lt;li&gt;Sensor locations&lt;/li&gt;
&lt;li&gt;Manual operating instructions&lt;/li&gt;
&lt;li&gt;Firmware information&lt;/li&gt;
&lt;li&gt;Integration dependencies&lt;/li&gt;
&lt;li&gt;Recovery procedures&lt;/li&gt;
&lt;li&gt;Maintenance responsibilities&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Credentials and sensitive information must be transferred through appropriate secure mechanisms.&lt;/p&gt;

&lt;p&gt;Where possible, configuration should be version-controlled.&lt;/p&gt;

&lt;p&gt;A repository structure might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kitchen-automation/
├── README.md
├── architecture/
│   ├── topology.md
│   ├── network.md
│   └── device-inventory.yaml
├── home-assistant/
│   ├── automations/
│   ├── scripts/
│   └── scenes/
├── mqtt/
│   ├── topic-schema.md
│   └── access-control.example
├── adapters/
│   ├── home-connect/
│   ├── miele/
│   └── power-monitoring/
├── shelly/
│   └── scripts/
├── tests/
│   └── failure-scenarios.md
└── commissioning/
    ├── checklist.md
    └── maintenance.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The principle is similar to maintaining infrastructure as code.&lt;/p&gt;

&lt;p&gt;The physical kitchen is the long-lived infrastructure. Its automation configuration should remain understandable, maintainable, and replaceable.&lt;/p&gt;




&lt;h2&gt;
  
  
  28. Sometimes the best automation is no automation
&lt;/h2&gt;

&lt;p&gt;Not every technically possible automation is useful.&lt;/p&gt;

&lt;p&gt;An oven that can be started from a smartphone may sound impressive.&lt;/p&gt;

&lt;p&gt;But a well-positioned physical control can be faster, more intuitive, and more reliable.&lt;/p&gt;

&lt;p&gt;A refrigerator does not necessarily require an AI-powered interface.&lt;/p&gt;

&lt;p&gt;A light switch should remain a light switch.&lt;/p&gt;

&lt;p&gt;Automation becomes valuable when it removes repetitive decisions, improves comfort, supports accessibility, reduces unnecessary energy consumption, or provides meaningful information.&lt;/p&gt;

&lt;p&gt;It becomes counterproductive when it introduces complexity without a corresponding benefit.&lt;/p&gt;

&lt;p&gt;A genuinely intelligent kitchen should require less attention from its users, not more.&lt;/p&gt;

&lt;p&gt;The goal is not to demonstrate how many devices can be connected.&lt;/p&gt;

&lt;p&gt;The goal is to create an environment that works naturally.&lt;/p&gt;




&lt;h2&gt;
  
  
  29. Conclusion: The future of the smart kitchen is architectural
&lt;/h2&gt;

&lt;p&gt;The biggest challenge in kitchen automation is not the lack of connected devices.&lt;/p&gt;

&lt;p&gt;We already have an enormous selection of connected appliances, sensors, actuators, gateways, and automation platforms.&lt;/p&gt;

&lt;p&gt;The challenge is making them work together without creating fragile dependencies.&lt;/p&gt;

&lt;p&gt;Manufacturer ecosystems will continue to play an important role. They provide useful specialized functionality, appliance-specific intelligence, and essential safety mechanisms.&lt;/p&gt;

&lt;p&gt;But the intelligence of an entire room cannot be defined exclusively by the manufacturer of its dishwasher, oven, or refrigerator.&lt;/p&gt;

&lt;p&gt;We need to think in layers.&lt;/p&gt;

&lt;p&gt;We need to distinguish between monitoring and control, between local infrastructure and cloud services, between convenience functions and safety functions.&lt;/p&gt;

&lt;p&gt;We need documented interfaces, capability-based abstractions, event-driven communication, and graceful degradation.&lt;/p&gt;

&lt;p&gt;Most importantly, we need to bring software developers, electrical professionals, lighting designers, interior designers, and kitchen planners together earlier in the design process.&lt;/p&gt;

&lt;p&gt;At &lt;a href="https://kuechen-klas.de/" rel="noopener noreferrer"&gt;Klas Küchen®&lt;/a&gt;, this is the perspective I want to bring to kitchen design: thinking about the kitchen, the room, the lighting, and the technology as one coordinated environment.&lt;/p&gt;

&lt;p&gt;Because a kitchen is not smart simply because every appliance has an IP address.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A kitchen becomes intelligent when its individual systems work together to serve the people using the room — even when the internet is down.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Technical documentation and further reading
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Manufacturer APIs
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.home-connect.com/" rel="noopener noreferrer"&gt;Home Connect Developer Program&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://api-docs.home-connect.com/" rel="noopener noreferrer"&gt;Home Connect API Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.miele.com/" rel="noopener noreferrer"&gt;Miele Developer Portal&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Local automation and communication
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://shelly-api-docs.shelly.cloud/gen2/General/RPCProtocol/" rel="noopener noreferrer"&gt;Shelly Gen2+ RPC Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shelly-api-docs.shelly.cloud/gen2/ComponentsAndServices/Mqtt/" rel="noopener noreferrer"&gt;Shelly MQTT Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://shelly-api-docs.shelly.cloud/gen2/Scripts/Overview/" rel="noopener noreferrer"&gt;Shelly Scripting Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mqtt.org/" rel="noopener noreferrer"&gt;MQTT Protocol&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mosquitto.org/" rel="noopener noreferrer"&gt;Eclipse Mosquitto MQTT Broker&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.home-assistant.io/" rel="noopener noreferrer"&gt;Home Assistant&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nodered.org/" rel="noopener noreferrer"&gt;Node-RED&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://n8n.io/" rel="noopener noreferrer"&gt;n8n&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Building automation and interoperability
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.knx.org/" rel="noopener noreferrer"&gt;KNX Association&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.dali-alliance.org/" rel="noopener noreferrer"&gt;DALI Alliance&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://csa-iot.org/all-solutions/matter/" rel="noopener noreferrer"&gt;Connectivity Standards Alliance — Matter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://casambi.com/" rel="noopener noreferrer"&gt;Casambi&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  European regulatory framework
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://digital-strategy.ec.europa.eu/en/policies/data-act" rel="noopener noreferrer"&gt;European Commission — EU Data Act&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.gesetze-im-internet.de/nav/__13.html" rel="noopener noreferrer"&gt;Germany — Section 13 NAV&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Daniel Klas is a German master carpenter, Shelly Gold Installer, and founder of Klas Küchen®, an independent kitchen and interior design atelier. His work combines kitchen planning, architectural lighting, interior design, building automation, and digital technologies.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://kuechen-klas.de/" rel="noopener noreferrer"&gt;Klas Küchen®&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Technical planning and integration: &lt;a href="https://kuechen-klas.de/smart-home/" rel="noopener noreferrer"&gt;Smart Home, Shelly, KNX and DALI&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Let's discuss
&lt;/h2&gt;

&lt;p&gt;What does your kitchen automation stack look like?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Are you relying on manufacturer APIs or local monitoring?&lt;/li&gt;
&lt;li&gt;Do you use Shelly, KNX, Zigbee, Matter, or a combination?&lt;/li&gt;
&lt;li&gt;How do you handle appliance cloud dependencies?&lt;/li&gt;
&lt;li&gt;Have you implemented your own appliance adapters?&lt;/li&gt;
&lt;li&gt;How do you ensure your home continues working when your automation server is unavailable?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I would be particularly interested in hearing from developers and system integrators working on vendor-independent appliance integration and local-first automation.&lt;/p&gt;

&lt;p&gt;Because the future of the smart kitchen should not belong to a single manufacturer.&lt;/p&gt;

&lt;p&gt;It should belong to the people using it.&lt;/p&gt;

</description>
      <category>iot</category>
      <category>homeassistant</category>
      <category>automation</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Why I Built a Description Language for Business Logic</title>
      <dc:creator>Daniel Klas</dc:creator>
      <pubDate>Mon, 30 Mar 2026 07:58:17 +0000</pubDate>
      <link>https://dev.to/dkfuh/why-i-built-a-description-language-for-business-logic-3g43</link>
      <guid>https://dev.to/dkfuh/why-i-built-a-description-language-for-business-logic-3g43</guid>
      <description>&lt;h1&gt;
  
  
  Why I Built a Description Language for Business Logic
&lt;/h1&gt;

&lt;p&gt;Most companies don't fail because of bad strategy.&lt;/p&gt;

&lt;p&gt;They fail because their operational logic is invisible.&lt;/p&gt;

&lt;p&gt;It lives in Slack threads, onboarding notes, CRM fields, spreadsheets, automation tools — and in the heads of people who eventually leave. Nobody planned it that way. It just happened, one workaround at a time.&lt;/p&gt;

&lt;p&gt;I'm a &lt;a href="https://kuechen-klas.de" rel="noopener noreferrer"&gt;master carpenter and kitchen studio&lt;/a&gt; owner in Germany. I'm also — apparently — someone who builds programming language tooling in his spare time.&lt;/p&gt;

&lt;p&gt;This is the story of why I built OrgScript.&lt;/p&gt;




&lt;h2&gt;
  
  
  The problem I kept running into
&lt;/h2&gt;

&lt;p&gt;Running a small business means your processes are everywhere and nowhere at the same time.&lt;/p&gt;

&lt;p&gt;A lead comes in. Someone knows what to do with it. But that knowledge isn't written down anywhere reliable. It's in the last WhatsApp message someone sent, or in the mental model of the person who's been doing it for three years.&lt;/p&gt;

&lt;p&gt;When I started automating things — CRM workflows, lead qualification, order processing — I kept hitting the same wall: I couldn't describe &lt;em&gt;what the business actually does&lt;/em&gt; in a way that was precise enough for software but still readable by a non-developer.&lt;/p&gt;

&lt;p&gt;BPMN is too heavy. You need specialized tools just to open the file.&lt;/p&gt;

&lt;p&gt;YAML and JSON are machine-readable but unpleasant to write and impossible to hand to a business owner.&lt;/p&gt;

&lt;p&gt;Natural language documents are readable but too vague for anything automated. &lt;/p&gt;

&lt;p&gt;And AI? It's great at pattern matching, but if you ask it to interpret a process that lives in four different documents and three people's heads, it guesses. Often wrong.&lt;/p&gt;

&lt;p&gt;I wanted something that sat between natural language and executable code. Something you could put in Git, review in a pull request, run a linter on — and still hand to someone without a software background.&lt;/p&gt;

&lt;p&gt;So I built it.&lt;/p&gt;




&lt;h2&gt;
  
  
  What OrgScript looks like
&lt;/h2&gt;

&lt;p&gt;Here's the lead qualification process from my own kitchen business, written in OrgScript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;process CraftBusinessLeadToOrder

  when lead.created

  if lead.source = "referral" then
    assign lead.priority = "high"
    assign lead.sales_path = "premium"
    notify sales with "Handle referral lead first"

  else if lead.source = "aroundhome" then
    assign lead.priority = "low"
    assign lead.sales_path = "standard"

  if lead.project_type != "kitchen" and lead.project_type != "interior" then
    transition lead.status to "disqualified"
    notify sales with "Outside target project type"
    stop

  if lead.estimated_value &amp;lt; 10000 then
    transition lead.status to "disqualified"
    notify sales with "Below minimum project value"
    stop

  transition lead.status to "qualified"
  assign lead.owner = "sales"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A non-programmer can read this. A parser can interpret it deterministically. An AI can analyze it without guessing at intent.&lt;/p&gt;

&lt;p&gt;That's the goal.&lt;/p&gt;




&lt;h2&gt;
  
  
  The core principle
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Describe work. Don't implement software.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;OrgScript is not a programming language. There are no loops, no functions, no arbitrary expressions. It's a description language for operational logic — specifically for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;process&lt;/code&gt; — step-by-step workflows with triggers, decisions, and actions&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;stateflow&lt;/code&gt; — legal states and allowed transitions&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;rule&lt;/code&gt; — constraints that must always hold&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;role&lt;/code&gt; — permission boundaries&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;policy&lt;/code&gt; — time-based or context-based behavior&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;event&lt;/code&gt; — named triggers with reactions&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;metric&lt;/code&gt; — tracked business measures&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The syntax is intentionally non-Turing-complete. If you find yourself wanting to add a loop, that's a signal the logic belongs in implementation code, not in OrgScript.&lt;/p&gt;




&lt;h2&gt;
  
  
  What the tooling does
&lt;/h2&gt;

&lt;p&gt;OrgScript ships with a CLI that covers the full lifecycle of a &lt;code&gt;.orgs&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Validate structure and semantics&lt;/span&gt;
orgscript validate ./examples/lead-qualification.orgs

&lt;span class="c"&gt;# Lint for common authoring mistakes&lt;/span&gt;
orgscript lint ./examples/lead-qualification.orgs

&lt;span class="c"&gt;# Check validate + lint + format in one pass&lt;/span&gt;
orgscript check ./examples/lead-qualification.orgs

&lt;span class="c"&gt;# Export to Mermaid diagram&lt;/span&gt;
orgscript &lt;span class="kd"&gt;export&lt;/span&gt; mermaid ./examples/lead-qualification.orgs

&lt;span class="c"&gt;# Export to Markdown summary&lt;/span&gt;
orgscript &lt;span class="kd"&gt;export&lt;/span&gt; markdown ./examples/lead-qualification.orgs

&lt;span class="c"&gt;# Export structured JSON for AI/tooling consumption&lt;/span&gt;
orgscript &lt;span class="kd"&gt;export&lt;/span&gt; context ./examples/lead-qualification.orgs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;export context&lt;/code&gt; command is particularly useful for AI pipelines — it produces a structured JSON payload that includes the canonical model, annotation metadata, and explicit flags like &lt;code&gt;commentsIncluded: false&lt;/code&gt; so downstream consumers know exactly what they're working with.&lt;/p&gt;




&lt;h2&gt;
  
  
  Comments and annotations
&lt;/h2&gt;

&lt;p&gt;OrgScript supports two documentation layers that stay cleanly separated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# This is a human-only comment. It never appears in exports or AI context.
@owner "sales_ops"
@status "active"
process LeadQualification

  when lead.created
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;#&lt;/code&gt; comments are for people. They're excluded from every machine-facing output by design.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;@key "value"&lt;/code&gt; annotations are allowlisted structured metadata. They appear in &lt;code&gt;export context&lt;/code&gt; output and can optionally be rendered in Markdown and HTML exports with &lt;code&gt;--with-annotations&lt;/code&gt;. The current allowlist is &lt;code&gt;@note&lt;/code&gt;, &lt;code&gt;@owner&lt;/code&gt;, &lt;code&gt;@todo&lt;/code&gt;, &lt;code&gt;@source&lt;/code&gt;, &lt;code&gt;@status&lt;/code&gt;, and &lt;code&gt;@review&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This separation is deliberate: AI systems should never have to decide whether a comment is authoritative business logic or a developer note. In OrgScript, comments are never authoritative.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where it stands
&lt;/h2&gt;

&lt;p&gt;OrgScript v0.9.x is the first distribution-ready state. The toolchain includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lexer, parser, AST&lt;/li&gt;
&lt;li&gt;Semantic validation&lt;/li&gt;
&lt;li&gt;Linter with configurable rules&lt;/li&gt;
&lt;li&gt;Formatter (idempotent, canonical)&lt;/li&gt;
&lt;li&gt;CLI with JSON output and exit codes&lt;/li&gt;
&lt;li&gt;Exports: JSON, Markdown, Mermaid, HTML, AI context&lt;/li&gt;
&lt;li&gt;CI via GitHub Actions&lt;/li&gt;
&lt;li&gt;VS Code extension with syntax highlighting and snippets&lt;/li&gt;
&lt;li&gt;Available on npm as &lt;code&gt;@dkfuh/orgscript&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g @dkfuh/orgscript
orgscript check ./your-process.orgs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  What I'm trying to figure out
&lt;/h2&gt;

&lt;p&gt;OrgScript exists to answer one question:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How do you describe how an organization actually works — in a way that humans and machines understand the same thing?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I think this matters more as AI becomes part of operational workflows. If the business logic that AI is supposed to act on lives in scattered documents and people's heads, the AI will guess. Sometimes correctly. Often not.&lt;/p&gt;

&lt;p&gt;A shared, text-first, version-controlled description layer changes that.&lt;/p&gt;

&lt;p&gt;I'm curious whether this resonates with others who've hit the same wall — in operations, in automation, in AI integration, or just in trying to document how a business actually works.&lt;/p&gt;

&lt;p&gt;The repo is at &lt;a href="https://github.com/DKFuH/OrgScript" rel="noopener noreferrer"&gt;github.com/DKFuH/OrgScript&lt;/a&gt;. Feedback welcome, especially on the language design and real-world use cases I haven't thought of.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;OrgScript is open source under Apache-2.0.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>programming</category>
      <category>businesslogic</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
