Menu

QuinLED-An-Deca ESPhome sample configuration

Back to Index Page

People have requested sample ESPhome configurations for the QuinLED modules. A basic explanation of how to use ESPhome can be found by clicking here. Below are sample configurations that can be used to start your own configuration!

Sample configurations

  • 2020-10-29 Updated 10x Monochromatic (One color) LED strip
  • 2019-11-22 Updated 10x Monochromatic (One color) LED strip
  • 10x Monochromatic (One color) LED strip
  • 4x Monochromatic (One color) LED strip + 1x RGBW LED strip
  • 2x RGB+CCT LED strip
  • 2x RGB+CCT LED strip using separate CCT configuration

2020-10-29 Updated 10x Monochromatic (One color) LED strip

Lowered example PWM frequency to 20.000Hz since running 120.000Hz is really only needed in special situations (high speed cameras and such).

esphome:
  name: q1_quinled_deca
  platform: ESP32
  board: mhetesp32devkit

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

api:
  password: 'XXXXXXXXXX'

web_server:
  port: 80

# Enable logging
logger:

ota:
  password: 'XXXXXXXXXX'

dallas:
  - pin: 32

switch:
  - platform: gpio
    name: "q1_quinled_deca light"
    pin: 2
    inverted: True

output:
  - platform: ledc
    pin: 25
    frequency: 20000Hz
    id: LED_gpio_25

  - platform: ledc
    pin: 26
    frequency: 20000Hz
    id: LED_gpio_26

  - platform: ledc
    pin: 27
    frequency: 20000Hz
    id: LED_gpio_27

  - platform: ledc
    pin: 14
    frequency: 20000Hz
    id: LED_gpio_14

  - platform: ledc
    pin: 12
    frequency: 20000Hz
    id: LED_gpio_12

  - platform: ledc
    pin: 16
    frequency: 20000Hz
    id: LED_gpio_16

  - platform: ledc
    pin: 17
    frequency: 20000Hz
    id: LED_gpio_17

  - platform: ledc
    pin: 18
    frequency: 20000Hz
    id: LED_gpio_18

  - platform: ledc
    pin: 19
    frequency: 20000Hz
    id: LED_gpio_19

  - platform: ledc
    pin: 21
    frequency: 20000Hz
    id: LED_gpio_21

light:
  - platform: monochromatic
    name: "q1_quinled_deca-1"
    default_transition_length: 2s
    output: LED_gpio_25

  - platform: monochromatic
    name: "q1_quinled_deca-2"
    default_transition_length: 2s
    output: LED_gpio_26

  - platform: monochromatic
    name: "q1_quinled_deca-3"
    default_transition_length: 2s
    output: LED_gpio_27

  - platform: monochromatic
    name: "q1_quinled_deca-4"
    default_transition_length: 2s
    output: LED_gpio_14

  - platform: monochromatic
    name: "q1_quinled_deca-5"
    default_transition_length: 2s
    output: LED_gpio_12

  - platform: monochromatic
    name: "q1_quinled_deca-6"
    default_transition_length: 2s
    output: LED_gpio_16

  - platform: monochromatic
    name: "q1_quinled_deca-7"
    default_transition_length: 2s
    output: LED_gpio_17

  - platform: monochromatic
    name: "q1_quinled_deca-8"
    default_transition_length: 2s
    output: LED_gpio_18

  - platform: monochromatic
    name: "q1_quinled_deca-9"
    default_transition_length: 2s
    output: LED_gpio_19
    
  - platform: monochromatic
    name: "q1_quinled_deca-10"
    default_transition_length: 2s
    output: LED_gpio_21
    
sensor:
  - platform: dallas
    index: 0
    name: "q1_quinled_deca temp"

 

2019-11-22 Updated 10x Monochromatic (One color) LED strip

esphome:
  name: q1_quinled_deca
  platform: ESP32
  board: mhetesp32devkit

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

api:
  password: 'XXXXXXXXXX'

web_server:
  port: 80

# Enable logging
logger:

ota:
  password: 'XXXXXXXXXX'

dallas:
  - pin: 32

switch:
  - platform: gpio
    name: "q1_quinled_deca light"
    pin: 2
    inverted: True

