sensor.ltr559
Platypush documentation
sensor.ltr559
- class platypush.backend.sensor.ltr559.SensorLtr559Backend(light=True, proximity=True, **kwargs)[source]
Bases:
SensorBackend
Backend to poll an LTR559 light/proximity sensor
Requires:
ltr559
(pip install ltr559
)
Triggers:
platypush.message.event.sensor.SensorDataChangeEvent
if the measurements of a sensor have changedplatypush.message.event.sensor.SensorDataAboveThresholdEvent
if the measurements of a sensor havegone above a configured threshold
platypush.message.event.sensor.SensorDataBelowThresholdEvent
if the measurements of a sensor havegone below a configured threshold