Skip to content

tv4you2016/Football-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FootBall Card

hacs_badge

FootBall Cardfor Home Assistant Lovelace UI.

FootBall-card

Pre-requisites:

Plugin README
Node-Red https://github.com/hassio-addons/addon-node-red
Dark-mode Select the theme dark-mode in Home-Assistant

Installing

HACS

This card is available in HACS (Home Assistant Community Store).

Just search for FootBall Card in HACS Frontend tab.

Manual

  1. Download football-card.js` file from the latest release.
  2. Put football-card.js file into your config/www folder.
  3. Add a reference to football-card.js in Lovelace. There's two way to do that:
    1. Using UI: ConfigurationLovelace DashboardsResources → Click Plus button → Set Url as /local/football-card.js → Set Resource type as JavaScript Module.
    2. Using YAML: Add the following code to lovelace section.
      resources:
        - url: /local/football-card.js
          type: module
  4. Add custom:football-card to Lovelace UI as any other card (using either editor or YAML configuration).

Using the card

This card can be configured using Lovelace UI editor.

  1. In Home Assistant, we create a shell_command and an automation that will run it.
shell_command:
  ha_start: 'curl http://localhost:1880/hastart'
  # http://localhost:1880/endpoint/hastart if you're using the Node-RED Community Hass.io Add-on.

automation:
  - alias: homeassistant_start
    trigger:
      - platform: homeassistant
        event: start
    action:
      - service: shell_command.ha_start
  1. In Node Red, import to the flow

  2. Lovelace UI add to entrys

entrys

  1. done!

done