diff --git a/publisher.py b/publisher.py index 4e7b83a..e207863 100644 --- a/publisher.py +++ b/publisher.py @@ -327,5 +327,10 @@ class Publisher: def create_onoff_sensor(self) -> Payload: """ Create the Payload object for a basic on/off sensor. - :return: a Payload object with a single "onoff" key. """ + :return: a Payload object with a single "on" key. """ return Payload(self, "onoff", keys=["on"]) + + def create_trigger_sensor(self) -> Payload: + """ Create the Payload object for a basic trigger sensor. + :return: a Payload object with a single "triggered" key. """ + return Payload(self, "trigger", keys=["triggered"])