AttonRisk
Results
2
comments of
AttonRisk
Something like the AtTiny85 could make for a good candidate to offload the work onto. They are also cheap and pretty easy to integrate.
Do keep in mind the issues of power factor and harmonics when dealing with mains power