#NHL automations Help!

1 messages · Page 1 of 1 (latest)

turbid peak
#

I’m building a setup that makes my Govee strip lights flash red when the Carolina Hurricanes score a goal. I’ve:
– Installed Home Assistant in a VM
– Set up NHL API sensors (some are working, others show “unavailable”)
– Tried creating automations for the goal trigger, but they aren’t firing as expected

What I need:
– Debugging why certain sensors don’t populate
– Guidance on writing the final automation so the lights trigger on a goal event

If anyone here is good with Home Assistant, REST sensors, or Govee integrations, I’d really appreciate the help.

graceful cairn
#

Please share yaml (no pictures!) of automations you made.

timid jackalBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

chilly sedge
turbid peak
#

This is my yaml for the automation:

alias: Canes Goal — Flash Lights
triggers:
  - entity_id: sensor.canes_scoring_idx
    trigger: state
conditions:
  - condition: template
    value_template: |
      {{ trigger.from_state is not none and
         trigger.to_state is not none and
         trigger.from_state.state not in ['unknown','unavailable'] and
         (trigger.to_state.state | int(0)) > (trigger.from_state.state | int(0)) and
         states('sensor.canes_last_goal_team') == 'CAR' }}
actions:
  - data:
      scene_id: before_canes_goal
      snapshot_entities:
        - light.h618f
    action: scene.create
  - target:
      entity_id: light.h618f
    data:
      brightness: 255
      rgb_color:
        - 255
        - 0
        - 0
    action: light.turn_on
  - repeat:
      count: 3
      sequence:
        - delay: "00:00:01"
        - target:
            entity_id: light.h618f
          action: light.turn_off
        - delay: "00:00:01"
        - target:
            entity_id: light.h618f
          data:
            brightness: 255
            rgb_color:
              - 255
              - 0
              - 0
          action: light.turn_on
  - target:
      entity_id: scene.before_canes_goal
    action: scene.turn_on
mode: single

@graceful cairn @chilly sedge

timid jackalBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.