Generic: HTTP Requests
To communicate with the VRA Core Control API you have to setup a Generic HTTP Request in Companion with the connectivity details of your Core API (Connectivity and Access management):
Create re-usable variables
To reference to current states and authorization required for the communication with the VRA Core API you have to setup the following variables:
vra_state_statelatest state from the Corevra_authauthorization string packed in the JSON headers for Companion’s HTTP Request Connection, see Connectivity and Access management
Startup & state sync Trigger
To keep the current state of VRA in sync with the StreamDeck at all times, create a refreshing State Sync Trigger:
$(internal:custom_vra_auth) variable to reference the current authorization header JSON from the variables.
The response of the “sync trigger” should be saved in the vra_state_state variable for later use.
Create a “Toggle VRA” button
To toggle the Active state of VRA you can make use of the control endpoints in the Core API.
vra_state_state variable and the value of the variable is updated after the Press Action.

Sync color
You can update the button color with each state update via an extra trigger comparing the currentvra_state_state value. Make sure to use the correct button location in the Set background color Action. You need to create two Triggers for the ACTIVE and DEACTIVATED state.
