If an object or part of the body is detected while the sunroof is closing automatically, it will reverse direction, and then stop.
The auto reverse function does not work if a small obstacle is between the sliding glass and the sunroof sash. You should always check that all passengers and objects are away from the sunroof before closing it.
Kia Niro 2017 (DE HEV) Service Manual: Description and operation
Warning Lamp Activation
Warning Lamp Behavior after Ignition
On
As soon as the operating voltage is applied to the SRSCM ignition input, the
SRSCM activates the warning lamp for a LED lamp check.
The lamp shall turn on for 6 seconds during the initialization phase ...
Kia Niro 2017 (DE HEV) Service Manual: Hybrid Starter Generator(HSG) Components and components location
Components
1. Hybrid starter generator (HSG)
2. HSG bracket
...