FootBall Cardfor Home Assistant Lovelace UI.
Plugin | README |
---|---|
Node-Red | https://github.com/hassio-addons/addon-node-red |
Dark-mode | Select the theme dark-mode in Home-Assistant |
This card is available in HACS (Home Assistant Community Store).
Just search for FootBall Card
in HACS Frontend
tab.
- Download football-card.js` file from the latest release.
- Put
football-card.js
file into yourconfig/www
folder. - Add a reference to
football-card.js
in Lovelace. There's two way to do that:- Using UI: Configuration → Lovelace Dashboards → Resources → Click Plus button → Set Url as
/local/football-card.js
→ Set Resource type asJavaScript Module
. - Using YAML: Add the following code to
lovelace
section.resources: - url: /local/football-card.js type: module
- Using UI: Configuration → Lovelace Dashboards → Resources → Click Plus button → Set Url as
- Add
custom:football-card
to Lovelace UI as any other card (using either editor or YAML configuration).
This card can be configured using Lovelace UI editor.
- 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
-
In Node Red, import to the flow
-
Lovelace UI add to entrys
- done!