Creates a new instance of ESPAutomation.
The configuration object for the automation
The list of actions to be performed when the automation is triggered.
The unique identifier of the automation.
The name of the automation.
Indicates whether the automation is currently enabled.
The operator used to combine multiple events (AND/OR).
The list of events that trigger this automation.
The type of events that trigger this automation.
Optional
locationThe geographical coordinates for weather/daylight based automations.
Optional
metadataAdditional metadata associated with the automation.
Optional
nodeThe ID of the node associated with this automation.
Optional
regionThe region for weather/daylight based automations.
Optional
retriggerIndicates whether the automation should be retriggered after completion.
Deletes the automation from the system.
A promise that resolves to the API response after successful deletion.
Updates the enabled status of an existing automation.
The new enabled status for the automation.
A promise that resolves to the API response after successful update.
Updates the retrigger option of an existing automation.
A boolean indicating whether the automation can be triggered more than once while the conditions are met.
A promise that resolves to the API response after successful update.
Updates an existing automation with new details.
The updated details for the automation.
A promise that resolves to the API response after successful update.
Updates the actions of an existing automation.
An array of action objects defining the actions to be performed when the automation is triggered.
A promise that resolves to the API response after successful update.
Updates the events of an existing automation.
An array of event objects defining the conditions that trigger the automation.
A promise that resolves to the API response after successful update.
Updates the location of an existing automation.
The new location coordinates for the automation.
A promise that resolves to the API response after successful update.
Updates the name of an existing automation.
The new name for the automation.
A promise that resolves to the API response after successful update.
Class representing an automation in the ESP RainMaker system. This class implements the ESPAutomationInterface.