google#

class platypush.message.event.google.GoogleDeviceEvent(device_id, device_model_id=None, *args, **kwargs)[source]#

Bases: Event

Base class for Google device events, see managing traits and handlers.

__init__(device_id, device_model_id=None, *args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event

class platypush.message.event.google.GoogleDeviceOnOffEvent(on, *args, **kwargs)[source]#

Bases: GoogleDeviceEvent

Event triggered when a device receives an on/off command

__init__(on, *args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event