Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95437

Automation of turning lights on when GPIO « GP2 » is closed

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95437

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>