I would like to have an android app that will communicate with a raspberry Pi for home automation. The app and the Pi should be synced at all times. The App needs to send a command to the Pi to switch on and off certain Pins.
The android app should allow the user to edit the channel names that appear in order to list what is controlled by each button. This app should receive confirmation from the Pi if that actual raspberry Pi received the command or not.
The pi script will need to always communicate with the app. If the Pi was switched off then the app should indicate that its off and once the Pi switches on again, the app should be able to remember and detect what the state of the appliance is (on/off).
I have already started with the python script as well as the android app, I'll upload the files.
I basically need help with modification on the current lines of code that I have for the rpi and the android app code.