My NFL Integration started erroring out recently. If I try to follow the link for documentation or known issues on github, it fails. The best I can tell is that it is trying to get to ha_nfl instead of ha-nfl (underscore vs. a dash). Would this also lead to the integration not loading with the following log entry? Or is this just normal at this point in between seasons?
Error setting up entry Green Bay Packers for nfl
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File “/config/custom_components/nfl/init.py”, line 66, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
AttributeError: ‘ConfigEntries’ object has no attribute ‘async_setup_platforms’
If anyone’s interested, I made a dashboard with dynamic cards for the whole league to follow all the games.
In addition to ha-nfl and ha-nfl-card, the custom card auto-entities is also needed.
I have a issue setup the NFL Game Score Light Color Flasher
I ran a test via the Automation and got a error of :
Stopped because an error was encountered Error rendering data template: UndefinedError: 'dict object' has no attribute 'entity_id'
You can’t test via the automation editor because the automation depends on trigger data that has to come from actual entity changes. Once it’s set up, it’s possible to manipulate the entity attributes via the States tab in Developer Tools to test. The sensor state has to be set to IN first (it is most likely PRE at the moment of writing this). Then you can change the team_score attribute of the nfl entity (and opponent_score if you’re also activating on it).
Yes, it’s intermittent. Looking at the logs it’s happened 75 times in the past 2 weeks. I first noticed when I went to view the score in my dashboard and it wasn’t available. I wasn’t sure if it’s something in my system or the ESPN API.
Not super familiar with that. It’s like Hyperion right? If they have a json api, you can check out this post to see an automation and shell command I used with Hyperion.
That would work for any team (and opposing team) using the RGB colors from the team sensor, make sure to change team_colors_rbg to team_colors_rgb as that was corrected after I made the automation.
I personally don’t really use it anymore, but call a custom effect in hyperion as well as some WLED strips. If you run into problems I can post the automation I use.
Please post the automation you use. Hyperhdr is just hyperion just enhanced for HDR. what i’m looking for is when my Cowboys play hyperhdr does team colors and effects when they score. Then when game done. go back to normal HyperHDR
The first delay is set up in case the sensor is ahead of the broadcast. The second delay is so the effects terminate after 10 seconds. You can adjust the conditions so they only happen for touchdowns or field goals. They’re currently set so every point triggers the automation.
This is a version with the LIFX and WLED effects stripped out.
Yeah you can make your own, or use a default one and define colors. I started with the police light effect and changed a couple settings and colors for my go pack go effect.
I just installed this today, and as simple as the setup appears to be, it is erroring out on me when I restart HA:
Log details (ERROR)
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:361
integration: Sensor (documentation, issues)
First occurred: 3:12:20 PM (1 occurrences)
Last logged: 3:12:20 PM
Error while setting up nfl platform for sensor
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 361, in _async_setup_platform await asyncio.shield(awaitable) File “/config/custom_components/nfl/sensor.py”, line 40, in async_setup_platform config.entry_id = slugify(f"{config.get(CONF_TEAM_ID)}") ^^^^^^^^^^^^^^^ AttributeError: ‘NodeDictClass’ object has no attribute ‘entry_id’
Hmmmmm. My config in configuration.yaml is super simple:
# Follow the Kansas City Chiefs
- platform: nfl
team_id: 'KC'
This is in the ‘sensor’ section of my configuration.yaml. I’m a solid user of HA but I’m not very familiar with troubleshooting it… I don’t see any sensor created. I’m happy to provide any information that may help if you let me know how to gather it. Thanks so much!
Geez, never mind, I was confused about configuring this. I followed the instructions more closely and it’s working just fine. Sorry for the noise. And thank you for a great integration!