Score Big with Your Smart Home: Automating Reactions for Any Sports Team

Video Transcript

COMING SOON

Links in Video

Team Tracker Integration (GitHub) – https://tsh.li/TeamTracker

Team Tracker Card (GitHub) – https://tsh.li/Ttcard

Product Links

(We use affiliate links, so if you purchase something it goes to help the channel)

Indoor Govee Lights

Govee Glide Lively (Wall Lights) – https://amzn.to/3T1XqeF
Govee String Lights T1 – https://amzn.to/47L0e4r
Govee Hexa Pro 10pk – https://amzn.to/3MY055y

Govee Outdoor Lights

Govee Curtain Lights – https://amzn.to/3uvwc6j
Govee Christmas Lights – 66ft – https://amzn.to/3Rewwze
Govee 100ft Permanent Outdoor Lights – https://amzn.to/3sNpzf8
Govee Outdoor String Lights – – https://amzn.to/46pSvYh

Code Examples

Base Team Tracker Card

type: custom:teamtracker-card
entity: sensor.team_tracker
outline: true

For more examples check out the GitHub page: https://github.com/vasqued2/ha-teamtracker-card#examples

Pre-Game Time (# Hours Before Game) Template

{{ as_datetime(state_attr("sensor.team_tracker","date")) - timedelta( hours = 3, minutes = 0 ) }}

Make sure to replace the sensor.team_tracker with your entity ID. Also customize the hours and minutes to when you want the helper to activate.

Sunset – Trigger Outdoor Lights Based on Calendar

For this example, I am using a specific Google Calendar to trigger which light preset to run at sunset.

alias: Sunset - Yard Lights
description: ""
trigger:
  - platform: sun
    event: sunset
    offset: "-15"
condition: []
action:
  - service: switch.turn_on
    data: {}
    target:
      entity_id: switch.outdoor_holiday_lights
  - choose:
      - conditions:
          - condition: and
            conditions:
              - condition: state
                entity_id: calendar.outdoor_lights
                state: "on"
              - condition: state
                entity_id: calendar.outdoor_lights
                attribute: message
                state: Flag
        sequence:
          - service: google_assistant_sdk.send_text_command
            data:
              command: Activate Outdoor Flag Mode
      - conditions:
          - condition: and
            conditions:
              - condition: state
                entity_id: calendar.outdoor_lights
                state: "on"
              - condition: state
                entity_id: calendar.outdoor_lights
                attribute: message
                state: Chiefs
        sequence:
          - service: google_assistant_sdk.send_text_command
            data:
              command: Activate Chiefs Game Day
      - conditions:
          - condition: and
            conditions:
              - condition: state
                entity_id: calendar.outdoor_lights
                state: "on"
              - condition: state
                entity_id: calendar.outdoor_lights
                attribute: message
                state: Halloween Chill
        sequence:
          - service: google_assistant_sdk.send_text_command
            data:
              command: Activate Halloween Chill
      - conditions:
          - condition: and
            conditions:
              - condition: state
                entity_id: calendar.outdoor_lights
                state: "on"
              - condition: state
                entity_id: calendar.outdoor_lights
                attribute: message
                state: Candy Cane
        sequence:
          - service: google_assistant_sdk.send_text_command
            data:
              command: Activate Candy Cane
    default:
      - service: light.turn_on
        data:
          color_temp: 325
          brightness_pct: 74
        target:
          entity_id:
            - light.north_path_lights
            - light.south_path_lights
            - light.garage_spotlights
            - light.front_spot_lights
            - light.north_up_lights
        enabled: false
      - service: google_assistant_sdk_custom.send_text_command
        data:
          command: Activate Landscape Dim
mode: single