# Push button for each segment

**URL:** <https://wled.discourse.group/t/push-button-for-each-segment/5289>\
**Category:** Questions\
**Created:** [April 27, 2022, 5:32pm UTC](https://wled.discourse.group/t/push-button-for-each-segment/5289 "2022-04-27T17:32:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [April 28, 2022, 12:16pm UTC](https://wled.discourse.group/t/push-button-for-each-segment/5289/4 "2022-04-28T12:16:47Z")

</div>

use: `{"seg":{"id":X,"on":"t"}}` and replace X with your desired segment.  
This will toggle segment X power on or off.

---

_[View the full topic](https://wled.discourse.group/t/push-button-for-each-segment/5289)._
