Logic Node for Gira X1 — v4.5.1 — by w00rks UAB
Scene Cycler replaces complex multi-node scene logic with a single configurable node. It handles scene cycling via button press, direct scene activation via timed triggers, auto-off on timer expiry, LED status mapping, and per-scene active status tracking. Supports lighting scenes, climate modes, and any multi-state KNX actuator control.
| Name | Type | Default | Description |
|---|---|---|---|
| Number of Scenes | Integer (1–8) | 4 | How many scene slots the node manages. Controls the number of Dynamic Scene/LED inputs and Scene Active outputs. |
| Off Scene Value | Integer (0–255) | 5 | The 8-bit value sent to the actuator when the node is in the "off" state. Must differ from all scene values. |
| Enable On/Off Gate | Boolean | True | When enabled, the On/Off input controls the node: it can block cycling (when false) and turn the scene off. When disabled, the On/Off input is ignored entirely. |
| Browse & Confirm | Boolean | False | Enables browse-then-confirm mode. See Browse & Confirm Mode below. |
| Activation Delay | Integer (0–30) | 0 | Seconds to wait before activating a cycled scene. 0 = immediate. See Activation Delay below. |
| Number of Cycling Scenes | Integer (0–8) | 0 | How many of the first N scenes participate in button cycling. 0 = all scenes cycle (default). Scenes beyond this number are direct-only. See Direct-Only Scenes below. |
| Scene Value 1–N | Integer (0–255) | 1, 2, 3… | The 8-bit value sent to the actuator for each scene slot. |
| LED Value 1–N | Integer (0–255) | 0 | The 8-bit LED bitmask sent to the button LED for each scene slot. |
| LED Blink Value 1–N | Integer (0–255) | 0 | Native blink telegram value per scene. When non-zero and Activation Delay is active, this value is sent to the LED output once, letting the Tastsensor flash natively instead of the node toggling the LED manually. 0 = use manual blink (default, backward compatible). See Activation Delay below. |
| Scene Overlay 1–N | Boolean | False | Per-scene overlay control. When enabled, the Direct Scene input never interrupts active use. While the room is off, it arms the scene (LED preview, lights stay off). While the room is on, it passively tracks (no visible change). When the user turns off, the overlay re-arms automatically. See Scene Overlay below. |
| Name | Type | Default | Description |
|---|---|---|---|
| Cycle Trigger | Boolean (1-bit) | False | Connect to a button. Each rising edge advances to the next scene in sequence, wrapping around after the last cycling scene. When Number of Cycling Scenes is set, only the first N scenes are cycled. |
| On/Off | Boolean (1-bit) | True | Gate input. When the gate is enabled (Enable On/Off Gate = True): falling edge turns off, rising edge re-enables cycling (or confirms scene in Browse & Confirm mode). Defaults to True so cycling works immediately without a connection. |
| Direct Scene 1–N | Boolean (1-bit) | False | Connect to timers or triggers. A rising edge immediately activates the corresponding scene. A falling edge triggers auto-off (only if the scene was previously activated via this input). |
| Scene Readback | Integer (8-bit) | 0 | Bus sync input. Connect the same data point as Scene Output (as a DatapointEvent) to restore state after X1 restart. When "Keep value" is enabled on the data point, the runtime sends the last scene value on startup, allowing the node to sync LED, Is On, and Scene Active outputs. Does not write back to Scene Output (no feedback loop). See After Reboot below. |
| Name | Type | Description |
|---|---|---|
| Scene Output | Integer (8-bit) | The active scene value. Connect to the actuator's scene input group address. |
| LED Status | Integer (8-bit) | The LED bitmask for the current scene. Connect to the button's LED status group address. |
| Is On | Boolean (1-bit) | True when any scene is active (current scene ≠ Off Scene Value). Useful for general on/off status display. |
| Scene Active 1–N | Boolean (1-bit) | Per-scene active indicator. True for the currently active scene, false for all others. Useful for status displays, visualization panels, or triggering other logic. |
When multiple inputs change in the same execution cycle, the node processes them in strict priority order. The first matching priority handles the event and exits.
When Browse & Confirm is enabled, the Cycle Trigger becomes a browse control:
When Activation Delay is set to a value greater than 0, scene changes triggered by the Cycle Trigger are delayed by the specified number of seconds.
When Number of Cycling Scenes is set to a value greater than 0, only the first N scenes participate in button cycling. Scenes at positions beyond N are "direct-only" — they can only be activated via their corresponding Direct Scene input (e.g. from a timer) and are never reached by the Cycle Trigger.
| Parameter | Value |
|---|---|
| Number of Scenes | 5 |
| Number of Cycling Scenes | 4 |
| Scene Values | 1 (Welcome), 2 (Cozy), 3 (Clean), 4 (Work), 5 (Night) |
| Off Scene Value | 6 |
The button cycles through scenes 1–4 only. Scene 5 (Night) is activated by a timer via Direct Scene 5, and auto-off turns the lights off when the timer expires. The next button press after night mode ends restarts from Scene 1.
When Scene Overlay is enabled for a scene, the corresponding Direct Scene input acts as a transparent overlay — it never interrupts active use:
| Room State | Direct Scene Rising Edge | What Happens |
|---|---|---|
| Off | Arms the scene | LED preview shown, lights stay off. The next button press activates the armed scene instead of cycling. |
| On | Passively tracks | No visible change — user keeps their current scene undisturbed. |
When the user turns off while an overlay is passively tracked (Direct Scene still high), the overlay automatically re-arms. The next button press activates the overlay scene.
When the Direct Scene input falls (timer expired):
| Parameter | Value |
|---|---|
| Number of Scenes | 4 |
| Off Scene Value | 5 |
| Scene Values | 1 (Welcome), 2 (Cozy), 3 (Clean), 4 (Work) |
| Enable On/Off Gate | True |
| Browse & Confirm | True |
| Activation Delay | 3 |
User browses scenes with the cycle button, previews via LED, confirms with On/Off. 3-second delay on live switching prevents accidental changes.
| Parameter | Value |
|---|---|
| Number of Scenes | 3 |
| Off Scene Value | 4 |
| Scene Values | 1 (Cold), 2 (Heat), 3 (Fan) |
| Enable On/Off Gate | False |
| Activation Delay | 5 |
No On/Off gate needed. Cycle button steps through modes. 5-second delay protects the compressor from rapid switching.
On startup, the node initializes to the Off Scene Value internally. To fully restore state after an X1 reboot, connect the Scene Readback input:
On restart, the runtime sends the kept scene value to Scene Readback. The node syncs its internal state and updates LED Status, Is On, and all Scene Active outputs — without writing back to Scene Output (no feedback loop).