output:
  - platform: ledc
    pin: 25
    frequency: 120000Hz
    id: LED_gpio_25

  - platform: ledc
    pin: 26
    frequency: 120000Hz
    id: LED_gpio_26

  - platform: ledc
    pin: 27
    frequency: 120000Hz
    id: LED_gpio_27

  - platform: ledc
    pin: 14
    frequency: 120000Hz
    id: LED_gpio_14

  - platform: ledc
    pin: 12
    frequency: 120000Hz
    id: LED_gpio_12

  - platform: ledc
    pin: 16
    frequency: 120000Hz
    id: LED_gpio_16

  - platform: ledc
    pin: 17
    frequency: 120000Hz
    id: LED_gpio_17

  - platform: ledc
    pin: 18
    frequency: 120000Hz
    id: LED_gpio_18

  - platform: ledc
    pin: 19
    frequency: 120000Hz
    id: LED_gpio_19

  - platform: ledc
    pin: 21
    frequency: 120000Hz
    id: LED_gpio_21

light:
  - platform: monochromatic
    name: "q1_quinled_deca-1"
    default_transition_length: 2s
    output: LED_gpio_25

  - platform: monochromatic
    name: "q1_quinled_deca-2"
    default_transition_length: 2s
    output: LED_gpio_26

  - platform: monochromatic
    name: "q1_quinled_deca-3"
    default_transition_length: 2s
    output: LED_gpio_27

  - platform: monochromatic
    name: "q1_quinled_deca-4"
    default_transition_length: 2s
    output: LED_gpio_14

  - platform: monochromatic
    name: "q1_quinled_deca-5"
    default_transition_length: 2s
    output: LED_gpio_12

  - platform: monochromatic
    name: "q1_quinled_deca-6"
    default_transition_length: 2s
    output: LED_gpio_16

  - platform: monochromatic
    name: "q1_quinled_deca-7"
    default_transition_length: 2s
    output: LED_gpio_17

  - platform: monochromatic
    name: "q1_quinled_deca-8"
    default_transition_length: 2s
    output: LED_gpio_18

  - platform: monochromatic
    name: "q1_quinled_deca-9"
    default_transition_length: 2s
    output: LED_gpio_19
    
  - platform: monochromatic
    name: "q1_quinled_deca-10"
    default_transition_length: 2s
    output: LED_gpio_21
    
sensor:
  - platform: dallas
    index: 0
    name: "q1_quinled_deca temp"

 

10x Monochromatic (One color) LED strip

This configuration is used when you have 10x single color LED strips or lights connected. I use these in my garage to light different sections!

esphome:
  name: 'q1_quinled_deca'
  platform: ESP32
  board: mhetesp32devkit

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

mqtt:
  broker: 'XXXXXXXXXX'
  username: 'XXXXXXXXXX'
  password: 'XXXXXXXXXX'

# Enable logging
logger:

ota:
  password: 'XXXXXXXXXX'

api:
  password: 'XXXXXXXXXX'

dallas:
  - pin: 32

switch:
  - platform: gpio
    name: "Onboard LED"
    pin: 2
    inverted: True

output:
  - platform: ledc
    pin: 25
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_25

  - platform: ledc
    pin: 26
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_26

  - platform: ledc
    pin: 27
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_27

  - platform: ledc
    pin: 14
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_14

  - platform: ledc
    pin: 12
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_12

  - platform: ledc
    pin: 16
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_16

  - platform: ledc
    pin: 17
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_17

  - platform: ledc
    pin: 18
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_18

  - platform: ledc
    pin: 19
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_19

  - platform: ledc
    pin: 21
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_21

light:
  - platform: monochromatic
    name: "garage_desk_channel-1"
    default_transition_length: 2s
    output: LED_gpio_25

  - platform: monochromatic
    name: "garage_desk_channel-2"
    default_transition_length: 2s
    output: LED_gpio_26

  - platform: monochromatic
    name: "garage_desk_channel-3"
    default_transition_length: 2s
    output: LED_gpio_27

  - platform: monochromatic
    name: "garage_desk_channel-4"
    default_transition_length: 2s
    output: LED_gpio_14

  - platform: monochromatic
    name: "garage_desk_channel-5"
    default_transition_length: 2s
    output: LED_gpio_12

  - platform: monochromatic
    name: "garage_desk_channel-6"
    default_transition_length: 2s
    output: LED_gpio_16

  - platform: monochromatic
    name: "garage_desk_channel-7"
    default_transition_length: 2s
    output: LED_gpio_17

  - platform: monochromatic
    name: "garage_desk_channel-8"
    default_transition_length: 2s
    output: LED_gpio_18

  - platform: monochromatic
    name: "garage_desk_channel-9"
    default_transition_length: 2s
    output: LED_gpio_19
    
  - platform: monochromatic
    name: "garage_desk_channel-10"
    default_transition_length: 2s
    output: LED_gpio_21

