Your comments

The trick is to turn the left-bottom light into blue first in as few steps as possible. It took me some time to figure out, and then I get from 18 to 17.