The CHERRY energy harvesting switch

The CHERRY energy harvesting switch does all this:-

CheeryHarvest