An electrically powered vehicle comprising: a power storage device; an inlet to which a connector (17, 18, 19) of an external facility (10, 21) external to the vehicle can be attached; a lock mechanism that switches from one of a lock state and an unlock state to the other state, the lock state being a state in which removal of the connector (17, 18, 19) from the inlet is restricted, the unlock state being a state in which removal of the connector (17, 18, 19) from the inlet is permitted; a detection device that detects attachment of the connector (17, 18, 19) to the inlet; and a control device that controls the lock mechanism using a result detected by the detection device, wherein when the attachment of the connector (17, 18, 19) to the inlet is detected, the control device obtains, from the external facility (10, 21), first information about power which can be exchanged between the connector (17, 18, 19) and the power storage device, the first information includes a potential of a connector connection signal, wherein the potential of the connector connection signal depends on resistance values of a first resistor and a second resistor provided in the connector, the potential has a different value depending on a type of the connector, the control device determines the type of the connector based on within which of a plurality of preset ranges the potential of the connector connection signal obtained when the connector is attached to the inlet falls, when the control device determines based on the first information that the power can be exchanged between the connector (17, 18, 19) and the power storage device, the control device sets the lock mechanism to the lock state, and when the control device determines based on the first information that the power cannot be exchanged between the connector (17, 18, 19) and the power storage device, the control device sets the lock mechanism to the unlock state. a power storage device; an inlet to which a connector (17, 18, 19) of an external facility (10, 21) external to the vehicle can be attached; a lock mechanism that switches from one of a lock state and an unlock state to the other state, the lock state being a state in which removal of the connector (17, 18, 19) from the inlet is restricted, the unlock state being a state in which removal of the connector (17, 18, 19) from the inlet is permitted; a detection device that detects attachment of the connector (17, 18, 19) to the inlet; and a control device that controls the lock mechanism using a result detected by the detection device, wherein when the attachment of the connector (17, 18, 19) to the inlet is detected, the control device obtains, from the external facility (10, 21), first information about power which can be exchanged between the connector (17, 18, 19) and the power storage device, the first information includes a potential of a connector connection signal, wherein the potential of the connector connection signal depends on resistance values of a first resistor and a second resistor provided in the connector, the potential has a different value depending on a type of the connector, the control device determines the type of the connector based on within which of a plurality of preset ranges the potential of the connector connection signal obtained when the connector is attached to the inlet falls, when the control device determines based on the first information that the power can be exchanged between the connector (17, 18, 19) and the power storage device, the control device sets the lock mechanism to the lock state, and when the control device determines based on the first information that the power cannot be exchanged between the connector (17, 18, 19) and the power storage device, the control device sets the lock mechanism to the unlock state.