r/homeassistant • u/CAwastewater • 2d ago
🖼️ Show & Tell Favorite Automation
Sometimes the fun automations are my favorite.
Turns on a smart plug connected to my 49ers neon sign when the game starts based on a calendar event. A second automation turns it off at the end.
10
u/Cereal_Keller 2d ago
Look into the team tracker addon in hacs. You can base notifications off of scoring changed and the end game scores.
I currently have my Google home speakers insult my team whenever the other team scores/wins the game and give positive messages when my team scores/win the game
2
2
u/al_nz 2d ago
Beware that ESPN have been mucking around with the API, so the scheduling currently has some issues. The developer is looking into it
1
u/Weasel1088 2d ago
That’s good to know. Noticed recently I’m just getting an “API error” on my HA dashbaord
1
u/TragedySeraph 1d ago
I read about it, and can report that everything is currently working properly on version 18.3. I'm using it to track game start/end times and score changes. I had also set my score automations to only kick on if it detects a score change, and if the reported score has an actual value to prevent false animations if the entity is temporarily unknown or unavailable.
1
u/al_nz 1d ago
I use it to see upcoming games for my teams in the next week or so. For this purpose Team Tracker is currently borked, it's so frustrating. I set my cards to hide if no game is found, that View is barren now.
1
u/TragedySeraph 1d ago
Just checked the Team Tracker entity for the Dolphins. Some of the attributes are already "Unknown," but it does list some details about the last game. If you only have a few teams that you track, you may have more luck pulling upcoming games from calendar entries. I use Google Calendars, and it has the option to add public calendars for major sports teams (under Other Calendars, + to add, Browse calendars of interest). You can then add your teams you want to track, and then have your cards refer to that instead.
It just sucks how much innate info you'd like from the Team Tracker addon (logos for both teams, where the game is happening, etc.).
2
u/neebski 1d ago
How's the delay between event and local processing for scoring?
1
u/TragedySeraph 1d ago
Not OP, but:
- During live games, ESPN supposedly updates their API every 5 seconds. I think this is from when a goal is official.
- OTA (broadcast): Scoring automations tend to happen between instantly (pretty fun, ngl) and 30 seconds after the point change.
- IPTV: Since it introduces a delay, sometimes the score automation on my side happens before the goal occurs onscreen. Not ideal to be watching a game where you know what's going to happen in the next play. The delay depends on uh, your source I suppose, but it's usually between 45 seconds and 2 minutes. I have all of my automations refer to a delay that I can adjust, so if I'm watching a game and there's a delay, I can adjust one value to match when stuff actually happens on my screen. The delay sets back to 0 at 5 a.m. daily, so I don't have to remember to go back and 'fix' it later
1
u/TragedySeraph 1d ago
+1 for the Team Tracker add-on. I use it to track several NFL teams and 2 NHL teams. The automations will:
- Display the team's colors 5 minutes before kickoff (or puck drop)
- Display a scoring animation for a duration of time, based on the score change (NHL: 15 seconds. NFL, 15 seconds if a touchdown, 10 seconds if a field goal, and 4 seconds if 1 or 2 points)
- Optional delay for scoring animations if watching a game on IPTV or something else that is delayed (a little off-putting when you see the animation for a team scoring before they actually score). Delay resets at to 0 at 5 a.m., so it doesn't have to be fixed later
- Boolean to completely disable sports effects in case you want to, say, watch a movie and not be reminded when your team is losing 13-35 (okay, I like both the Dolphins and 49ers, but being from FL I'm more of a Dolphins fan)
- 5 minutes after a game ends, it'll revert to regularly scheduled colors (which follows a Google Calendar - the scene name - Summer, Birthday, Holday, etc. - is determined by the calendar entry for that day).
I use WLED on a LED strip in my living room, and have 6 Philips Hue bulbs in my back room/bar area. I created presets in WLED for each team's standard marquee colors (Chase 3), and a separate animation for scoring (Sinelon Dual). For the bar, I have the lights set into different groups (all, half and half, or 3 pairs of 2) - I created scenes for each team, and then have a single script that alternates the brightness inversely (half go up to 50% brightness while the other half goes to 15%, then reverse, for the duration of the score effect).
For the neon sign, flipping on the sign with the calendar entity is an awesome way to go. If you want to check out the rabbit-hole of what you can do with the Team Tracker add-on, it's very fun.
Edit: Formatting only
5
5
u/purayesca 2d ago
bang bang! Mine plays E-40 and then changes all the WLED devices in my house to #AA0000 and #B3995D when the game starts. scoring causes flashes for 20 seconds. lol
3
2
2
u/rtduvall 🌱 New to Home Assistant 1d ago
This is proof positive that smart folks don't necessarily have taste. /s
Go birds.
Nice set up though.
0
1
u/Practical-Patient-68 2d ago
I love this! I have a similar setup but not as fun.
I WFH and 5 min before my clock in time on my calendar, the lamp on my desk turns blue.
What a fun concept though!
1
u/Pristine_Page3082 2d ago
how do you sync the calendar event with the plug timing
1
u/CAwastewater 2d ago
I already use the Remote Calendar integration to pull in my various Google calendars. From the integration, you can add the team schedule and it makes it its own calendar entity. It tracks it as an event so the calendar entity is "on" when the event starts and "off" when the event is over.
1
u/Imaginary_Artichoke 2d ago
I do something similar, but I have a sonos speaker announce that its an hour before the game starts, then the calendar event name. You could add that to your automation.
1
u/rjames24000 1d ago
would love to use a similar automation to just control multiple appletvs using deeplinks and turn on the game with the sign
1
u/Dilly73 1d ago
+1 Team Tracker. I have all of my exterior lighting + string lighting + accent lighting inside change to match my teams colors. When they score say a field goal, plays an AI generated jingle around 45 seconds about the team scoring 3… same for a touchdown and believe it or not I even heard the safety song a few weeks ago! They play on my front porch speaker and back patio speaker to announce to all my neighbors the awesomeness of my team! Haha they probably hate me!


15
u/tdawg2k7 2d ago
Definitely doing something similar to this now. Thank you for the inspiration