diff --git a/docs/configuration.md b/docs/configuration.md index 557ebca..05a7250 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1702,6 +1702,8 @@ events: * # complete # error # cancelled +# paused +# resumed body: "Your printer status has changed to {event_name}" # The body of the notification. This option accepts Jinja2 templates. # You can use {event_name} to print the current event trigger name. And {event_args} for diff --git a/moonraker/components/notifier.py b/moonraker/components/notifier.py index 1025e7e..3e5ec48 100644 --- a/moonraker/components/notifier.py +++ b/moonraker/components/notifier.py @@ -75,6 +75,16 @@ class Notifier: "job_state:cancelled", config) + self.events["paused"] = NotifierEvent( + "paused", + "job_state:paused", + config) + + self.events["resumed"] = NotifierEvent( + "resumed", + "job_state:resumed", + config) + class NotifierEvent: def __init__(self, identifier: str, event_name: str, config: ConfigHelper):