Controlling time

Hlw , i made a project on “Home Automation Using IoT with Java script” but there is a problem , if i turned off the appliances using mobile or some other devices they stop only for 5 minutes. After 5 minutes all appliances turns on Automatically. why this happed to me please give me a solution.

and can i do something that if i push off or on butten in mobile than it shows a indicating light on that butten.

that will be a coding mistake on your end then if they are switching on again in 5 minutes. you may want to share your code. fixing that will be the solution to your problem

the sampling interval has been set to 5 minutes. because of that your device is resetting every 5 minutes. I don’t think you will be able to change the sampling interval because of the bolt cloud’s traffic restraints.

So what i am do to change this interval?

change it from the hardware part of the code. it is located on the top the step 3 data collection rate