'Return the state of the device.'

@property
def state(self):

    wink_state = self.wink.state()
    if (wink_state == 'away'):
        state = STATE_ALARM_ARMED_AWAY
    elif (wink_state == 'home'):
        state = STATE_ALARM_DISARMED
    elif (wink_state == 'night'):
        state = STATE_ALARM_ARMED_HOME
    else:
        state = STATE_UNKNOWN
    return state
