Prerequisites

To build this setup, you will need:

Warning!
The code is in LUA and therefore requires the ESP8266 to have the nodemcu firmware.

Wiring

[Waiting for TSL2561 sensor under Fritzing]

Code

Github

Principle

The principle is as follows:

  1. The ESP creates an MQTT client with a unique id;
  2. It connects to the MQTT broker;
  3. On each value change of the TSL2561 sensor, the MQTT client publishes the data on a specific topic;
  4. The MQTT broker receives the data and publishes it for each client that has subscribed to this topic.

Jeedom

You must first install the free MQTT plugin in Jeedom.

Once your ESP8266 publishes on the MQTT broker, the Jeedom plugin will automatically add the TSL2561 device:

TSL2561 MQTT
TSL2561 Device
TSL2561 Jeedom

Result