Window air conditioner and dehumidifier safety
Window units
AHAM says install a room air conditioner in a sound window, near a grounded three-prong outlet, and never on an extension cord or a power strip. An overloaded cord can start a fire. Clear the area below the window before you lift the unit. The window and the sill have to be solid. Do not set a heavy unit in a rotten frame.
Use the support bracket that came with the unit, and follow that manual. Midea's window-unit manual says install the support bracket, do not use an extension cord or an adapter, do not cut a prong off the plug, and do not let children hang on the unit or the bracket. The rear of the unit has to be outdoors, with room for air. If the manual for your model wants a different bracket or a different opening, the manual wins. This page does not copy one brand's inch measurements onto every unit.
Two people should do the lift. A unit that falls out of a window can hurt someone below.
Portable air conditioners and dehumidifiers
Plug them into the wall, not a thin extension cord. CPSC publication 5032 is the cord rule: match the cord to the load, do not run a cord under a carpet, and replace a cord that is damaged. A hot plug is a stop sign.
Empty a dehumidifier on the schedule in its manual, and unplug it before you clean the bucket or the filter. Before cooling season, look the brand and model up at CPSC recalls. Dehumidifiers have been recalled for fire. If the notice says stop using it, stop. Do not keep running a unit the recall says to unplug.
The exhaust hose on a portable air conditioner has to go outside the way the manual shows. Do not vent it into the same room and expect it to cool.
Updated