Please explain what I think these are.

Yup, the little canister is a mechanical time delay for your key light. Sometimes they work, most of the time they don't.