@Vbdino wrote:
Hi, I new to this raspberry pi. I have an alarm system Elk M1 that currently turns on the living room light when I enter the drive way by sending signal to a x10 wall switch.
I am converting to TP-Link hs200 wall switch and I want my Elk M1 to close GPIO pin #2 on the raspberry pi board that would in turn reacts and turn on the light sending signal to the hs200.
My hs200 is configured in the raspberry and it works with the home assistant.
Now I need to understand how I can automate the process of continuously read the status of GP2 and turn the lights if GP2 is detected as closed.
Posts: 2
Participants: 2