NOVELTY - Thermal electric generator (TEG) system (1) for extracting electricity from a waste heat medium (2) which flows in a direction of flow in a waste heat line (3) in a vehicle, comprises: (a) a TEG unit (4) comprising: (i) TEG layers (6) for converting thermal energy to electricity; and (ii) an energy storage module (5) for storing thermal energy; and (b) a bypass unit (8) comprising: (i) a bypass line (9) connected to the waste heat line via an adjustable valve device (10); and (ii) a valve control unit for adjusting the valve device when predetermined conditions are fulfilled.    USE - The TEG system is used for extracting electricity from a waste heat medium which flows in a direction of flow in a waste heat line, in a vehicle (claimed).    ADVANTAGE - The TEG system is an improved thermal electric system which increases the vehicle's total efficiency and protects TEG elements against too high temperatures.    DETAILED DESCRIPTION - Thermal electric generator (TEG) system (1) for extracting electricity from a waste heat medium (2) which flows in a direction of flow in a waste heat line (3) in a vehicle, comprises: (a) a TEG unit (4) comprising: (i) one or more TEG layers (6) adapted for converting thermal energy to electricity and situated directly against the waste heat line; and (ii) an energy storage module (5) adapted for storing thermal energy and situated upstream of the TEG layer directly against the waste heat line, where thermal energy from the waste heat medium is stored in the energy storage module; and (b) a bypass unit (8) comprising: (i) a bypass line (9) connected to the waste heat line via an adjustable valve device (10) so that all or parts of the waste heat medium can be led past the TEG unit in the bypass line (9); and (ii) a valve control unit adapted to adjusting the valve device when predetermined conditions are fulfilled, where the valve control unit is adapted for adjusting the valve device when vehicle signals such as, for example, brake signals or acceleration control signals indicate that the vehicle is being braked or accelerated.    DESCRIPTION OF DRAWING(S) - The drawing shows a longitudinal cross-sectional view of the TEG system.    Waste heat medium (2)    Waste heat line (3)    TEG unit (4)    Energy storage module (5)    TEG layers (6)    Bypass unit (8)    Bypass line (9)    Adjustable valve device (10)