At night turn mobile data and WiFi off. The rule will activate every 30min but if the screen is turned on (I.e. the user uses the phone) it will deactivate it. The rule will enable the morning rule which will reverse this rule.