Skip to main content

ControlMappingRuleWhen

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Transform

Predicate over a control + state. All non-null fields must match (AND semantics).

public class ControlMappingRuleWhen

Inheritance ObjectControlMappingRuleWhen

Properties

ControlType

Exact control type (e.g. "IRoomControllerV2", "Dimmer", "Jalousie").

public string ControlType { get; set; }

Property Value

String

StateName

Optional state name to match (e.g. "tempActual"). When set, the rule fires only for controls whose GenerateDataPointMappingsNodeConfiguration.StatesAttribute contains a state record with this name. When null, the rule fires once per matched control and the suggestion uses GenerateDataPointMappingsNodeConfiguration.DefaultSourceAttributePath.

public string StateName { get; set; }

Property Value

String

CategoryType

Optional category type filter (compared against the category's CategoryType attribute). Requires SourceCategoryCkTypeId to be set on the node configuration.

public string CategoryType { get; set; }

Property Value

String

CategoryNameRegex

Optional case-insensitive regex applied to the category's Name attribute.

public string CategoryNameRegex { get; set; }

Property Value

String

ControlNameRegex

Optional case-insensitive regex applied to the control's Name attribute (e.g. "(?i)(feuchte|humid)" to detect humidity sensors by naming).

public string ControlNameRegex { get; set; }

Property Value

String

Constructors

ControlMappingRuleWhen()

public ControlMappingRuleWhen()