Just checked, and you can get smaller SSRs - you could get just the SSR itself too, as it looks like you don't need any special circuitry.
Another option for sensing is to use a relay with a coil that can be powered from mains, and to then connect the Espruino to the contacts on it....
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Just checked, and you can get smaller SSRs - you could get just the SSR itself too, as it looks like you don't need any special circuitry.
Another option for sensing is to use a relay with a coil that can be powered from mains, and to then connect the Espruino to the contacts on it....