im looking for some help as im not quite understanding the code to get a esp8285 rgb led controller to work with diyhue, in not sure if im missing code or if i have pins wrong, home assistant finds the light but only turns it on or off, no colour options
esphome:
name: backlight
platform: ESP8266
board: esp8285
wifi:
ssid: "..."
password: "..."
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "backlight"
password: "..."
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "..."
ota:
password: "..."
output:
- platform: esp8266_pwm
pin: GPIO05
id: 'color_red'
- platform: esp8266_pwm
pin: GPIO14
id: 'color_green'
- platform: esp8266_pwm
pin: GPIO12
id: 'color_blue'
light:
- platform: rgb
name: "backlight"
red: color_red
green: color_green
blue: color_blue
- platform: fastled_spi
id: color_led
chipset: SM16716
data_pin: GPIO14
clock_pin: GPIO4
num_leds: 1
rgb_order: BGR
name: "color_led"
default_transition_length: 0.4s
gamma_correct: 0.8
effects:
- random:
name: Random Effect With Custom Values
transition_length: 5s
update_interval: 3s
text_sensor:
- platform: template
name: "light_id"
id: light_id
lambda: |-
return {"esphome_diyhue_light;mac_address;light_name;ct_boost;rgb_boost"};
update_interval: 24h
web_server:
port: 80