Skip to main content

DirectControlMappingConfiguration

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Transform

A direct control→entity mapping that bypasses container matching. The source control is found among all entities of the node's SourceControlCkTypeId by optional ControlType plus name (exact DirectControlMappingConfiguration.ControlName or DirectControlMappingConfiguration.ControlNameRegex); the target entity is found among all entities of DirectControlMappingConfiguration.TargetCkTypeId by DirectControlMappingConfiguration.TargetRtId or DirectControlMappingConfiguration.TargetName. One suggestion is emitted per DirectControlMappingConfiguration.States entry the control exposes.

public class DirectControlMappingConfiguration

Inheritance ObjectDirectControlMappingConfiguration

Properties

Id

Stable id, used in the generated DataPointMapping Name (idempotency) + diagnostics. Required.

public string Id { get; set; }

Property Value

String

ControlType

Optional exact ControlType filter on the source control (e.g. "Meter", "Wallbox2", "EnergyManager2").

public string ControlType { get; set; }

Property Value

String

ControlName

Exact source control Name to match (e.g. "Verbrauch EG"). Takes precedence over DirectControlMappingConfiguration.ControlNameRegex.

public string ControlName { get; set; }

Property Value

String

ControlNameRegex

Optional case-insensitive regex on the source control Name (used when DirectControlMappingConfiguration.ControlName is null).

public string ControlNameRegex { get; set; }

Property Value

String

TargetCkTypeId

CkTypeId of the target entity (e.g. "EnergyIQ/Meter", "EnergyIQ/GridConnection", "EnergyIQ/BatteryStorage").

public string TargetCkTypeId { get; set; }

Property Value

String

TargetName

Target entity Name to match. Used when DirectControlMappingConfiguration.TargetRtId is not set.

public string TargetName { get; set; }

Property Value

String

TargetRtId

Explicit target entity RtId. Takes precedence over DirectControlMappingConfiguration.TargetName.

public string TargetRtId { get; set; }

Property Value

String

States

State→attribute pairs. One suggestion per entry whose state the control exposes.

public ICollection<DirectStateMapping> States { get; set; }

Property Value

ICollection<DirectStateMapping>

Constructors

DirectControlMappingConfiguration()

public DirectControlMappingConfiguration()