sensor:
  - platform: dallas
    index: 0
    name: "Q1_tempsensor"

4x Monochromatic (One color) LED strip + 1x RGBW LED strip

 

esphome:
  name: 'q1_quinled_quad'
  platform: ESP32
  board: mhetesp32devkit

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

mqtt:
  broker: 'XXXXXXXXXX'
  username: 'XXXXXXXXXX'
  password: 'XXXXXXXXXX'

# Enable logging
logger:

ota:
  password: 'XXXXXXXXXX'

api:
  password: 'XXXXXXXXXX'

dallas:
  - pin: 32

switch:
  - platform: gpio
    name: "Onboard LED"
    pin: 2
    inverted: True

output:
  - platform: ledc
    pin: 25
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_25

  - platform: ledc
    pin: 26
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_26

  - platform: ledc
    pin: 27
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_27

  - platform: ledc
    pin: 14
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_14

  - platform: ledc
    pin: 12
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_12

  - platform: ledc
    pin: 16
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_16

  - platform: ledc
    pin: 17
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_17

  - platform: ledc
    pin: 18
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_18

  - platform: ledc
    pin: 19
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_19

  - platform: ledc
    pin: 21
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_21

light:
  - platform: monochromatic
    name: "garage_desk_channel-1"
    default_transition_length: 2s
    output: LED_gpio_25

  - platform: monochromatic
    name: "garage_desk_channel-2"
    default_transition_length: 2s
    output: LED_gpio_26

  - platform: monochromatic
    name: "garage_desk_channel-3"
    default_transition_length: 2s
    output: LED_gpio_27

  - platform: monochromatic
    name: "garage_desk_channel-4"
    default_transition_length: 2s
    output: LED_gpio_14

light:
  - platform: rgbw
    name: "Q1_RGBW_strip"
    red: LED_gpio_16
    green: LED_gpio_17
    blue: LED_gpio_18
    white: LED_gpio_19
    default_transition_length: 2s
    effects:
      - random:          
          name: "My Slow Random Effect"
          transition_length: 20s
          update_interval: 20s
      - random:
          name: "My Fast Random Effect"
          transition_length: 4s
          update_interval: 5s
      - random:
          name: "My Insane Random Effect"
          transition_length: 1s
          update_interval: 1s
      - random:          
          name: "Totally loco"
          transition_length: 300ms
          update_interval: 250ms

sensor:
  - platform: dallas
    index: 0
    name: "Q1_tempsensor"

2x RGB+CCT LED strip

If you have RGB+CCT LED strip (Red, Green, Blue, Cold White and Warm White) you can use the following configuration

 

esphome:
  name: 'q1_quinled_quad'
  platform: ESP32
  board: mhetesp32devkit

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

mqtt:
  broker: 'XXXXXXXXXX'
  username: 'XXXXXXXXXX'
  password: 'XXXXXXXXXX'

# Enable logging
logger:

ota:
  password: 'XXXXXXXXXX'

api:
  password: 'XXXXXXXXXX'

dallas:
  - pin: 32

switch:
  - platform: gpio
    name: "Onboard LED"
    pin: 2
    inverted: True

output:
  - platform: ledc
    pin: 25
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_25

  - platform: ledc
    pin: 26
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_26

  - platform: ledc
    pin: 27
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_27

  - platform: ledc
    pin: 14
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_14

  - platform: ledc
    pin: 12
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_12

  - platform: ledc
    pin: 16
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_16

  - platform: ledc
    pin: 17
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_17

  - platform: ledc
    pin: 18
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_18

  - platform: ledc
    pin: 19
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_19

  - platform: ledc
    pin: 21
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_21

