Some (all?) phones will have 'smart lock' setting that permits 'unlock when connected to trusted devices' to work with with Bt and/or wi-fi connections as well as cord connections.
Can also be / stay unlocked in trusted physical locations.
Trusted devices could be bike, car, headset, etc.
When adjusting this setting, mine will bring up a list of devices it has been paired to so the desired ones can be picked from the list.
Trusted locations will let locations be picked from google maps.
Settings>lock screen & security>secure lock settings>smart lock>then enter lock code>'smart lock options appear'