Context: I'm willing to create an automation app which is a plugin for Tasker and Macrodroid automation apps that allows me to control my devices.
Since my devices are all connected to the Smart Life app I need to call APIs/SDK in order to list and receive notifications for them.
I don't want to create a new, separate, application where to register all the devices because my app must be a plugin, to ADD features to Smart Life, not to replace it.
Problem: I've tied creating my app following the tutorials but basically this means I'm creating a separate app and thus my app does not see any of my Smart Life devices :-/
Question: how do I configure my Android app in order to see the devices which are already registered in the smart Life app? I totally understand that I will need ask the user the Smart Life credentials and this is ok
So far I've guessed that perhaps I might try "intercepting" the app_key+secret used by Smart Life but this seems like an hack. Any official ways to do this?
thanks everyone for support!
P.S.: best thing would be that Smart Life for Android exports Tasker actions but unfortunately it does not