Drain pipe valve under garbage disposal for compost
Absolutley there is such a thing. you want a &quot;greywater diverter&quot; valve.
Many styles are available. but I recommend you pick a different location for the bucket as forgetting the valve could get messy and expensive.