sensor.ir

class platypush.message.event.sensor.ir.IrKeyDownEvent(message=None, *args, **kwargs)[source]

Bases: IrSensorEvent

Event triggered when a key on an infrared remote is pressed

__init__(message=None, *args, **kwargs)[source]
Parameters:

message – The received infrared message

class platypush.message.event.sensor.ir.IrKeyUpEvent(message=None, *args, **kwargs)[source]

Bases: IrSensorEvent

Event triggered when a key on an infrared remote is released

__init__(message=None, *args, **kwargs)[source]
Parameters:

message – The received infrared message

class platypush.message.event.sensor.ir.IrSensorEvent(*args, **kwargs)[source]

Bases: Event

Base class for infrared sensor events

__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]