# How can I set an effect to a segment in the payload using the rest\_command in homeassistant?

**URL:** <https://wled.discourse.group/t/how-can-i-set-an-effect-to-a-segment-in-the-payload-using-the-rest-command-in-homeassistant/13823>\
**Category:** Questions\
**Created:** [January 6, 2025, 4:44pm UTC](https://wled.discourse.group/t/how-can-i-set-an-effect-to-a-segment-in-the-payload-using-the-rest-command-in-homeassistant/13823 "2025-01-06T16:44:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpdelaat](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/rpdelaat/32/9056_2.png) [@rpdelaat](https://wled.discourse.group/u/rpdelaat)\
**Post date:** [January 6, 2025, 4:44pm UTC](https://wled.discourse.group/t/how-can-i-set-an-effect-to-a-segment-in-the-payload-using-the-rest-command-in-homeassistant/13823/1 "2025-01-06T16:44:29Z")

</div>

Hi, I am a newbe… using homeassistant automation using the rest\_command.wled\_update to send a payload with a range of colors in different segments to WLED. That all works fine. Now I would want to add an effect (e.g. blink) to some segments. Iooked at the API documentation, however cannot find an example of how use which parameters and which function codes.

I tried things like the following, however that does not make a difference at all.  
Does anyone have any suggestions?

{{  
{  
“bri”: brightness,  
“seg”: {  
“bri”: 255,  
“fx”: 2,  
“i”: result.segments  
}  
}  
}}
