davidramiro / yeelight-valve-gsi

💡 Changing light scenes on Yeelight smart lights for different scenarios in Valve games using GSI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yeelight-valve-gsi

Changing light scenes on Yeelight smart lamps for different in-game scenarios in Valve games using game state integration.

Prerequisites

  • Windows (standalone) or Linux (python3 installed)
  • CS:GO or Dota 2 on Steam
  • Any Yeelight/Xiaomi/Mijia Wi-Fi lamp

Usage

  • Windows: Download the latest binary from releases
  • Linux: Clone the repo.
  • To control your Yeelights via local network, you need to enable the developer mode (also called LAN mode) on your lamps in the Yeelight app.
  • Set your lamp's IP addresses in the config.ini.
  • Copy the gamestate_integration_yeelight.cfg from the cfg directory to the corresponding game folder. For CS:GO that would be gamedir/csgo/cfg and for Dota 2 it goes into gamedir/game/dota/cfg/gamestate_integration. Run your gsi-xxxx executable of choice and launch the game.

TODO

CSGO

  • Round state colors
  • Bomb state colors
  • Multiple lamp support
  • Player health colors and warning
  • Bomb flashing
  • Ammo warning

Dota 2

  • Player health colors
  • More player state scenes (IsSilenced, IsStunned, IsHexed, ...)
  • Ult/Ability scenes (CanCast, IsActive, Cooldown, ...)

Note: I'm not a Dota player myself so I don't know what features might be desirable. Feel free to get in touch via the issue section for suggestions. Same for CS:GO of course.

Credits

Gratefully using the Yeelight python library by Stavros Korokithakis.
Copyright (c) 2016, Stavros Korokithakis
All rights reserved.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

💡 Changing light scenes on Yeelight smart lights for different scenarios in Valve games using GSI

License:Other


Languages

Language:Python 100.0%