how to find my appliances is on or off

i am controlling my appliances such as light and bulb etc using my mobile.i want to control my appliances in two ways ex:using mobile and also using switch.for this i want to display my appliances state means "ON" or "OFF" in android app.How to find my appliances state?

Attach a light sensor to your bulb an read it out.

Any sarkasm in this post is purely imaginary and not in any way related to the useless description of the problem by the poster.

PS: Stop yelling. Geez, what made you think putting everything in bold would make people more happy to help you?

Assuming there is an Arduino involved, are your appliances only controlled by the Arduino (the switches make it a little confusing).

If so, you can use digitalRead of a pin configured as output to find the state of the output pin.

sterretje:
Assuming there is an Arduino involved, are your appliances only controlled by the Arduino (the switches make it a little confusing).

I don't think so. From my understanding he is using some home automation device which has a smartphone app but also let's the user manually control it using both smartphone app and regular wall switches.

I think he needs an arduino to tell him whether the appliance is on or off in case he forgot to turn off the wall switch. I guess his smartphone app is not smart enough.

Update:

ElCaron:
Attach a light sensor to your bulb an read it out.

@ElCaron- Upon checking his original post , he wants to control more than just light bulbs.

anbu123:
my project is to control home appliances(fan, light, motor, tv, fridge etc) through controller using relays. i want to extend that to 2 way switch, means by manual n using remote(controller-atmega 328) also.
i am not getting way to check status of appliances whether is on or not by controller.
thought to use stepdown trans. but its too expensice because i have to use separate trans for each appliances
So give me some ideas to check status of the appliances :confused:

First of all DON'T CHANGE your original post. Just post your change in requirement in the next post.

What did you plan to do with a step down transformer anyway? Here you want to use a remote whereas in your latest one you want to use your phone? Why didn't you mention the 2 way switch in the latest post?

Now, looking at your requirement I presume all your appliances are scattered all around your house. If you want to connect sensors to each of them you're looking at a lot of wiring.

Don't bother. There are plenty of smart devices (lights, sockets etc) already out there. Just go and buy one

MarkDerbyshire:
Don't bother. There are plenty of smart devices (lights, sockets etc) already out there. Just go and buy one

Where is the fun :wink:

Noobian:
@ElCaron- Upon checking his original post , he wants to control more than just light bulbs.

Does that really matter? It's not like that was a serious recommendation. But why should I invest time to worm basically all the useful information out of him? Like, what smartphone app is he using? How is the control implemented? Does the switch switch power or logic? ...