On Yom Tov one may light the gas from an existing fire, including stoves with safety sensors, as Rabbeinu Ovadia Yosef, Rav Shmuel Wosner, and Rav Yehoshua Neuwirth ruled. Electricity may not be switched on. One may not cook from the first day to the second, and a flame may be put out only by a gerama.