Dominevo
ReferenceDevice capabilities

automation-control

Automation-control cap.

Automation-control cap. Models HA automation.* entities on DeviceType.Automation. An automation is a trigger+condition+ action rule that can be enabled / disabled and manually fired via the trigger method.

trigger accepts an optional skipCondition flag — when true, the automation's action block runs WITHOUT evaluating its condition block. Pair with DeviceFeature.AutomationSkipCondition to gate the UI checkbox for the manual-trigger dialog.

At a glance

Capabilityautomation-control
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typesautomation
Sourcepackages/types/src/capabilities/automation-control.cap.ts

Methods

Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.

MethodKindRequired of a providerAccess
enablemutationyesadmin
disablemutationyesadmin
triggermutationyesadmin

enable

mutation

Input

No fields besides deviceId.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
haAutomation.enableEnable automationenabled = true

disable

mutation

Input

No fields besides deviceId.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
haAutomation.disableDisable automationenabled = false

trigger

mutation

Input

FieldTypeRequiredDescription
skipConditionbooleannoWhen true, fires the action block while bypassing the automation's condition evaluation. Gated by DeviceFeature.AutomationSkipCondition.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
haAutomation.triggerTrigger automation

Runtime state

The state Dominevo keeps for each device with this capability, readable without calling the provider.

Runtime-state slice — mirrored by the kernel. UI automation tile reads enabled (toggle) + isRunning (spinner) + lastError (badge) directly.

FieldTypeRequiredDescription
enabledbooleanyesWhether the automation is currently enabled. Disabled automations ignore their trigger block — manual trigger still works.
isRunningbooleanyesWhether the automation is currently executing its action block.
lastTriggeredAtnumberyesMs epoch of the last successful run. 0 when never run.
lastErrorstring | nullyesFailure description from the last completed run. Null on success or when never run.
lastChangedAtnumberyesMs epoch when the slice was last updated.