Another popular app: Automate now has the ability to get info about devices that are connected to tethering. It's compatible with Android 9+. It would be good to see this here in MacroDroid.