A. 1. Adjust battery optimization settings: Go to 'Settings' > 'Battery' > 'Battery Optimization' and find the Xtreme Connected Home app. Set it to 'Not Optimized' to prevent it from going into sleep mode.
B. 2. Keep the app active: Try to keep the app open and in use to prevent it from entering sleep mode.