add handler to treat button as (periodic) sensor