When I get a chance I will add the simple schematic for the wall box. But, it is pretty simple - connect the wall box to the fairchilde ac line sensing chip (with the appropriate resistor as per the data sheet for the24v level), then drop the output voltage to 3.3v for the pi with a voltage divider... that's all there is too it.