This topic is covered in three different ways:
1) Downloadable, printable PDF:
DirecTV IP Control PDF
2) YouTube video tutorial:
Be sure to switch to 720p and view the video full-screen for best viewing.
3) Web Article
Step 1: Import device in the iRule Builder called "DirecTV Satellite HTTP" when searching for Type=Satellite + Vendor=DirecTV
Step 2: In the iRule app add a HTTP GATEWAY with IP address of the DirecTV box that you are looking to control. IPv4 field should look like this: xxx.xxx.xxx.xxx where xxx.xxx.xxx.xxx is the IP address of the DTV box you are looking to control via IP.
Step 3: Port number is 8080
Step 4: Assign your DTV device to this gateway
Step 5: Go into the Settings menu of the DTV receiver and go under Whole-Home menu. Inside that menu, make sure that all items under External Device are set to Enable.