i tried and it always shows the same state which was before i close the app and matches the state of relay on device.