Skip to content

Node Red flow to create NHL standings sensors in HomeAssistant

Notifications You must be signed in to change notification settings

dennyreiter/NHLStandings-HA

Repository files navigation

NHLStandings-HA

Node-RED flow to create NHL standings sensors in HomeAssistant

NHL Standings Flow

Requirements

Installation

If you don't yet have node-red-contrib-home-assistant-websocket set up, you will need to configure that in Node-RED and also install the hass-node-red integration in Home Assistant. It's definitely useful not only for this, but for many other automations. You also need the Node-RED loop processing contrib to easily handle arrays.

In Home Assistant, you will need List Card by @iantrich installed in Home Assistant in order to display the information. It's meant to use with the FeedParser integration, but will work with any sensor data as long as it's formatted reasonably and not multi-level, which is what a lot of fixing that the Node-RED flow does.

lovelace-card-mod would be useful for styling the tables so they are not so fugly.

The YAML file is for a complete dashboard. You can paste it into the raw configuration editor on a new Lovelace dashboard. I plan on converting it to use Decluttering card at some pont to make it more manageable.

NHL Standings List Card

Sensors

entity description
sensor.nhl_standings Current League Standings
sensor.nhl_division_discover_central Central Division standings
sensor.nhl_division_honda_west West Division standings
sensor.nhl_division_scotia_north North Division standings
sensor.nhl_division_mass_mutual_east East Division standings

Troubleshotting

  • If you've re-imported the flow, or cut and pasted parts, especially the entity nodes, you might have multiple entities, such as nhl_standings_2, so you'll have to remove or rename the orphaned entity and then renamed the duplicate to the original
  • If you receive the error "unknown arrays" when you deploy the first time in Node-RED, you don't have node-red-contrib-loop-processing installed. Install it in your pallette.

Credits

https://gitlab.com/dword4/nhlapi

About

Node Red flow to create NHL standings sensors in HomeAssistant

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published