Light A Mup

Can’t say it any better than the reddit post I made on the project, so I’ll just copy it here for posterity:


With the new season started and u/jayblackedout‘s nhl_goal event working, I pulled the trigger on a project I’ve wanted to do for a while and add a goal light to my HA setup. The original idea came from this imgur thread, but I swapped out the RPi2 and for an ESP-01S and kept the circuit for triggering the reset button/goal siren.

A lot of the project ended up being pretty straightforward once I started taking things apart. There’s a fair amount of room for new components and wires underneath the lights, the divider in the battery compartment is removable giving lots of room to play with, and there are notches allowing wiring between the battery compartment and electronics compartment.

Battery power was sacrificed and the ground leading to the battery compartment from the DC input was moved one pad over to the DC input ground, providing 6v to the + and – pads of the battery compartment cap (I removed the jumper wire between batteries 2 & 3). I loosely soldered together this circuit between those pads to get a nice clean 3.3V.

r/homeassistant - ESPHome-enabled NHL Goal Light

The trigger circuit was applied to the reset button, without the added GND wire that that person used since it’s all on one ground here, running the signal wire through the battery compartment notch.

r/homeassistant - ESPHome-enabled NHL Goal Light

The battery compartment cap needed to be glued back on, but otherwise everything went back together pretty easy. I created a simple template switch in ESPHome to briefly toggle the reset circuit on GPIO0 for “on” and everything worked like a charm. I did tie together the event and the switch in an automation but haven’t tested the timing against the broadcast for my system yet. Will update when I have something, though!

r/homeassistant - ESPHome-enabled NHL Goal Light
r/homeassistant - ESPHome-enabled NHL Goal Light

Current goal_light.yaml:

esphome:
name: goal_light
platform: ESP8266
board: esp01_1m

wifi:
ssid: xxxxxx
password: xxxxxx

# Enable logging
logger:

# Enable Home Assistant API
api:
password: xxxxxx

ota:
password: xxxxxx

switch:
- platform: gpio
id: resetswitch
pin: 0
restore_mode: ALWAYS_OFF
- platform: template
name: "Goal Light"
id: goallight
icon: "mdi:alarm-light"
turn_on_action:
- switch.turn_on: resetswitch
- delay: 500ms
- switch.turn_off: resetswitch
- delay: 30s
- switch.turn_off: goallight

Followup: It did/does require a bit of timing adjustment, as this spoiler alert shows 😂

Add a Comment