light:
  - platform: rgbww
    name: "Q1_RGBCCT_1"
    red: LED_gpio_25
    green: LED_gpio_26
    blue: LED_gpio_27
    cold_white: LED_gpio_14
    warm_white: LED_gpio_12
    cold_white_color_temperature: 153 mireds
    warm_white_color_temperature: 500 mireds
    effects:
      - random:          
          name: "My Slow Random Effect"
          transition_length: 20s
          update_interval: 20s
      - random:
          name: "My Fast Random Effect"
          transition_length: 4s
          update_interval: 5s
      - random:
          name: "My Insane Random Effect"
          transition_length: 1s
          update_interval: 1s
      - random:          
          name: "Totally loco"
          transition_length: 300ms
          update_interval: 250ms

  - platform: rgbww
    name: "Q1_RGBCCT_2"
    red: LED_gpio_16
    green: LED_gpio_17
    blue: LED_gpio_18
    cold_white: LED_gpio_19
    warm_white: LED_gpio_21
    cold_white_color_temperature: 153 mireds
    warm_white_color_temperature: 500 mireds
    effects:
      - random:          
          name: "My Slow Random Effect"
          transition_length: 20s
          update_interval: 20s
      - random:
          name: "My Fast Random Effect"
          transition_length: 4s
          update_interval: 5s
      - random:
          name: "My Insane Random Effect"
          transition_length: 1s
          update_interval: 1s
      - random:          
          name: "Totally loco"
          transition_length: 300ms
          update_interval: 250ms

sensor:
  - platform: dallas
    index: 0
    name: "Q1_tempsensor"

2x RGB+CCT LED strip using separate CCT configuration

For some reason Home Assistant allows you to regulate the intensity of the white + color mixing as in, you can have pure color and no white mixed in, it doesn’t allow the opposite of turning on a RGB+CCT light with only white and no color. For this I use a different configuration which is a combination of the above configurations using an RGB light and a seperate CCT configuration, allowing you to make any mix you want.

esphome:
  name: 'q1_quinled_quad'
  platform: ESP32
  board: mhetesp32devkit

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

mqtt:
  broker: 'XXXXXXXXXX'
  username: 'XXXXXXXXXX'
  password: 'XXXXXXXXXX'

# Enable logging
logger:

ota:
  password: 'XXXXXXXXXX'

api:
  password: 'XXXXXXXXXX'

dallas:
  - pin: 32

switch:
  - platform: gpio
    name: "Onboard LED"
    pin: 2
    inverted: True

output:
  - platform: ledc
    pin: 25
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_25

  - platform: ledc
    pin: 26
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_26

  - platform: ledc
    pin: 27
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_27

  - platform: ledc
    pin: 14
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_14

  - platform: ledc
    pin: 12
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_12

  - platform: ledc
    pin: 16
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_16

  - platform: ledc
    pin: 17
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_17

  - platform: ledc
    pin: 18
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_18

  - platform: ledc
    pin: 19
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_19

  - platform: ledc
    pin: 21
    frequency: 120000Hz
    bit_depth: 9
    id: LED_gpio_21

light:
  - platform: rgb
    name: "Q1_RGB_1"
    red: LED_gpio_25
    green: LED_gpio_26
    blue: LED_gpio_27
    effects:
      - random:          
          name: "My Slow Random Effect"
          transition_length: 20s
          update_interval: 20s
      - random:
          name: "My Fast Random Effect"
          transition_length: 4s
          update_interval: 5s
      - random:
          name: "My Insane Random Effect"
          transition_length: 1s
          update_interval: 1s
      - random:          
          name: "Totally loco"
          transition_length: 300ms
          update_interval: 250ms
  - platform: cwww
    name: "Q1_CCT_1"
    cold_white: LED_gpio_14
    warm_white: LED_gpio_12
    cold_white_color_temperature: 153 mireds
    warm_white_color_temperature: 500 mireds
    default_transition_length: 2s

  - platform: rgb
    name: "Q1_RGB_2"
    red: LED_gpio_16
    green: LED_gpio_17
    blue: LED_gpio_18
    effects:
      - random:          
          name: "My Slow Random Effect"
          transition_length: 20s
          update_interval: 20s
      - random:
          name: "My Fast Random Effect"
          transition_length: 4s
          update_interval: 5s
      - random:
          name: "My Insane Random Effect"
          transition_length: 1s
          update_interval: 1s
      - random:          
          name: "Totally loco"
          transition_length: 300ms
          update_interval: 250ms
 - platform: cwww
    name: "Q1_CCT_2"
    cold_white: LED_gpio_19
    warm_white: LED_gpio_21
    cold_white_color_temperature: 153 mireds
    warm_white_color_temperature: 500 mireds
    default_transition_length: 2s

sensor:
  - platform: dallas
    index: 0
    name: "Q1_tempsensor"

Ending remarks

As mentioned above, these configurations are just examples, ESPhome is very versatile and you can use any of the channels for any mix of light you desire. Also you can easily connect sensors or buttons to the exposed GPIO pins for things like temperature sensing, motion sensors, etc.