<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[New Adapter] statechart - build state machines graphically]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I'd like to introduce my adapter <strong>ioBroker.statechart</strong> and I'm looking for testers before it goes into the beta repository.</p>
<p dir="auto">Many automations are really <strong>state machines</strong>: the light is <em>on</em> or <em>off</em>, the heating is in <em>comfort</em>, <em>eco</em> or <em>window open</em> mode, the washing machine is <em>running</em> or <em>done</em>. In scripts or Blockly this quickly spreads over many triggers, helper variables and timers. With this adapter you draw such logic as a <strong>statechart</strong> directly in the admin: states as boxes, transitions as arrows with conditions. The adapter executes the chart exactly as it is drawn.</p>
<p dir="auto"><img src="/assets/uploads/files/1794822688936-3b5fc6b3-6f85-4ced-a91e-7baec52570db-image-resized.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" width="3020" height="1261" /></p>
<p dir="auto"><strong>Example alarm system</strong> (available as a template when you create a chart): In <strong>Disarmed</strong>, the chart waits to be armed, or arms itself at 11 pm if no window is open. An open window is reported. <strong>Armed</strong> contains the substates <strong>Exit delay</strong> (30 s), <strong>Monitoring</strong>, <strong>Entry delay</strong> (20 s) and <strong>Alarm</strong>. Door, window or motion for at least 2 s trigger it, motion not during night mode. In the alarm, two parallel regions run: the <strong>Siren</strong> goes silent after 3 minutes, the <strong>Notification</strong> sends a reminder every 10 minutes. Pressing the panic button three times triggers the alarm immediately. Disarming ends everything, whatever substate the chart is in.</p>
<h3>Highlights</h3>
<ul>
<li>Nested and parallel states, <code>entry</code>/<code>during</code>/<code>exit</code> actions, transitions as <code>event[condition]{action}</code></li>
<li>Temporal logic like <code>after(5, min)</code>, <code>every</code>, counting button presses, <code>at("22:30")</code> or <code>at("sunset", -30)</code></li>
<li>Inputs and outputs are any ioBroker states, your own JavaScript functions in function blocks</li>
<li><strong>Live view</strong> with active states and values, history, and a <strong>simulation</strong> with fast-forward, breakpoints and single steps, without switching anything</li>
<li>Checks while editing, templates for new charts, restore former versions, import/export</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1794822982808-27a8e9ce-9435-4bdf-80fa-8bd231378ded-image.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" width="1991" height="1186" /></p>
<p dir="auto"><img src="/assets/uploads/files/1794823020428-8cde5c90-0333-472b-b53b-41285f33e051-image-resized.jpeg" alt="image.jpeg" class="img-markdown  img-fluid" width="2001" height="551" /></p>
<h3>Installation</h3>
<p dir="auto">Until the adapter is in the beta repository, install the released version from npm: Admin → <strong>Adapters</strong> → <strong>Install from custom URL</strong> → tab <strong>Custom</strong> → <code>iobroker.statechart</code> (or on the console: <code>iobroker url iobroker.statechart</code>). Then add an instance of <strong>State Machine</strong>.</p>
<p dir="auto">Requirements: Node.js 22, js-controller ≥ 6.0.11, admin ≥ 7.6.20</p>
<p dir="auto"><strong>Docs:</strong> <a href="https://github.com/IggePop/ioBroker.statechart/blob/main/README.md" rel="nofollow ugc">Getting started</a> · <a href="https://github.com/IggePop/ioBroker.statechart/blob/main/docs/en/reference.md" rel="nofollow ugc">Reference</a></p>
<h3>Feedback</h3>
<p dir="auto">I'm especially interested in whether you can get started without prior knowledge, and which of your automations fit well or badly into a chart. Please report bugs as an <a href="https://github.com/IggePop/ioBroker.statechart/issues" rel="nofollow ugc">issue on GitHub</a>, questions and ideas here in the thread.</p>
<p dir="auto">This is an early version, the format of the charts may still change until 1.0. Please don't rely on it blindly for critical things like an alarm system or heating in winter yet.</p>
<p dir="auto">Looking forward to your feedback!</p>
]]></description><link>https://forum.iobroker.net/topic/85838/new-adapter-statechart-build-state-machines-graphically</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 14:08:00 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/85838.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Nov 2026 09:58:01 GMT</pubDate><ttl>60</ttl></channel></rss>