For anyone jumping into this thread hoping to see capacitor use for timing, there is this blog post about something like that:
https://notes-huy-rocks.translate.goog/posts/diy-pomodoro-ti...
(google translate link because the original post was in Vietnamese)