QuinLED An-Penta-Deca
ESPhome configuration example
Back to QuinLED An-Penta-Deca Index
To help out building your own configuration for the QuinLED An-Penta-Deca below is a basic ESPhome configuration as I generally use with the board. This can of course be fully adjusted to whatever your own needs are so treat it as a starting template.
The first configuration will be purely making 15 independent channels. Below that will be just the lights part with 3x RGBCCT configured.
Again this is an example! Change it so that it works for your WiFi, Home Assistant, etc.!
substitutions:
esphome_name: an-penta-deca
esphome:
name: ${esphome_name}
esp32:
board: esp32dev
framework:
type: esp-idf
wifi:
ssid: !secret esphome_wifi_ssid
password: !secret esphome_wifi_pass
domain: .domain.local
web_server:
port: 80
logger:
i2c:
sda: 15
scl: 16
scan: true
api:
reboot_timeout: 60min
password: !secret esphome_api_pass
ota:
password: !secret esphome_ota_pass
time:
- platform: homeassistant
id: homeassistant_time
switch:
- platform: restart
name: ${esphome_name}-restart
id: restart_switch
output:
- platform: ledc
pin: 27
frequency: 19531Hz
id: LED_channel_1
- platform: ledc
pin: 26
frequency: 19531Hz
id: LED_channel_2
- platform: ledc
pin: 25
frequency: 19531Hz
id: LED_channel_3
- platform: ledc
pin: 23
frequency: 19531Hz
id: LED_channel_4
- platform: ledc
pin: 22
frequency: 19531Hz
id: LED_channel_5
- platform: ledc
pin: 21
frequency: 19531Hz
id: LED_channel_6
- platform: ledc
pin: 19
frequency: 19531Hz
id: LED_channel_7
- platform: ledc
pin: 18
frequency: 19531Hz
id: LED_channel_8
- platform: ledc
pin: 17
frequency: 19531Hz
id: LED_channel_9
- platform: ledc
pin: 14
frequency: 19531Hz
id: LED_channel_10
- platform: ledc
pin: 13
frequency: 19531Hz
id: LED_channel_11
- platform: ledc
pin: 12
frequency: 19531Hz
id: LED_channel_12
- platform: ledc
pin: 5
frequency: 19531Hz
id: LED_channel_13
- platform: ledc
pin: 4
frequency: 19531Hz
id: LED_channel_14
- platform: ledc
pin: 2
frequency: 19531Hz
id: LED_channel_15
light:
- platform: monochromatic
name: "${esphome_name}-L1"
default_transition_length: 1s
id: LED1
output: LED_channel_1
- platform: monochromatic
name: "${esphome_name}-L2"
default_transition_length: 1s
id: LED2
output: LED_channel_2
- platform: monochromatic
name: "${esphome_name}-L3"
default_transition_length: 1s
id: LED3
output: LED_channel_3
- platform: monochromatic
name: "${esphome_name}-L4"
default_transition_length: 1s
id: LED4
output: LED_channel_4
- platform: monochromatic
name: "${esphome_name}-L5"
default_transition_length: 1s
id: LED5
output: LED_channel_5
- platform: monochromatic
name: "${esphome_name}-L6"
default_transition_length: 1s
id: LED6
output: LED_channel_6
- platform: monochromatic
name: "${esphome_name}-L7"
default_transition_length: 1s
id: LED7
output: LED_channel_7
- platform: monochromatic
name: "${esphome_name}-L8"
default_transition_length: 1s
id: LED8
output: LED_channel_8
- platform: monochromatic
name: "${esphome_name}-L9"
default_transition_length: 1s
id: LED9
output: LED_channel_9
- platform: monochromatic
name: "${esphome_name}-L10"
default_transition_length: 1s
id: LED10
output: LED_channel_10
- platform: monochromatic
name: "${esphome_name}-L11"
default_transition_length: 1s
id: LED11
output: LED_channel_11
- platform: monochromatic
name: "${esphome_name}-L12"
default_transition_length: 1s
id: LED12
output: LED_channel_12
- platform: monochromatic
name: "${esphome_name}-L13"
default_transition_length: 1s
id: LED13
output: LED_channel_13
- platform: monochromatic
name: "${esphome_name}-L14"
default_transition_length: 1s
id: LED14
output: LED_channel_14
- platform: monochromatic
name: "${esphome_name}-L15"
default_transition_length: 1s
id: LED15
output: LED_channel_15
sensor:
- platform: uptime
name: "${esphome_name}_Uptime Sensor"
binary_sensor:
- platform: gpio
pin: 36
name: Button_1
filters:
- invert:
- platform: gpio
pin: 39
name: Button_2
filters:
- invert:
- platform: gpio
pin: 34
name: Button_3
filters:
- invert:
3x RGBCCT output
To have 3x RGBCCT you only need to change the lights: section of the configuration, everything else can stay the same, Home Assistant will automatically make the correct type of light for you.
light:
- platform: rgbww
name: "RGBCCT_1"
red: LED_channel_1
green: LED_channel_2
blue: LED_channel_3
cold_white: LED_channel_4
warm_white: LED_channel_5
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2000 K
- platform: rgbww
name: "RGBCCT_2"
red: LED_channel_6
green: LED_channel_7
blue: LED_channel_8
cold_white: LED_channel_9
warm_white: LED_channel_10
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2000 K
- platform: rgbww
name: "RGBCCT_3"
red: LED_channel_11
green: LED_channel_12
blue: LED_channel_13
cold_white: LED_channel_14
warm_white: LED_channel_15
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2000 K
