platypush.message.event.sensor.light

class platypush.message.event.sensor.light.LightOffEvent(*args, **kwargs)[source]

Event triggered when a light off event is detected

__init__(*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.sensor.light.LightOnEvent(*args, **kwargs)[source]

Event triggered when a light on event is detected

__init__(*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]