I also want to know how to do this. I have a Sonoff and want to switch my light. To see whats the status of the light is have a button in the Android App created with MIT App Inventor. If the status of GPIO is "1" the button should tourn green and if "0" it should tourn grey. But...