Gaming Status Integration

It looks like something this MIGHT be possible with Exophase, although I’m not certain if it can specifically pull the platinum trophy info like you mentioned. I am investigating creating a companion Exophase Achievements integration that can then tie into my Gaming Status integration. It will grab info from all three major platforms (Xbox, Steam, and PlayStation). I’ll let you know what happens with it.

1 Like

It’s looking like it might actually be a possibility, although the downside of using a service like Exophase is that all tracked users have to create an account. So, it won’t be easy to track and compare friends, but it should work well for the user installing it. I have a working version that can grab the info from Exophase, and I’m currently working on integrating cover art into it and then creating some companion cards.

Alternatively, I could use three separate APIs for Steam, Xbox, and PSN, but the PSN one in particular is tricky since it runs a small risk of an account ban and the NPSSO token has to be refreshed every 60 days, which is a bit of a pain. If a better/official PSN API existed, it would make this MUCH easier.

I am still researching this. I have developed a test integration that can pull in Trophies/Achievements, and I am determining now if I can roll those features into Gaming Status or if they will need to stay in a separate, companion integration. Keep an eye on this thread for updates!

1 Like

Work and testing is still in progress for what will become v4.0.0. I have achievement tracking working now and am currently developing some new cards to display the new data. I hope to release it by the weekend if all goes well. Also, when I say “achievements”, that includes Steam / Xbox achievements as well as PlayStation trophies.

The integration will now be able to scrape entire game libraries on Steam, Xbox, and PlayStation for all tracked players as well as all unlocked achievements/trophies. The only gap is that it cannot see friend’s achievements on Steam, which is sadly a limitation of the API and not something I can work around. Also, this is all dependent on each players’ privacy settings.

I am currently testing a Recent Achievements card, following the formatting of Recent Sessions.

