MQTT JSon

To use in conjunction with Home-Assistant or to be used by any MQTT publisher, the board can be set as a MQTT JSon node. The code is available on GitHub here: https://github.com/RiRomain/RGB_Strip_Control_ESP8266_HASS

Download the latest code from GitHub, unzip it anywhere on your computer and open the downloaded file with Arduino IDE.

Through the menu Sketch -> Include Library -> Manage Libraries, install the PubSubCLient and the ArduinoJson library.

After that set your Wifi Name (SSID) and Password, your MQTT server address and credential and upload the code and your good to go!

To integrate your RGB strip to Home-Assistant, simply add the following to your configuration.yaml:

light:
  - platform: mqtt_json
    name: mqtt_json_light_1
    state_topic: "home/rgb1"
    command_topic: "home/rgb1/set"
    brightness: true
    rgb: true

For more information about Home-Assistant MQTT JSon light component, you can visit the following page: Home Assistant – MQTT JSON Light