def METHOD_NAME(step):
    """
    Step to create a notifyConditions
    a notify conditions with the following data
    | type(ontime or onchange) | time (ontime type) || attributes(list, separated by comma) |
    :param step:
    :return:
    """
    world.notify_conditions = NotifyConditions()
    for line in step.hashes:
        if line['type'] == 'ontime':
            world.notify_conditions.add_notify_condition_ontime(line['time'])
        elif line['type'] == 'onchange':
            world.notify_conditions.add_notify_condition_onchange(
                line['attributes'].split(',').strip())
        else:
            raise ValueError(
                'The type specified "{type_specified}" is not valid, it has to be "ontime" or "onchange"'.format(
                    type_specified=line['type']))