Counter-Strike: Global Offensive game state integration

Same here, I just never got started :frowning:. Off topic, what device do you use for zigbee then and what hardware are you running it all on?

zigbee2mqtt is running on a Raspberry Pi 3B+ with a Texas Instruments CC2531 sniffer.
I’m using the latest source routing firmware.

Home Assistant itself in running on an Intel NUC. Ubuntu 19.10 server as the base system with Home Assistant Supervisor on top.
You can read a lot more about my installation and check my actual configuration on GitHub - lociii/homeassistant-config: My HomeAssistant config

That’s great, thanks for your time i’m already using it for my cs:go games !

1 Like

I just learned about this. It is awesome. A while back I created a project to link my gas fireplace to HA. Link is below. Anyways, the fireplace takes a few seconds to actually light. So I need to listen for the bomb_planted event, wait about 35 seconds, and then kick off the fireplace. BUT, if the bomb never goes off(the next round starts before that 35 seconds is over), then I need to cancel that automation. Anyone know how to do that?

You could do that with a script.

  • Automation listens to bomb planted and triggers a script immediately
  • Script delays for 35 seconds and then starts the fireplace
  • Another automation listens to bomb defused or round start, etc. and cancels the script

Does that make sense for you?

Yes. That makes sense. I also created a separate post asking for this, and someone responded to start a timer. I think that’s the way to go:

1 Like

I got all this working. Here’s my write up on it with video.

Also, can your integration pull other data like player health and stuff like that?

There are way more data point to subscribe and listen to. However most of them are only available in GOTV or spectator mode. This is what broadcasters and tournaments use to control their UI and stage effects.
https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Game_State_Integration

I didn’t add those as I am using the integration while playing myself.
Feel free to figure out how they’re working and add a pull request.
Unfortunately the documentation of the dev page is a bit sparse but it lists some already made implementations that can be used for inspiration.

Have fun!

Hi guy i have install HACS and csgo game stat but it does not appear.

I have Home assistant 2020.12.1 with HACS 1.9.0 can you help me please.Thanks

Hey,

did you follow the setup instructions on https://github.com/lociii/homeassistant-csgo/blob/1d860db2dc7804c9ae2429c88ee5c3aae6c2b13c/info.md?
It’s not enough to install the extension but you need to set it up in HA and add a config to your CSGO installation.

Best, Jens

I’ll be having a little play with this over the next few days, so cool. Any updates on how it’s all working for you, any new additions to your automation? :smiley:

I’ve unfortnately stopped playing CS:GO because of all the cheaters. Maybe I’ll have a look at it again soon. Sounds like the last changes might have improved the experience.

i’m only ranked 1 star, so don’t usually come across any cheaters :blush:

Hi guys. I seem to have some problems with the automations.yaml part… has anybody else manage to make it work? regards

Maybe we can help when you describe your issue.
Do the events get fired?

Could you create a Dota2 version of this integration if it’s not much work?

Unfortunately I’m neither playing that game nor do I know if they provide the required integration. So I’m definitely not the right person to do so.

Do you just need to replace The light.exsampel with The right id of your bulb?

And install and set up the integration as explained on https://github.com/lociii/homeassistant-csgo/

The CS:GO gamestate integration got replaced by the far more capable Overwolf webhook integration. See Overwolf game event integration