platypush.message.event.google

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

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

__init__(device_id, device_model_id=None, *args, **kwargs)[source]

Params: target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict]

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

Event triggered when a device receives an on/off command

__init__(on, *args, **kwargs)[source]

Params: target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict]