Link

Brilliant Smart Wi-Fi RGB Garden Light

  1. General Notes
  2. GPIO Pinout
  3. Basic Configuration

General Notes

This configuration is for the Brilliant Smart Wi-Fi RGB Garden Light which comes as a kit with 4 LED RGB spotlights, a transformer and the controller.

Brilliant Smart Wi-Fi RGB Garden Light Kit

GPIO Pinout

Pin Function
GPIO4 Red Channel
GPIO12 Green Channel
GPIO14 Blue Channel

Basic Configuration

esphome:
  name: garden_light
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: 'ssid'
  password: 'password'

logger:

web_server:

api:
  password: 'api_password'

ota:
  password: 'ota_password'

light:
  - platform: rgb
    name: "Garden Light"
    id: me
    red: output_red
    green: output_green
    blue: output_blue
    restore_mode: RESTORE_DEFAULT_OFF
    effects:
      - lambda:
          name: RedGreenFade
          update_interval: 4s
          lambda: |-
            static int state = 0;
            auto call = id(me).turn_on();
            // Transtion of 1000ms = 1s
            call.set_transition_length(4000);
            if (state == 0) {
              call.set_rgb(1.0, 0.0, 0.0);
            } else if (state == 1) {
              call.set_rgb(0.0, 1.0, 0.0);
            } else if (state == 2) {
              call.set_rgb(0.0, 0.0, 1.0);
            } else {
              call.set_rgb(1.0, 0.0, 0.0);
            }
            call.perform();
            state += 1;
            if (state == 2) // repeat only the red and green from christmas
              state = 0;

output:
  - platform: esp8266_pwm
    id: output_red
    pin: GPIO4
  - platform: esp8266_pwm
    id: output_green
    pin: GPIO12
  - platform: esp8266_pwm
    id: output_blue
    pin: GPIO14