Handling events using tellstick duo