Skip to content

Files

Latest commit

8db6c48 · Apr 4, 2017

History

History

ha_mqtt_rgbw_light_with_discovery

MQTT JSON Light - Home Assistant

A simple example to control a RGB led and a white led connected to a NodeMCU board (ESP8266).

Features

  • MQTT discovery
  • MQTT JSON Light
    • State
    • RGB
    • White
    • Brightness
    • Color temperature
    • Effect
      • Rainbow

How to

  1. Rename config.example.hto config.h
  2. Define your WiFi SSID and password
  3. Define your MQTT settings
  4. Install the external libraries (PubSubClient, ArduinoJson)
  5. Define MQTT_MAX_PACKET_SIZE to 256in Arduino/libraries/pubsubclient/src/PubSubClient.h