Problem with the charging system. Altenator, Battery, etc.. (may even be a loose belt causing the alternator not to spin fast enough to charge the battery).
according to Florida handsbook, you must dim your bright headlights within 300 feet of the vehicle ahead.
ldr sensor
You need to check your dimmer switch it is bad or not plugged in correctly.
You've got a bad headlight switch and need to replace it, that's the switch you pull in the dash to turn the lights on. That's why the headlights only work on bright but not dim.
If you can see the oncoming vehicle then he can see you. Dim your lights at that time.
A bad ground wire will cause dim headlights, or will cause lights not to work.
Perhaps the part of the headlight bulb has burned out.
Here in California, by law it's 500 feet (a football field-and-a-half), but be kind and dim your bright lights well before that.
Headlights have two filaments, one for dim, one for bright. From your description it appears that one of the high beam filaments is burned out. Replace the bulb.
Have you checked to see if the brights are not just burnt out? Rarely do they both go at the same time, but it is possible.
at least 2m
A bad battery or faulty battery connection.