We noticed that in darker weather conditions, the headlights were always on by default. I found that in the weather.ini files, like \assettocorsa\content\weather\6_mid_clouds\weather.ini, there's a new line:
[CAR_LIGHTS]
FORCE_ON=1
You can change that to 0 if you don't want your headlights to come on automatically.