Daz1712:
I am having a lot of trouble with this.OPEN MY LIGHT FROM MY WALL SWITCH.
I assume this means turn the light on and off like a normal room light.GET A NOTIFICATION FROM MY ARDUINO THAT MY LIGHTS ARE OPEN.
You want the arduino to know the light has been turned on.I HAVE USED A RELAY TO OPEN AND CLOSE MY LIGHTS FROM ARDUINO.
You have used an Arduino to turn the light on and off with a relay. (Note it is 'on and off' not 'open and close').I do not understand this as you have not posted a drawing/circuit of what you have.
" but when I'm using arduino and normal switch one of them gets confused and it is displayed as on when it's off. "The next bit you seem to be saying that you wish to run the switch direct to the arduino and use it to control the relay to turn the light on and off.
I do not understand this bit.
" the command from the serial port will be controlling the relay. "
Serial ports usually do not control relays.
Here is my guess!
You wish to monitor if the light is on or off and how long it is on for.
You want to use the Arduino to turn the light on and off.
You will eventually remove the Arduino and replace it with an esp8266 board that is a wifi board and there will be no Arduino.Help me here, think carefully and post again.
Daz
What I'm trying to do :
Turn on and off the lights from Wall switch (like normal rooms)
Turn on and off the lights from arduino relay
Side things :
If I turn on the lights from the wall switch I need arduino to know that I've done it.
Temporary things :
I use arduino uno.
Serial monitor + coding turn on a relay.
I have a temporary wall switch that I use to try and find the solution.
I hope that made things a little bit easier for you.
Thanks for your time.