all my other sensors work and this just doesn’t. I have checked api keys and xuids over and over with no joy, Is there any issues i am unaware of with this sensor?
That’s a shame, I was hoping to get some nice automation setup around my gaming group all being online, whats the best way to raise this issue with the plugin maintainer?
Mine seems to be working fine, try the below. Check over at xboxapi.com and ensure you have logged in with your Xbox Live account. Failing that, make sure that Microsoft haven’t been flagging their IP address as malicious via microsoft.com
I have copied your example and it shows now but doesn’t have any attributes, I have checked the api and it shows i have the one request but still doesn’t show anything.
Check over at XboxAPI, ensure you are logged in and check under Rate Limiting to see if you have been sending any requests and therefore using up your rate limit.
For example:
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 74
If it is being used up, then likely points to an issue with your HomeAssistant frontend.
I set this up last night and I have everything working. The problem I have is I use up my 120 requests 12 minutes into the hour. The component page doesn’t say anything about the request interval so I think I will have to dig through the code.
I use mine to track if the Xbox is on and being used as the main media device in the lounge.
You can also extract what app/game is being used on the Xbox and initiate automation’s based on that. Eg: if using Plex/Netflix, then dim the lights etc.
You can setup a Template Sensor to extract the running application out of the Xbox API sensor.
Use the below and change “pawnynz” to whatever your Xbox Live username/sensor name is. It will create a sensor where if you are offline, it will display “Offline”, else it will display the name of the running app/game.
At the moment, when my profile is not online it shows “Xbox: Turned Off” and when on, it shows what game or app I’m playing.
I have a few questions though.
When on the dashboard, my HA displays nothing, is there a way to code it so that when no title is being played it shows “Turned On” or “Dashboard”?
How do I now automate things based on what game/app is running? I’d like to dim the lights if playing bbc iplayer or netflix, and eventually when I get cool RGB lights in here I’d like to activate certain colour schemes when playing certain games.