# API command for disabling a button?

**URL:** <https://wled.discourse.group/t/api-command-for-disabling-a-button/10524>\
**Category:** Integrations\
**Created:** [December 26, 2023, 11:19pm UTC](https://wled.discourse.group/t/api-command-for-disabling-a-button/10524 "2023-12-26T23:19:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Stutchbury](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/stutchbury/32/7768_2.png) [@Stutchbury](https://wled.discourse.group/u/Stutchbury)\
**Post date:** [May 21, 2024, 2:36pm UTC](https://wled.discourse.group/t/api-command-for-disabling-a-button/10524/5 "2024-05-21T14:36:57Z")

</div>

As I’ve just discovered here: [RFH: Switch between I2S line-in and I2S microphone - #10 by Stutchbury](https://wled.discourse.group/t/rfh-switch-between-i2s-line-in-and-i2s-microphone/11860/10)

you can send a JSON API post from Home Assistant to update the WLED config (and also trigger a reset if required). Once you have the rest\_command: written in the configuration.yaml, you can make a service request from an automation or UI button.

HTH

---

_[View the full topic](https://wled.discourse.group/t/api-command-for-disabling-a-button/10524)._
