Here is a link to the PDF instruction sheet for the WS4777 (http://software.x10.com/pub/manuals/ws4777-is.pdf)
BLUE is your live wire in, BLACK is your load and RED can be capped off with a wire nut.
(http://www.bdshost.com/X10/lpup.gif)---(http://www.bdshost.com/X10/lpup.gif)---(http://www.bdshost.com/X10/lpup.gif)---(http://www.bdshost.com/X10/lpup.gif)---(http://www.bdshost.com/X10/lpup.gif)----KDR