Use characteristic HasValue instead of IsXxxButton interfaces.