[ref] Deduce devicename automaticaly + promise refactoring