How to extinguish an electrical fire is as follows:
1. If an electrical appliance catches fire at home, the first reaction is to turn off the power supply and turn off the switch of the electrical appliance. If the entire circuit has burned, you can turn off the main switch first, but if it's too late, cut off the wires away from the combustion first.
2. Then turn off the heat. Be careful not to use water, as it will conduct electricity and even cause electrical appliances to explode, endangering personal safety. Especially if a fire breaks out in a transformer, etc., if you have a dry powder fire extinguisher, use a dry powder fire extinguisher to put out the fire.
3. Otherwise, quickly call 119 and ask the firefighters to extinguish the fire as quickly as possible and evacuate the people present in the room in time.