def parse_zgp(response):
    """Parse the json response for a ZGPSWITCH Hue Tap."""
    TAP_BUTTONS = {(34): '1_click', (16): '2_click', (17): '3_click', (18):
        '4_click'}
    press = response['state']['buttonevent']
    if press is None:
        button = 'No data'
    else:
        button = TAP_BUTTONS[press]
    data = {'model': 'ZGP', 'name': response['name'], 'state': button,
        'last_updated': response['state']['lastupdated'].split('T')}
    return data
