Knowing what a device returns after a command is received (sent by redid), helps design a control strategy.
Create System Variable, myInput, for the Control Code

- Point your web browser at the RedEye.
- Click Setup
- Click the Room
- Click Custom Variables
- Click Add New Variable
- For Name enter myInput
- Value can remain empty
- Click Save
Create a New Command

Click Add New Command
Create a Command to send an IP Control Code

- For Type select Other
- For Name enter Send IP Cmd
- Click Edit Script and go to the next step – Enter Script.
- When the next step is complete, click OK
Enter Script

Replace line 5, as indicated above, with the following script .
local c = string.upper(Scripting.GetVariable("myInput")) local b = Scripting.GetVariable("HTMLbody") b = [[<tr> <td style="border-style: none; text-align:left;">(user)</td> <td style="border-style: none; text-align:left;">]] .. c .. " -----" .. [[</td> </tr>]] .. b Scripting.SetVariable("HTMLbody", b) Scripting.SetVariable("HTMLmsg", [[<table style="font-size: 80%;">]] .. b .. [[</table>]]) Scripting.SendMessage(c.."\r")
Click Apply Changes
Complete step 4 of the previous step.
Edit Layout

- Click Save Changes
- Click Layout > Edit
Make Room on Layout

- Click on HTML field to highlight
- Click and drag to make room at the top
Add Text Field

- Select Text Field
- Click Add Control
- Position new Text Field
Link Variable to Field

- Click to highlight Text Field
- Click Text Field Values
- Select Text Variable, myInput
Add Button

- Select Button
- Click Add Control
- Drag to reposition button
Set Button Action

- Select button
- Click Actions / Toggles
- Select Type as Normal
- Select Action Type as Command
- Select VSX A/V Receiver (your device)
- Select Send IP Cmd
- Click green, Save Changes button
Test Changes

Return to Devices page and click (Exit)
Select the device (VSX A/V Receiver)
- Enter a command
- Click outside of the text box (so the entered text is stored in the System Variable)
- Click Send IP Cmd
After a short delay, the sent command should display, followed by the response sent by the VSX.