Documentation

Group Extension

The group extension allows grouping of triggers so that actions only fire when all triggers in a group are active.

Overview

The group extension allows grouping of components such as triggers. Groups are a way to collect like items together.

This extension does not take an extension-level config and is focused on interfaces.

Trigger Interface

Provides a trigger that checks if all triggers in a group are active in order to fire.

Option Type Required Description
key String Yes Unique slug id for the component
triggers List Yes List of trigger keys that make up the group.
name String No Friendly display name of component. Useful for UI.
actions List No List of registered actions to fire.

Config Example

Here is a config of a complete group trigger.

mudpi.config.json
{
  "trigger": [
    {
      "key": "group_trigger_1",
      "name": "Example Group Trigger",
      "interface": "group",
      "triggers": ["example_trigger_1", "example_trigger_2"],
      "actions": [".example_toggle.turn_on"]
    }
  ]
}