TSL2561

Driver for tsl2561 devices.

class mauzr.hardware.tsl2561.Driver(core, cfgbase='tsl2561', **kwargs)

Bases: mauzr.hardware.driver.DelayedPollingDriver

Driver for tsl2561 devices.

Parameters:
  • core (object) – Core instance.
  • cfgbase (str) – Configuration entry for this unit.
  • kwargs (dict) – Keyword arguments that will be merged into the config.

Configuration:

  • base (str) - Base for topics.
  • address (int) - I2C address of the device.
  • interval (int) - Output frequency in milliseconds.

Output topics:

  • /illuminance (!f) - Current illuminance in lumen.