@classmethod
def from_config(cls, xknx, name, config):
    """Initialize object from configuration structure."""
    group_address_long = config.get('group_address_long')
    group_address_short = config.get('group_address_short')
    group_address_position = config.get('group_address_position')
    group_address_position_state = config.get('group_address_position_state')
    group_address_angle = config.get('group_address_angle')
    group_address_angle_state = config.get('group_address_angle_state')
    travel_time_down = config.get('travel_time_down', cls.
        DEFAULT_TRAVEL_TIME_DOWN)
    travel_time_up = config.get('travel_time_up', cls.DEFAULT_TRAVEL_TIME_UP)
    invert_position = config.get('invert_position', False)
    invert_angle = config.get('invert_angle', False)
    return cls(xknx, name, group_address_long=group_address_long,
        group_address_short=group_address_short, group_address_position=
        group_address_position, group_address_position_state=
        group_address_position_state, group_address_angle=
        group_address_angle, group_address_angle_state=
        group_address_angle_state, travel_time_down=travel_time_down,
        travel_time_up=travel_time_up, invert_position=invert_position,
        invert_angle=invert_angle)
