Thermally operated bimetallic light-controlled switch