[New] Custom Integration - xBox Controls

Hello everyone, i created a custom integration to control an xBox console via IP.
I am a new UC3 owner (2 weeks) and i truly believe this is (finally) a Harmony Elite replacement, great job to the Unfolded Team.

I wanted to be able to control an xBox console via IP and not IR (reduce cable needs (IR Cable)) and so i created this integration.

Few Disclaimers:

  1. I am new to this, i am not a developer, took me massive amount of trial and error and a lot of sleepless nights to get this to work.
  2. Due to DRM laws and API limitations, the remote will not work in app, meaning if you launch Netflix, YouTube etc, the remote will not function - This is due to DRM laws and regulations.
  3. The remote will have full Dashboard support (Direction Pad, A,B,X,Y, colors, play, pause, etc) and more importantly a fully functional on/off commands which can be mapped to physical buttons on the remote.
  4. I have worked a lot on the README.md file to try and cover in details all steps for integration both via Docker and via local upload tar.gz - Please read carefully before attempting.

I hope this helps, this is my first contribution so i am a bit excited about it. I can finally go to sleep lol.

This could not have happened without the help from some really smart guys: @JackPowell and @mikehobin , i can’t thank you guys enough!

You can find the integration here: GitHub - mase1981/uc-intg-xbox

Thank you so much and have an awesome day.

6 Likes

Hello, thank you for this integration. The latest version works great for me, however your Xbox Live integration throws up an error. I have logged a issue on GitHub for it, but just wanted to make you aware of it on here also.

Hi, yeah - the xbox live integration is not working , i forgot to take it down. reason why its not working is because xbox doesnt expose the art work, i couldnt make it work. i apologize. thank you !

1 Like

Oh damn, that sucks. I’ve seen through Home Assistant that it appears to be a pain to get the artwork and so I was really excited when I saw your integration.

It makes me laugh how you can easily get the artwork on PS5, but controlling it remotely is a pain and on Xbox, it’s easy to remotely control it, but a pain to get the artwork!

Yss, trust me i went into this rabbit hole so bad. i had the integration working, i was able to get the widget but for the life of me i couldnt get the image, after many trial and error i learned the actual art work is not supported, and i can only pull text which is kind of useless. i am actually working on a code right now to control the PS5, i have it (in lab) alll the way to initatiate the remote play but then i hit this issue: PS5 Error Code CE-110032-7 – Help & Support | PlayStation and i cant get past it and i am unsure if the issue with my dev environment or actual issue with sony, i am so close yet so far for the ps5 integration lol.

1 Like

If you are able to get the game’s name you could mabe load the artwork from somewhere else?
Have you found out why the http requests take that long? I could test it on another machine to see if this a server or a client problem.

Yes Sir. That’s what I’m looking at today, found an api where I can get the artwork, currently working on trying to figure out to get the currently playing game from xbox+webapi. I’m working on it, hopefully I’ll get it to work. For now I moved the repo to private to not confuse people. It’s a bit tricky, I wish it was more streamlined. But hopefully I’ll get it to work sometime soon when time permit. If I can get the game name, I can use the secondary api to pull the image. I already have the remote portion done (media card)


Man, that was a long day… i think i figured it out ! i need to package this up and test the final tar.gz… but its working in lab… xbox game show on the remote succesfully :slight_smile: this will be my next integration …

1 Like

Yes! Nice work!

1 Like

Jumped on the Xbox Live integration quick as I’m super interested in it and I’m getting the same error as previously when I add my device ID and API key.

“Driver not connected. Failed to connect to host: Connection refused (os error 111)”

Edit: I also noticed alter setting up the Xbox remote integration earlier that it was showing a status of “Unavailable” and I had to run the setup again to get it working again.

lol. i am not done yet man… working on it… i’ll post a new thread when im done, to not muddy this one. trying to figure out the 111 error.

@cobhc you said you got it to work? i am still getting the 111 error . it is working in my lab, it should work on the remote. i am struggling with this 111 error…

Apologies for muddying up this thread!

I got the Xbox Control integration to work, yes but then all of a sudden the entity showed as “Unavailable” and I had to re-run the setup.

oh ok. got it. the xbox live (new upcoming) integration is what i am struggling with the 111 error now. i’ll work on it and as soon as i figure it out ill start a new thread for the new integration.

1 Like

Thank you for your work!

1 Like

@cobhc

the new xbox live integration is up :slight_smile:

1 Like

After an amount of time, this still shows the Xbox entity as being unavailable for me. I thought it was because it wasn’t on the same network (despite firewall rules being set up), but I’ve tried the Xbox being on the same network as the remote and it’s still doing it. The only solution is to rerun the setup. Anyone else having this issue?

@cobhc to confirm, you talking about the controls integration, not the xbox live, right? also, you using docker or tar.gz? anything in the remote debug logs? also, did you check the pre-reqs? enabled sleep mode and remote play on the xbox? you also mentioned only solution is to re run setup, are you saying it works and then get into a disconnected state and you have to re run setup?

Yes, the controls integration. I’m using the tar.gz version. I’ll have to get new logs from when it drops it again as I’ve done a restart recently and that will be confusing things.

Yes, the Xbox is set to sleep mode, remote play enabled.

It works when I run the setup and it shows the status of the Xbox (on or off), but then it shows “unavailable” as the status until I re-run the setup at which point it refreshes the status again.

Hey, so after debug i learned that after remote reboot the auth need to be redone, the token doesnt live past reboot. so the “fix” is the redo the setup to generate new auth token.