The sunshade will open automatically with the sunroof when the glass panel moves. If you want it closed, move the sunshade manually.
NOTICE
The sunroof is made to slide together with the sunshade. Do not leave the sunshade closed while the sunroof is open.
Hyundai Sonata LF 2014-2019 Service Manual: Temperature Control Actuator Components and Components Location
Components Location
1. Temperature control actuator [LH]2. Temperature control actuator [RH]
...
Hyundai Sonata LF 2014-2019 Service Manual: Components and Components Location
Component Location
1. Head lamp leveling actuator (Built-in Head lamp)2. Head lamp leveling unit (Rear right only)
...