diff --git a/README.md b/README.md index e69de29..8f8eec0 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,2 @@ +Service File can be found at /lib/systemd/system on Pi + diff --git a/lightSwitch.py b/lightSwitch.py old mode 100644 new mode 100755 index 1b777e8..be74c9c --- a/lightSwitch.py +++ b/lightSwitch.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import subprocess import time import RPi.GPIO as GPIO @@ -23,7 +24,7 @@ try: while True: if touchDet(touchPin): print('['+time.ctime()+'] - '+'Touch Detected, Light Switch Toggled') - subprocess.run('./lightSwitch.sh') + subprocess.run('./home/pi/homeassistantPi/lightSwitch.sh') time.sleep(0.2) except KeyboardInterrupt: