But this gives me ESPHOME error msg: Platform not found: output.nodemcu-32s
Is that the right approach? If so what should be the output platform?
Any suggestions?
Thanks
I cannot figure out the syntax - this is what I have:
light:
- platform: rgb
name: rgb
red: red
green: green
blue: blue
output:
- platform: gpio
id: red
pin: GPIO23
- platform: gpio
id: green
pin: GPIO22
- platform: gpio
id: blue
pin: GPIO21
but I’m getting this error:
light.rgb: [source /config/esphome/esp32-dev14.yaml:47]
platform: rgb
name: rgb
ID 'red' of type gpio::GPIOBinaryOutput doesn't inherit from output::FloatOutput. Please double check your ID is pointing to the correct value.
red: red
ID 'green' of type gpio::GPIOBinaryOutput doesn't inherit from output::FloatOutput. Please double check your ID is pointing to the correct value.
green: green
ID 'blue' of type gpio::GPIOBinaryOutput doesn't inherit from output::FloatOutput. Please double check your ID is pointing to the correct value.
blue: blue
Apologies, didn’t see that dependency. In that case - and because you are using an ESP32 - please try platform: ledc. That doe provide a float output. (If you were using an ESP8266, then platform: esp8266_pwm would be the way to go.)
And, while we’re on the topic, ledc outputs require a PWM capable pin. Luckily an ESP32 has many of those, and GPIO21/22/23 should be amongst them.