I am working on automating bluetooth actions on android like enable/disable, pairing/unpairing devices etc.
I want to know how to interact with unrooted android devi
You can use com.intangibleobject.securesettings.plugin. It allows all kinds of bluetooth shenanigans, aswell as conn/disconnecting devices one by one. If it needs to be shell, call securesettings intents, or export previously created actions from ijt via XPosedEdge.
dumpsys is your friend:
adb shell dumpsys -l
adb shell dumpsys bluetooth_manager