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]
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] logging_level – Logging level that should be applied to these

events (default: INFO).

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]
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] logging_level – Logging level that should be applied to these

events (default: INFO).