Here are some others I’m looking to create:

  • Achievement Leaderboards
  • Achievement Progress (% completed)
  • List of 100%/Platinum games
  • General Stats (# of games in libraries, Xbox gamerscore, average completion %, Steam play hours, trophy numbers, etc.)
  • Full Library (although this gets VERY lengthy, so I’m not sure)
  • Achievement Slideshow (if possible)

If anyone else has specific requests, please let me know!

1 Like

Awesome! Can’t wait to see it.

v4.0.0 has arrived!!!

I’m super excited about this release! It actually includes some massive changes, almost too many to keep track of, but here are the highlights that you’ll most likely care about. Definitely update Gaming Status Cards (v4.0.0+) as well to really take care of all of the new data!

New Features

  • Achievements/Trophies can now be tracked and reported by the integration for PlayStation, Steam, and Xbox using the official integrations that you probably already have installed. This led to the creation of a LOT of new cards for Gaming Status Cards to use! (v4.0.0+)
  • New Achievements & Ratings menu, including Native Content Ratings, Achievement/Trophy Tracking, and a Full Library Scan. Games you played before this feature existed can have their achievement history filled in automatically over time.
  • Excluded games list now also applies to your game library and achievements
  • Custom artwork applies to game libraries also
  • Title overrides and cleanups now also apply to game libraries
  • Devices are now created for each player profile, including all associated sensors and a new “Refresh library” button
  • PlayStation game ratings are now pulled directly from PlayStation instead of a third-party source (see Breaking Changes)

Bug Fixes

  • Xbox activity is now hidden from Discord to prevent false triggers
  • PlayStation activity is checked for recent changes before Discord will report it

Breaking Changes

  • RAWG API and ratings have been removed in favor of the native ratings now available
1 Like

Very cool! Now I just need to wait for it to add my library! So far it’s pulled some Steam achievements only but probably takes a while so whatever.

Question about this card, will this show my total current trophies all the time or will it show the trophies of the current game I’m playing when I’m playing?

It will take a while to populate your full libraries, depending on the number of games you have. It could take at least 12 hours, I’d imagine, possibly longer.

Concerning the PlayStation Trophies card, it will show your entire library, but I think I could easily add an option where it could show the trophies for the current game if/when a game is active.

I’ll work on that for the next version of Gaming Status Cards.

Please let me know if you notice that the update broke anything that I didn’t catch in my debugging. Or, if any of the new features just aren’t working after your library has been fully scanned.

Done. Try v4.0.1!

1 Like

Ohhhh… I think now I’ll add a blurred cover art option also! :slight_smile:

Yep. Go for v4.0.2. It’s even sexier! :smiley:

1 Like

Love it, looks great! And yep tested and it works, thanks.

Glad to hear it! If you have any other requests for features or cards, let me know! I’m sure I’ll be tweaking and revising things a bit more over the coming weeks as I use them a bit more.

1 Like

Gaming Status Cards is now available on HACS without a custom repository needed!


Here’s another new card I just added that displays library stats and recent activities for a single profile.

I probably need to stop adding new cards at some point, but I’m just not sure what people are going to want! :laughing:

1 Like

v4.0.2 includes a LOT of bug fixes!

If you haven’t updated yet, definitely give the latest release a try. There are no new features, but there are quite a few bug fixes and performance improvements. The summary from v4.01 + v4.02 is included below:

Bug Fixes

  • Fixed a bug where quickly switching between games could cause the wrong game’s artwork, rating, or achievement data to get saved.
  • Fixed a rare issue where playtime could be counted twice for players tracked across multiple platforms.
  • Fixed a bug where the last day of the week could get counted toward the wrong week in your weekly stats.
  • Fixed a bug where a “started playing” notification could occasionally announce the wrong game if you switched games quickly.
  • Fixed a bug where two players with very similar names (like “Bob” and “bob”) could conflict, causing one player’s data to disappear.
  • Fixed a bug where adding multiple notification destinations with similar names could cause one to silently overwrite another.
  • Fixed a potential slowdown caused by certain network and file checks blocking other parts of the integration.
  • Fixed a bug where saving the Advanced Settings page while Discord notifications were turned off would silently erase your saved Discord bot token and server ID, forcing you to re-enter them.
  • Fixed a bug where the game-tracking dropdown for Steam may not have shown your Steam sensor at all when adding a new player.
  • Fixed a bug where achievement/trophy updates found during a mid-session check weren’t actually showing up on the sensor until something else happened to refresh it.
  • Fixed the Discord notification fallback image (for setups without a public web address) — it was supposed to work but never actually did.
  • Fixed a bug where old, unreadable entries in your play-history could pile up forever instead of being cleaned out.

Performance Improvements

  • Fixed a bug causing the integration to check your hard drive for game artwork constantly (multiple times a second) while any game was being played, instead of just once. This was wasted work and especially rough on Raspberry Pi SD cards.
  • Games that SteamGridDB has no artwork for used to be looked up again on every single check, forever. Now that result is remembered for a day before trying again.
  • Cut down on repeated network requests to SteamGridDB, Discord, and other services that were being re-fetched more often than actually needed.
  • Reduced unnecessary background recalculation and duplicate checks (including the Raspberry Pi hardware check) that were running more often than needed.

Reliability

  • Improved the Discord integration so it recovers better after a dropped connection and shuts down cleanly when removed or reloaded.
  • Improved the speed of weekly/monthly stats calculations, especially for larger game libraries.
  • Added automated code-quality checks to help catch bugs faster in future updates.

Security & Privacy

  • Your PlayStation login token is no longer at risk of showing up in error logs.
  • The Discord bot token field is now hidden (masked) when you type it into settings, just like a password field.
  • Closed a few ways the integration could be tricked into fetching from, or saving to, locations it shouldn’t, when downloading game artwork from the internet.
  • Made sure your Steam and PlayStation login credentials can never accidentally end up visible in the app’s sensor data or saved files if something goes wrong while talking to Steam’s or PlayStation’s servers.
  • Tightened up which file types can be saved when fetching artwork, so a bad image link can’t sneak in something other than an actual image.

Interface Changes

  • Curfew and Weekly Report times in Settings now use a proper time picker instead of typing the time in as plain text.
  • If you type something invalid into the Game Title Overrides or Content Rating Overrides boxes, you’ll now see a clear error message pointing out the problem instead of your entry silently being ignored.

Special thanks to @nikosavola for his contributions to v4.0.1