protocol Starter : NodeWithOutputBase protocol for all Starters in the automation graph.
-
The unique entity for the
HomeDeviceorStructureentity associated with theStarter.entity will be nil if the implementing class’s init(entityExpression: …) was used and the entityExpression is not a
Constantto aHomeObject.Declaration
Swift
var entity: (any HomeObject)? { get } -
An expression that selects an entity or a list of entities associated with the
Starterat runtime.When entityExpression represents a single entity, entityExpression will be Constant(value: AnyAutomationEntity). Otherwise, entityExpression is an
Expressioncapable of resolving to any number of entities.Declaration
Swift
var entityExpression: any Expression { get } -
The identifier for the
DeviceTypeassociated with theStarter, if the entity is a device.deviceType will be nil if entity is nil or not a device, such as a
StructureorRoom.Declaration
Swift
var deviceType: (any DeviceType.Type)? { get } -
The string-based identifier for the
DeviceType. If deviceType isUnknownDeviceTypeit will refer to the original deviceTypeID provided.deviceTypeID will be nil if entity is nil or not a device, such as a
StructureorRoom.Declaration
Swift
var deviceTypeID: String? { get }