update automatic light

Switch light on/off of the train when enter/exit turnal