Counter-Strike 2 GSI Integration

Counter Strike 2 GSI Intergration

Hey everyone! :waving_hand:

I want to share a project I've been working on that brings Counter Strike 2 (CS2) directly into Home Assistant. I wanted to build a 100% native Custom Component that is plug-and-play and creates beautifully organized devices for your game state data.

If you ever wanted your smart home to react to in-game events – like your room flashing white when you get flashbanged, or pulsing red in sync with the C4 bomb timer – this integration provides all the real-time data you need to build those automations!

GitHub Repository: https://github.com/KaufDirEins/CS2-GSI-Integration

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

:rocket: Features

  • Zero Middleware: No external brokers or scripts needed. The integration spins up its own HTTP listener inside Home Assistant and receives GSI payloads directly from the game.

  • Native Entities: Creates proper sensor and binary_sensor entities automatically, cleanly grouped under a Device for your Steam ID.

  • One-Click Config: You can download the generated gamestate_integration.cfg directly from the Home Assistant integration UI and just drop it into your CS2 folder.

  • Tons of Data Points:

  • binary_sensor: Flashed, Alive, Has Bomb, Has Defuse Kit

  • sensor: Health, Armor, Money, Kills, Deaths, MVPs, Round Phase, Round Winner, Team Advantage, Clutch State

  • Granular Data: Burning % (Molotov), Smoked % (Inside Smoke)

  • Live Bomb Data: State (Planted, Defused, Exploded), exact Bomb Timer (seconds left), and an absolute bomb_ends_at Timestamp!

:inbox_tray: Installation

  1. Install via HACS using the badge above, or add the repository manually as a Custom Repository.

  2. Go to Settings -> Devices & Services -> Add Integration -> Counter Strike 2 Stats.

  3. Once added, open the integration config, click the link to download the gamestate_integration.cfg file.

  4. Drop the .cfg file into your Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg folder.

1 Like