Yep thanks for that, that's how I had one of these devices pictured in my head... not sure what the now burned out RCCB adds except for unnecessary complexity? Safety devices which 'catch fire' are just great aren't they?
BTW you can see an 6 pin DIL IC in the circuit and a few other...