Enables the transmembrane transfer of an ion by a channel that opens in response to a light stimulus.