Secure settings plugin (now a bit old) got tool called "wake device - CPU awake only". I'm currently testing it with Tasker. My reboots happened only when screen is on, so I set it to work when screen is on. My device is Redmi 3s Prime but hw_reset reason is the same as mentioned here. Later...