Help with HA project - Blink Galileo 2 Board

Hi,

As part of my internship, I have to setup HA for it to send a signal to a Galileo board to blink its LED whenever a user is at a specific zone. I have problems with the blinking part as I am a bit clueless with how boards/pins/ports work.

HA is installed on a Raspberry. I uploaded the StandardFirmata sketch onto the Galileo board and added it to HA with the Arduino component. I thought about using Arduino Switch in order to control the LED but from what i understood, it only controls pins. So how could I blink the LED through pins? I thought about modifying the sketch in order to blink when a specific pin is on but I’m unsure of how to read when a pin is “on”.

Thank you.

PS: Sorry if I made any mistake, english is not my first language.