Update: Using the OpenXbox project someone pointed me to the nodejs library they have developed. So I used that on on e a new version of this xbox app.
So what did I manage at this point:
Turn ON and OFF the console from Homey!!!
Flow trigger on running app change, meaning you can detect what APP/GAME is actually running on the console (now with appid, image and name tokens)!!
Send button commands (controller/media) to the console from workflow and device page.
Apps are translated to a proper name and artwork is downloaded and added to the now playing page (requires live id authentication).
The Game name are returned in a not so nice name.
These are not part of the same store listings as the apps. Just need to find an endpoint for the games to make those work.
To authenticate the app you need to get a refreshtoken from the XBox live ID service.
You need to use a private/incognito browser mode and go to the URL:
After login the browser shows an white page. Its the URL you are interested in, in that URL the refreshtoken is available. Copy that token and open the app settings, paste the token in and press save.
Now the apps should show nice artwork.
The homey oauth2 flow is not working in this case since we do not have a proper app registration available, so I need to find a workaround to retrieve the URL from the settings page, but did not find any so far
But the app brings a lot of XBox features so have fun finding use cases. And share them here