ESP32 ledc - how add device to dashboard

I have just added an ESP32 and would like to control a LED with PWM.
The switch is visible and i can add this to my dashboard , but the two output ledc i can’t add to the dashboard.

captive_portal:

sensor:
# Example configuration entry
output:

platform: ledc
pin: GPIO12
frequency: 10000 Hz
id: rnw_21_wlamp_1_right

platform: ledc
pin: GPIO33
frequency: 10000 Hz
id: rnw_21_wlamp_2_right

switch:

platform: gpio
pin: GPIO02
name: “rnw_21_lamps”

You need to define lights using the outputs:

light:
  - platform: monochromatic
    output: rnw_21_wlamp_1_right
    name: "Light 1"

  - platform: monochromatic
    output: rnw_21_wlamp_2_right
    name: "Light 2"


2 Likes

Thanks it works just fine