# Can't change LED color via API with "manual LED control"

**URL:** <https://forum.bondhome.io/t/cant-change-led-color-via-api-with-manual-led-control/2151>\
**Category:** BETA API\
**Created:** [January 4, 2021, 3:52am UTC](https://forum.bondhome.io/t/cant-change-led-color-via-api-with-manual-led-control/2151 "2021-01-04T03:52:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGamingGallifreyan](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@TheGamingGallifreyan](https://forum.bondhome.io/u/TheGamingGallifreyan)\
**Post date:** [January 4, 2021, 3:52am UTC](https://forum.bondhome.io/t/cant-change-led-color-via-api-with-manual-led-control/2151/1 "2021-01-04T03:52:31Z")

</div>

When I attempt to manually set the color of the LEDs using the API command for manual LED control ([Bond Local API](http://docs-local.appbond.com/#tag/LEDs/paths/~1v2~1debug~1leds/patch)), my Bond unit unit just flashes blue and I get an “Error: read ECONNRESET” message

This is what I have:

> curl -H “BOND-Token: XXXXXXXXX” -i [http://192.168.0.52/v2/debug/leds](http://192.168.0.52/v2/debug/leds) -X PATCH -d "{\“manual": 1, "value": "FF000000FF000000FFFFFFFF000000"}”

Am I using this command wrong? Or am I just misunderstanding what this actually does? (I thought this meant I could manually set the color of the LED ring on top of the Bond.)

I have gotten other API command to work successfully and am able to turn the lights and fans on/off.

---

<div class="post-metadata">

**Author:** ![residualimages](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/residualimages/32/74_2.png) [@residualimages](https://forum.bondhome.io/u/residualimages)\
**Post date:** [January 4, 2021, 4:30am UTC](https://forum.bondhome.io/t/cant-change-led-color-via-api-with-manual-led-control/2151/2 "2021-01-04T04:30:34Z")

</div>

Are you talking about the normal consumer Bond Bridge?

I hadn’t checked the documentation in a while, so I was surprised to see your quoted section there. Bridges previously only had _bluelight_ endpoint, I believe.  
That being said, I cannot even GET the “v2/debug/leds” endpoint to return values (I see it in the ‘debug’ tree but when I GET that endpoint directly, I get a 204), let alone PATCH them. Many of the other “debug” endpoints return data when GETting them, but not all…

@merck - is this something new that’s not fully implemented yet?

Android App: 2.28.0 _(App Tester fails to install what it sees as an update from 12.08.2020 [2.28.0-beta1 or 2.28.0-beta2] over this ?public? version)_  
ZZ Bond: 2.15.8

---

<div class="post-metadata">

**Author:** ![merck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/merck/32/1238_2.png) [@merck](https://forum.bondhome.io/u/merck)\
**Post date:** [January 4, 2021, 1:46pm UTC](https://forum.bondhome.io/t/cant-change-led-color-via-api-with-manual-led-control/2151/3 "2021-01-04T13:46:28Z")

</div>

My mistake in not hiding the “debug” endpoints from the public docs. There’s nothing secret there, but these endpoints are for internal use and so may be buggy or poorly documented.

A quick check of an internal document gives this example body for PATCHing that endpoint:

`[{ "r": 0, "g": 0, "b": 0 },{ "r": 255, "g": 255, "b": 255 },{ "r": 255, "g": 0, "b": 0 },{ "r": 0, "g": 255, "b": 0 },{ "r": 0, "g": 0, "b": 255 }]`

Will only work on Zermatt units (ZZ… SNs).

---

<div class="post-metadata">

**Author:** ![TheGamingGallifreyan](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@TheGamingGallifreyan](https://forum.bondhome.io/u/TheGamingGallifreyan)\
**Post date:** [January 5, 2021, 1:53am UTC](https://forum.bondhome.io/t/cant-change-led-color-via-api-with-manual-led-control/2151/4 "2021-01-05T01:53:16Z")

</div>

Sweet! That worked! I’m gonna see if I can get Bond to light up to some music lmao
