Interface representing an automation

interface ESPAutomationInterface {
    actions: ESPAutomationAction[];
    automationId: string;
    automationName: string;
    enabled: boolean;
    eventOperator: ESPAutomationEventOperator;
    events: (
        | ESPAutomationEvent
        | ESPWeatherEvent
        | ESPWeatherCondition
        | ESPDaylightEvent
    )[];
    eventType: ESPAutomationEventType;
    location?: ESPGeoCoordinates;
    metadata?: any;
    nodeId?: string;
    region?: string;
    retrigger?: boolean;
}

Implemented by

Properties

automationId: string
automationName: string
enabled: boolean
events: (
    | ESPAutomationEvent
    | ESPWeatherEvent
    | ESPWeatherCondition
    | ESPDaylightEvent
)[]
metadata?: any
nodeId?: string
region?: string
retrigger?: boolean