[Custom Integration] Playnite Web MQTT Home Assistant Integration

I’m excited to share a custom integration I’ve been working on that connects your Playnite game library with Home Assistant using MQTT. This evolved from an earlier proof-of-concept into a much more streamlined and flexible solution for controlling your games directly from your Home Assistant dashboard or even Voice Assistants!

View on GitHub

Add to HACS

Blog Post

:hammer_and_wrench: Features include:

  • Game Control via Switches: Start and stop your games via Home Assistant with a single click.

  • HASS user defined scripts: Add your own scripts to hook into turn_on and turn_off events for more advanced control.

  • Metadata Retrieval: Fetch game cover images and metadata, and add them as attributes to the game switches. This allows you to build lovelace dahsboards using the game metadata and covers directly from Home Assistant switches.

  • Voice Assistants: Expose game switches to Google Assistant and control your games with voice commands. You will need a working Google Assistant integration with Home Assistant for this to work - then simply add domain switches to your Google Assistant configuration and you’re good to go!

:construction: Limitations (for now):

  • Stopping games doesn’t fully work due to Playnite limitations, but I’m working on some interesting workarounds - with inspiration from PlayState plugin.
  • Game state accuracy could be improved.
  • Differentiating between different releases of the same game is not yet supported when it comes to game state.

Big thanks to @andrew-codes for his excellent work on the Playnite Web Plugin, which has been the backbone of this integration!

If you’re into smart home automation and gaming like I am, or just want to simplify your gaming setup, this integration might be a great addition to your Home Assistant environment. I’d love to hear your feedback, thoughts, and ideas on how this could be further improved! :blush:

Let me know if you give it a try, or if you have any questions!

View on GitHub

Add to HACS

Blog Post

NOTE: Addition to HACS is still pending so for now you will need to add custom repository cvele/playnite_web_mqtt to your HACS.