Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.
/ warzone Public archive

Home assistant warzone api integration

License

Notifications You must be signed in to change notification settings

jacokok/warzone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warzone Integration

GitHub Release License hacs

This is a warzone integration for home assistant

This integration exposes a sensor for the current battle royal data from warzone.

This component will set up the following platforms.

Platform Description
sensor Show warzone battle royal stats.

Sensors

Sensor Description
sensor.warzone_cash Cash
sensor.warzone_contracts Contracts
sensor.warzone_deaths Deaths
sensor.warzone_downs Downs
sensor.warzone_gamesplayed Games Played
sensor.warzone_kdratio Kill Death Ratio
sensor.warzone_kills Kills
sensor.warzone_level Current Season Level
sensor.warzone_revives Revives
sensor.warzone_score Score
sensor.warzone_scoreperminute Score Per Minute
sensor.warzone_timeplayed Time Played
sensor.warzone_tokens Tokens
sensor.warzone_topfive Top 5
sensor.warzone_topten Top 10
sensor.warzone_toptwentyfive Top 25
sensor.warzone_wins Wins

Installation

  • Go to "Configuration" -> "Integrations" click "+" and search for "Warzone".

Configuration

Please note the Username and password used to login does not have to be your main account. You can create a new account to access the api but then you have to either set the profile you want to track to public or add the user you are logging in from as a friend.

Libraries

Thanks to https://github.com/EthanC/CallofDuty.py

Using this in lib because of python version mismatch. When home assistant runs on python 3.9 by default we can use this like normal.