custom#

class platypush.message.event.custom.CustomEvent(subtype: str, *args, **kwargs)[source]#

Bases: Event

This type can be used to fire custom events upon which the user can implement custom hooks.

__init__(subtype: str, *args, **kwargs)[source]#
Parameters:
  • subtype – This is the only mandatory attribute for this event type. It should be a string that unambiguously identifies a certain type of event (like DISHWASHER_STARTED or SMOKE_DETECTED).

  • args – Extra list arguments for the event.

  • kwargs – Extra key-value arguments for the event.