# Need help setting esp8285 led controller up with diyhue

**URL:** <https://diyhue.discourse.group/t/need-help-setting-esp8285-led-controller-up-with-diyhue/151>\
**Category:** Support\
**Created:** [August 6, 2020, 9:55pm UTC](https://diyhue.discourse.group/t/need-help-setting-esp8285-led-controller-up-with-diyhue/151 "2020-08-06T21:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordon130](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@gordon130](https://diyhue.discourse.group/u/gordon130)\
**Post date:** [August 6, 2020, 9:55pm UTC](https://diyhue.discourse.group/t/need-help-setting-esp8285-led-controller-up-with-diyhue/151/1 "2020-08-06T21:55:41Z")

</div>

i have diy hue up and running, i have 4 esp8285 led controllers i have flashed them with esphome on home assistant, what am not sure of is the code i need to flash after, in home assistant i can turn the lights on and off but no colour option, they show up in the hue app but are prompted to do an update, i know the app cant update them, i have looked online and googled but i can’t find the answer to my question, do i need to update them or is the code i have on them wrong, and if so does anyone have a working config/ code that works with the eps8266 with diyhue that allows colour change and hue entertainment area, im using magic home esp8285 led controllers

```auto
esphome:
  name: node_name
  platform: ESP8266
  board: esp8285

custom_component:
- lambda: |-
    auto diyhue = new diyhueudp();
    return {diyhue};

wifi:
  ssid: "....."
  password: "...."

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "...."

ota:
  password: "p...."
  
light:
  - platform: rgb
    name: Nice Friendly Name
    red: pwm_r
    green: pwm_g
    blue: pwm_b
    restore_mode: ALWAYS_ON

output:
  - platform: esp8266_pwm
    pin: GPIO12
    frequency: 1000 Hz
    id: pwm_r

  - platform: esp8266_pwm
    pin: GPIO5
    frequency: 1000 Hz
    id: pwm_g

  - platform: esp8266_pwm
    pin: GPIO13
    frequency: 1000 Hz
    id: pwm_b
    

text_sensor:
  - platform: template
    name: "light_id"
    id: light_id
    lambda: |-
      return {"esphome_diyhue_light;b8:27:eb:77:77:b0;backlight;CT-BOOST;RGB-BOOST"};
    update_interval: 24h
    
    
web_server:
  port: 80

```

---

<div class="post-metadata">

**Author:** ![alex](https://yyz2.discourse-cdn.com/free1/user_avatar/diyhue.discourse.group/alex/32/14_2.png) [@alex](https://diyhue.discourse.group/u/alex)\
**Post date:** [August 8, 2020, 4:08am UTC](https://diyhue.discourse.group/t/need-help-setting-esp8285-led-controller-up-with-diyhue/151/2 "2020-08-08T04:08:47Z")

</div>

Take a look [here](https://diyhue.readthedocs.io/en/latest/lights/esphome.html). That should give you an idea of the values to change in the config.

I believe you pulled that config from the Github? That should give you entertainment mode when combined with the asyncudp addon.
