Pi Traffic Light version 2

Hello, I install software for the Traffic Light on the Raspberry Zero 2 W, I followed the instructions from this web site => GPIO Traffic Light LEDs – Pythonic Pi
I tested some of the scripts from this web site all the 3 LEDs worked fine.

Now on the Home Assistant( lastest version), I edit the /config/configuration.yaml file with this =>
Remote GPIO
switch:
platform: remote_rpi_gpio
host: 192.168.1.105
invert_logic: false
ports:
9: Red
10: Amber
11:Green

Then edited the Dash Board under the Bulb section with this =>
Red
switch.red

Amber
switch.amber

Green
switch.green

With this setup the Traffic Light all the LEDs will light up fine.

My question is how do you setup the Automation notify you, a LED will lights up, when a door is open/close or another light was turn on or off, etc.

Thank you