Counter Strike 2 GSI Intergration
Hey everyone! ![]()
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
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
sensorandbinary_sensorentities automatically, cleanly grouped under a Device for your Steam ID. -
One-Click Config: You can download the generated
gamestate_integration.cfgdirectly 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_atTimestamp!
Installation
-
Install via HACS using the badge above, or add the repository manually as a Custom Repository.
-
Go to Settings -> Devices & Services -> Add Integration -> Counter Strike 2 Stats.
-
Once added, open the integration config, click the link to download the
gamestate_integration.cfgfile. -
Drop the
.cfgfile into yourSteam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfgfolder.