# Control multiple relays with Alexa

**URL:** <https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703>\
**Category:** Uncategorized\
**Created:** [March 8, 2023, 1:39am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703 "2023-03-08T01:39:08Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![hudako417](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/hudako417/32/3617_2.png) [@hudako417](https://wled.discourse.group/u/hudako417)\
**Post date:** [March 8, 2023, 1:39am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/1 "2023-03-08T01:39:09Z")

</div>

“I’m not a professional, but I was convinced by the versatility of WLED. I have downloaded and tried many usermod versions, and I really like the one with multiple relays and knowing that it can be compiled to connect with Alexa. Please guide me on how to do it (with video or images). Thank you.”  
[Control multiple relays with Alexa](https://kno.wled.ge/features/relay-control/)

---

<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:** [March 8, 2023, 6:28am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/2 "2023-03-08T06:28:47Z")

</div>

If you can “teach” Alexa to send HTTP JSON POST requests to WLED then it is just a matter of entering correct JSON API into Alexa skill.  
JSON API is available on the link you posted.

---

<div class="post-metadata">

**Author:** ![hudako417](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/hudako417/32/3617_2.png) [@hudako417](https://wled.discourse.group/u/hudako417)\
**Post date:** [March 8, 2023, 7:01am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/3 "2023-03-08T07:01:32Z")

</div>

I don’t know English, so I’m not very familiar with some technical terms and I have to rely on Google Translate. Thank you very much for answering me. I will try to learn more

---

<div class="post-metadata">

**Author:** ![Onurk](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/onurk/32/4592_2.png) [@Onurk](https://wled.discourse.group/u/Onurk)\
**Post date:** [March 8, 2023, 11:23am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/4 "2023-03-08T11:23:22Z")

</div>

What is the http request parameter for usermod multi relay ? I cant find it. I looked json but can find the json parameter too for json can you please tell me where i missing ?

---

<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:** [March 8, 2023, 11:53am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/5 "2023-03-08T11:53:01Z")

</div>

It is visible on the link provided above.

---

<div class="post-metadata">

**Author:** ![Onurk](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/onurk/32/4592_2.png) [@Onurk](https://wled.discourse.group/u/Onurk)\
**Post date:** [March 8, 2023, 12:06pm UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/6 "2023-03-08T12:06:04Z")

</div>

I cant see. I can only see mqtt and a preset for relay on not for off. I know i make a mistake somewhere but can find it please help me about it.

---

<div class="post-metadata">

**Author:** ![Onurk](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/onurk/32/4592_2.png) [@Onurk](https://wled.discourse.group/u/Onurk)\
**Post date:** [March 8, 2023, 12:12pm UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/7 "2023-03-08T12:12:51Z")

</div>

Thank you i find it i will try now 😇

---

<div class="post-metadata">

**Author:** ![hudako417](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/hudako417/32/3617_2.png) [@hudako417](https://wled.discourse.group/u/hudako417)\
**Post date:** [March 10, 2023, 3:54am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/8 "2023-03-10T03:54:35Z")

</div>

I want to use user mode: stairs, audio reactive, multiple relays, motion sensors, all in the same version. Is there any video tutorial available? Can you please provide me with the link? Thank you very much .

---

<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:** [March 10, 2023, 9:31am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/9 "2023-03-10T09:31:15Z")

</div>

@Quindor did a few videos regarding that.

---

<div class="post-metadata">

**Author:** ![hudako417](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/hudako417/32/3617_2.png) [@hudako417](https://wled.discourse.group/u/hudako417)\
**Post date:** [March 13, 2023, 3:30am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/10 "2023-03-13T03:30:09Z")

</div>

thank you

---

<div class="post-metadata">

**Author:** ![hudako417](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/hudako417/32/3617_2.png) [@hudako417](https://wled.discourse.group/u/hudako417)\
**Post date:** [March 19, 2023, 7:18am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/12 "2023-03-19T07:18:13Z")

</div>

Thank you for taking the time to help me. With your assistance, I have successfully compiled user modes for my needs and also successfully localized the language for my non-English speaking family members. I have a question: “I cannot find the .htm files for the user modes that I have compiled. I want to translate these user modes into Vietnamese. Thank you very much for your help.”

---

<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:** [March 20, 2023, 6:02am UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/13 "2023-03-20T06:02:03Z")

</div>

unfortunately that would require changes to usermods, which will make them incompatible with the upstream.

---

<div class="post-metadata">

**Author:** ![hudako417](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/hudako417/32/3617_2.png) [@hudako417](https://wled.discourse.group/u/hudako417)\
**Post date:** [March 20, 2023, 12:29pm UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/14 "2023-03-20T12:29:41Z")

</div>

thank you very much

---

<div class="post-metadata">

**Author:** ![hudako417](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/hudako417/32/3617_2.png) [@hudako417](https://wled.discourse.group/u/hudako417)\
**Post date:** [April 23, 2023, 6:28pm UTC](https://wled.discourse.group/t/control-multiple-relays-with-alexa/7703/15 "2023-04-23T18:28:52Z")

</div>

sorry for bothering you , can you help me to fix the error during compile , i tried to find a way but i can’t , thank you  
i got this error during compile, change ssid name and pass :  
if (resetAP) {  
WLED\_SET\_AP\_SSID();  
strcpy\_P(apPass, PSTR(WLED\_AP\_PASS));  
line 559 ,747 ,748  
[{  
“resource”: “/Users/khoihuynhdai/Downloads/WLED-mdev/”,  
“owner”: “cpp”,  
“severity”: 8,  
“message”: “‘illumin’ was not declared in this scope”,  
“startLineNumber”: 1,  
“startColumn”: 20,  
“endLineNumber”: 1,  
“endColumn”: 20  
},{  
“resource”: “/Users/khoihuynhdai/Downloads/WLED-mdev/wled00/wled.cpp”,  
“owner”: “cpp”,  
“severity”: 8,  
“message”: “‘WLED\_SET\_AP\_SSID’ was not declared in this scope”,  
“startLineNumber”: 559,  
“startColumn”: 3,  
“endLineNumber”: 559,  
“endColumn”: 3  
},{  
“resource”: “/Users/khoihuynhdai/Downloads/WLED-mdev/wled00/wled.cpp”,  
“owner”: “cpp”,  
“severity”: 8,  
“message”: “macro “WLED\_SET\_AP\_SSID” passed 1 arguments, but takes just 0”,  
“startLineNumber”: 559,  
“startColumn”: 29,  
“endLineNumber”: 559,  
“endColumn”: 29  
},{  
“resource”: “/Users/khoihuynhdai/Downloads/WLED-mdev/wled00/wled.cpp”,  
“owner”: “cpp”,  
“severity”: 8,  
“message”: “stray ‘\342’ in program”,  
“startLineNumber”: 747,  
“startColumn”: 5,  
“endLineNumber”: 747,  
“endColumn”: 5  
},{  
“resource”: “/Users/khoihuynhdai/Downloads/WLED-mdev/wled00/wled.cpp”,  
“owner”: “cpp”,  
“severity”: 8,  
“message”: “stray ‘\342’ in program”,  
“startLineNumber”: 748,  
“startColumn”: 5,  
“endLineNumber”: 748,  
“endColumn”: 5  
}]
