Help with capturing events from connected Bluetooth device as trigger

wolk_tambowskij

New member
Hello all.

I have a BLE device connected to my phone and need to perform an action when the device is put on charging and removed from charging, as during the charging process it remains on and connected.
With the help from the LightBlue app (https://play.google.com/store/apps/details?id=com.punchthrough.lightblueexplorer) I've found out that my BLE device supports the Bluetooth Notify method and that the HEX string received from the device changes when it's charging.
In the LightBlue app I need to go to the device properties and to subscribe to receive those messages (see attached pictures) - how can I achieve the same using Macrodroid?

Thanks a lot in advance!
 

Attachments

  • Screenshot_20240126-154022.png
    Screenshot_20240126-154022.png
    144.6 KB · Views: 5
  • Screenshot_20240126-154008.png
    Screenshot_20240126-154008.png
    158.9 KB · Views: 5
  • Screenshot_20240126-153758.png
    Screenshot_20240126-153758.png
    173.8 KB · Views: 5

wolk_tambowskij

New member
Update.
Searching the internet I came to the conclusion that I most likely have to play with the intent android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT, but I still don't understand how exactly to use it...

Any help stil appreciated!
 
Top