The Talmud discusses what materials and actions constitute the prohibited melachah of kindling ('hav'arah'), examining the nature of burning and ignition — categories directly relevant to whether closing an electrical circuit constitutes hav'arah.
מַתְנִי׳ לֹא יִקּוֹב אָדָם שְׁפוֹפֶרֶת שֶׁל בֵּיצָה וִימַלְּאֶנָּה שֶׁמֶן וְיִתְּנֶנָּה עַל פִּי הַנֵּר בִּשְׁבִיל שֶׁתְּהֵא מְנַטֶּפֶת, וַאֲפִילּוּ הִיא שֶׁל חֶרֶס. וְרַבִּי יְהוּדָה מַתִּיר. אֲבָל אִם חִבְּרָהּ הַיּוֹצֵר מִתְּחִלָּה — מוּתָּר, מִפְּנֵי שֶׁהוּא כְּלִי אֶחָד. לֹא יְמַלֵּא אָדָם קְעָרָה שֶׁל שֶׁמֶן וְיִתְּנֶנָּה בְּצַד הַנֵּר וְיִתֵּן רֹאשׁ הַפְּתִילָה בְּתוֹכָהּ בִּשְׁבִיל שֶׁתְּהֵא שׁוֹאֶבֶת. וְרַבִּי יְהוּדָה מַתִּיר. מַתְנִי׳ הַמְכַבֶּה אֶת הַנֵּר מִפְּנֵי שֶׁהוּא מִתְיָרֵא מִפְּנֵי גּוֹיִם וּמִפְּנֵי לִיסְטִים, מִפְּנֵי רוּחַ רָעָה, מִפְּנֵי הַחוֹלֶה שֶׁיִּישַׁן — פָּטוּר. כְּחָס עַל הַנֵּר, כְּחָס עַל הַשֶּׁמֶן, כְּחָס עַל הַפְּתִילָה — חַיָּיב. רַבִּי יוֹסֵי פּוֹטֵר בְּכוּלָּן, חוּץ מִן הַפְּתִילָה — מִפְּנֵי שֶׁהוּא עוֹשָׂהּ פֶּחָם.
MISHNA: The fundamental dispute in this mishna is with regard to the determination whether or not indirect acts of kindling and extinguishing fall within the parameters of the prohibition on Shabbat. The Rabbis said: A person may not pierce a hole in an eggshell and fill it with oil, and place it over the mouth of a lamp so that the egg will drip additional oil into the lamp and thereby extend the time that it burns. And this is the ruling even if it is not an actual egg but an earthenware vessel. And Rabbi Yehuda permits doing so. However, if the craftsman, who crafts ceramic vessels, attached the egg to the lamp from the outset, one is permitted to fill it with oil because it constitutes a single, large vessel. The Rabbis decreed that a person may not fill a bowl with oil, and place it beside the lamp, and place the unlit head of the wick into the bowl so that it draws additional oil from the bowl and thereby extend the time that the lamp burns. And Rabbi Yehuda permits doing so. MISHNA: One who extinguishes the lamp on Shabbat because he is afraid due to gentiles, from whom he is hiding in his home, and due to thieves, or if one is afraid due to an evil spirit, i.e., he is depressed and prefers sitting in the dark, or if he extinguished the flame due to the sick person so that he will sleep, he is exempt. However, in a case where he extinguishes the flame in order to spare the lamp, spare the oil, or spare the wick, he is liable. Rabbi Yosei exempts him in all of those cases, as in his opinion no labor prohibited by Torah law is being performed by extinguishing the flame, except for the case where he seeks to spare the wick. Only in that case is extinguishing a creative action because he makes the wick into charcoal by extinguishing the flame.