Thanks yes, it seems to be here
https://github.com/OpenEVSE/OpenEVSE_PLUS
...i am fishing around to see what they do for Type B RCD, inclusing the DC 6mA detection....or do they buy in a (always expensive) RCD module?
Type B: detects DC leakage, AC leakage including 50/60Hz, half-wave rectified leakage, as well as high frequency (up to many kHz IIRC). The ones I know of have a full-featured fluxgate core sensor, and yes they cram in an entire offline PSU, analog/digital controller with relatively complex circuitry in a DIN rail mount unit.
In EVSE world, the cheapest way is a dedicated type A RCCB, with an EVSE-integrated 6mA DC leakage protection, usually according to IEC-62955; the device is called a RDC-DD and also usually uses a fluxgate such as
https://www.bender.de/fileadmin/content/Products/d/e/RDC104-4_D00402_D_XXEN.pdf. The vast majority of EVSEs out there don't comply with their ratings and are CE certified, so don't look too hard at units unless they've been 3rd party certified by VDE or CSA or whoever.
You can't "just self test" the DC sensing out of it because you're actually protecting the upstream type A RCCB/RCBO from being blinded by the 6mA DC leakage, as opposed to making something inherently immune to DC leaks. The IEC62955 standard also has plenty of clauses that prescribe stuff about what to actually do in case of a DC leak, simply opening power relays is insufficient if you care about complying with that specific standard, which is itself technically not a hard requirement.
Treez, just buy a type B, or a type A + integrated 6mA DC leakage detector if you want at least
some safety for the end user. Yes, they're $200+, and no, you won't be able to make it cheaper.