group-broadcast
Description
The group-broadcast block accepts a single input and has no outputs. Every value received on the input is broadcast to all matching blocks found within the selected project scope.
This scope can be either an entire flow tab or a single group. As a result, one input signal can control multiple blocks of the same kind at the same time.
The list of recipients is determined dynamically for each new input value. This means the block takes the current project state into account and sends data only to recipients that are currently available.
A recipient may be unavailable, for example, when it exists in the project but has not been configured correctly, is disconnected, or reports an error that prevents normal operation.
Configuration parameters
| Parameter name | Value |
|---|---|
Name (name) |
The name displayed on the block in the editor. Enter a custom name to help identify the block; an empty field displays group-broadcast. |
Scope (scope_id) |
Required selection of the scope in which recipients should be searched. Select an entire flow tab or a single group from the list retrieved from the project. The list contains scopes with blocks that allow group control and becomes available after the data has loaded. |
Block type (block_type) |
Required selection of the type of target blocks, for example dimmer. The list contains types available for group control within the selected “Scope”. It is disabled if no scope is selected or no types are available. Changing “Scope” requires selecting “Block type” again. |
Input handling
The block allows multiple connections to its only input.
The block supports all input value types because it forwards exactly the same value that it receives.
Each input value is processed as follows:
- recipients are searched within the selected “Scope”,
- only blocks matching the selected “Block type” are chosen,
- recipients that are currently unavailable for control are skipped,
- the same input value is forwarded to all remaining recipients.
Ignored cases:
- recipients that are currently unavailable,
- situations where there is currently no available recipient matching “Block type” within the selected scope.
Block outputs
The block has no outputs.
Block status description
For a correctly initialized block, the status description has the following form:
X type: last_value
where:
Xis the number of currently available recipients included during the last description refresh,typeis the value of “Block type”,last_valueis the last value actually broadcast by the block ornullif nothing has been sent yet.
The recipient count in the description is refreshed after the project starts and after each new input value. Between consecutive input changes, the description may be temporarily outdated if recipient availability changes on its own.
Errors returned by the block
The block can return the following errors:
| Error code | Error description |
|---|---|
Missing scope_id configuration. |
“Scope” was not selected or is empty. |
Missing block_type configuration. |
“Block type” was not selected or is empty. |
Input disconnected. |
No other block is connected to the block input. |
No matching blocks in selected scope. |
No block matching the selected “Block type” was found in the selected scope. |
No connected blocks in selected scope. |
Matching blocks exist in the selected scope, but none of them is currently available. |
Examples
-
If “Scope” points to a group containing three
dimmerblocks, “Block type” is set todimmer, and two of those blocks are currently available, then after initialization the block description will be2 dimmer: null. -
If later the value
75appears on the input, the block will forward it to those two recipients and update the description to2 dimmer: 75.