class NewAutomation
A new automation to be created.
method NewAutomation.__init__
name(str | None): The name of this automation.description(str | None): An optional description of this automation.enabled(bool | None): Whether this automation is enabled. Only enabled automations will trigger.event(Optional[Annotated]): The event that will trigger this automation.action(Optional[Annotated]): The action that will execute when this automation is triggered.
NewAutomation object.
property NewAutomation.scope
The scope in which the triggering event must occur.
Returns:
AutomationScope | None: The scope property value.