For instruction connecting Dimmer LED go to: Dimmer Hardware Guide
Instructions are available here: /docs/esphome/install2024_3
Outputs have always same names:
Output on board | Output in config |
---|---|
CHL 1 | chl01 |
CHL 2 | chl02 |
CHL 3 | chl03 |
CHL 4 | chl04 |
CHR 1 | chr01 |
CHR 2 | chr02 |
CHR 3 | chr03 |
CHR 4 | chr04 |
As standard dimmer comes with RGBW lights config.
All changes are made in light section!
To change CHL 1 and CHL2 to CCT light.
Remove light which occupies channels you’d like to use:
In this example remove RGBW L light
- platform: rgbw
name: 'RGBW L'
red: chl01
green: chl02
blue: chl03
white: chl04
default_transition_length: 2s
gamma_correct: 0
Add CCT light to light section:
- platform: cwww
name: 'CHL_01_02'
cold_white: chl01
warm_white: chl02
cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K
Add 2 white lights to light section:
- platform: monochromatic
output: chl03
name: 'CHL 03'
id: chl_03
default_transition_length: 2s
gamma_correct: 0
- platform: monochromatic
output: chl04
name: 'CHL 04'
id: chl_04
default_transition_length: 2s
gamma_correct: 0
Similar steps are needed to change from 8ch to RGBW and from CCT to 8ch etc.
Example how to rotate brightness of the light with one push button.
Add to IN_01 id
and on_press
option.
binary_sensor:
- platform: gpio
name: 'IN_01'
id: in_01
pin:
pcf8574: pcf_inputs
number: 1
mode:
input: true
inverted: true
on_press:
then:
- while:
condition:
binary_sensor.is_on: in_01
then:
- if:
condition:
lambda: 'return id(chl_01).current_values.get_brightness() >= 0.90f;'
then:
- light.control:
id: chl_01
brightness: 0%
- light.turn_off:
id: chl_01
else:
- light.dim_relative:
id: chl_01
relative_brightness: 5%
transition_length: 0.2s
- delay: 200ms