platypush.plugins.gpio.sensor.ltr559

class platypush.plugins.gpio.sensor.ltr559.GpioSensorLtr559Plugin(**kwargs)[source]

Plugin to interact with an LTR559 light and proximity sensor

Requires:

  • ltr559 (pip install ltr559)

__init__(**kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

get_measurement()[source]
Returns

dict. Example:

output = {
    "light": 109.3543,     # Lux
    "proximity": 103       # The higher the value, the nearest the object, within a ~5cm range
}