Author Topic: How do I control WLED from VA?  (Read 1142 times)

Mibazza

  • Newbie
  • *
  • Posts: 1
How do I control WLED from VA?
« on: March 11, 2023, 01:07:37 AM »
Hello, I would like to be able to start RGB lighting presets from VA.  The RGB LED's are controlled from a local web application called WLED.  I've searched the forums for any info on WLED but found nothing.

My main aim with this is for Elite Dangerous Odyssey, when I ask for "red alert", as well as executing in-game commands such as deploy hard points, I'd like it to play my Red Alert RGB LED preset.  Any help would be appreciated, I've asked on the WLED forum and this is the information I recieved:

No familiarity with VoiceAttack at all, but it sounds like some sort of “voice to maco” tool and if so, see if it can send a web REST command. If so, then you just need something like with the HTTP API at HTTP Request API - WLED Project

The JSON API is more powerful, but you should be able to do what you are asking with the simple HTTP API

Example:

http://wled.local/win&PL=5

Would tell the WLED instance that has a local name of ‘wled.local’ (settable in the configuration (in config → WiFi → mDNS address) to execute preset

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
Re: How do I control WLED from VA?
« Reply #1 on: March 11, 2023, 01:18:42 AM »
VoiceAttack can natively send a HTTP GET request using the "Value from file/URI" option of the "Set a Text Value" action.

E.G.
Code: [Select]
Set text [~response] to [http://wled.local/win&PL=5]