Giter VIP home page Giter VIP logo

ha-nfl's Introduction

NFL game data in Home Assistant

This integration fetches data for a specific NFL team's current/future game, and presents the data as a sensor with attributes for most details of the game.

The integration is a shameless fork of the excellent NWS alerts custom component by @finity69x2.Thank you for the starting place!

Installation:

Manually

Clone or download this repository and copy the "nfl" directory to your "custom_components" directory in your config directory

<config directory>/custom_components/nfl/...

HACS

Open the HACS section of Home Assistant.

Click the "..." button in the top right corner and select "Customer Repositories."

In the window that opens paste this Github URL.

In the window that opens when you select it click om "Install This Repository in HACS"

After installing the integration you can then configure it using the instructions in the following section.

Configuration:

You'll need to know your team ID, which is a 2- or 3-letter acronym (eg. "SEA" for Seattle or "NE" for New England). You can find yours at https://espn.com/nfl in the top scores UI.

Via the "Configuration->Integrations" section of the Home Assistant UI

Look for the integration labeled "NFL" and enter your team's acronym in the UI prompt. There are also fields for refresh interval and timeout, which are safe to keep as-is.

Manually in your configuration.yaml file

To create a sensor instance add the following configuration to your sensor definitions using the team_id found above:

- platform: nfl
  team_id: 'SEA'

After you restart Home Assistant then you should have a new sensor called sensor.nfl in your system.

You can overide the sensor default name ("sensor.nfl_score") to one of your choosing by setting the "name:" option:

- platform: nfl
  team_id: 'SEA'
  name: Seattle Game Sensor

Using the configuration example above the sensor will then be called "sensor.my_nfl_sensor"

ha-nfl's People

Contributors

finity69x2 avatar zacs avatar firstof9 avatar d34dc3n73r avatar eracknaphobia avatar conorsham avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.