Laws are just a guideline for how a judge should enforce society ethics.
EG, you can and will be charged with every possible thing which they believe you may be guilty of. The judge has to determine if you are actually guilty of any, or all of the accused crimes.
Unless the judge is having a sour day... "a lighted device", will hold no water. It is vague, and too general. This includes candles, pilot-lights, light-bulbs, night-lights, incense, oil-lamps, lighters, matches, televisions, etc... You would simply have your lawyer proclaim a mistrial, as the court/judge is actively participating in the same criminal activities, by holding a court in session with overhead lighting, which is a lighted device. You could also hand the judge a lighter, candle, match, flashlight, and ask him to use any one of those devices safely, in a socially and acceptable way, in turn, providing that being a lighted device does not constitute an injustification or breach of socially acceptable law.
...... make laws... judges have to rewrite all of them to make sense.
The term, "Lighted device", should be reworded to say, "Ignited material which has been proven to have medical repercussions to other persons within the enclosed proximity."
Key-words... "Ignited", "Proven", "Medical repercussions", "Other persons", "Enclosed proximity".
That covers all burning chemicals which are "Known", to cause harm, in a room or an entire building that is enclosed. While it ignores situations where YOU are the only individual, and situations where "Ignition of material is unknown or found to be safe, medically." (Stopping witch-hunters from sending people burning things which have no harmful byproducts, in allowable situations.)
I think that covers most issues. LOL.. No, I am not a lawyer... consult a lawyer before you apear before a judge, or participate in using "Lighted devices".