flyte / mqtt-io

Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring.
MIT License
470 stars 159 forks source link

Add tsl2561 light sensor #393

Closed mschlenstedt closed 3 months ago

mschlenstedt commented 3 months ago

Add TSL2561 Light sensor, based on library from Adafruit. Config example:


sensor_modules:
- chip_addr: 0x39
  module: tsl2561
  name: tsl2561_1
  gain: 1
  integration_time: 13.7
sensor_inputs:
- digits: 4
  interval: 30
  module: tsl2561_1
  name: illuminance_tsl2561
  type: lux
  retain: true