I am looking to have automations that will make my phone connect/disconnect to/from specific devices using bluetooth connection. I suspect this has to be done via intent notifications. But I am definitely lost in my search.
Anybody knows if this is possible (I have samsung phone with Android 10) and how?
A use case scenario is to connect to my car or some speakers in my home, depending on my activity, then starting a routine, and disconnect after the routine.
you can always use tasker as a workaround, send a broadcast intent from the app using a notification command to tasker. Then in tasker listen for that event and setup your automation that way.
Thank you for your answer. I may look up for that way of doing it, despite that I turned to Home Assistant in order to get away from Tasker.
Have a good day.
you are referring to turning bluetooth on/off which indeed that change in android 13, this request in particular is to change the connecting BT device which is not the same
I don’t wish to to divert the subject out of HA here. But for people who stumble on this thread and are tempted by Tasker, you may find Macrodroid a more user friendly alternative.
I read that it was not possible to make a connection too, but it seems that if the device is already bonded (paired) then it is possible, otherwise the same security issues arise as with enabling/disabling BT.