The Medieval Islamic world, between 8th to the mid 13th century, is known for its developments in academic knowledge. Particularly in astronomy. Many stellar objects still derive their name from Arabic names. There were also advances in optics (e.g. al-Haytham/Alhazen) and kinematics, which were later explored or rediscovered during European renaissance science. Mathematics (e.g. al-Khwarizmi), alchemy (e.g. Jabir ibn Hayyan/Geber), engineering (e.g al-Jazari) and fluid dynamics (e.g. al-Biruni) took a boost too.
What I have never seen are particular advances in thermodynamics or electromagnetic theory from this period. I am putting aside here developments in optics and philosophical discussions on atomism.
Early Greek hypotheses, included the concept of the pre-Socratic 4 elements (later expanded into chemistry by Geber). As stated in Wikipedia's history of thermodynamics, the concept of fire element is like the precursor of phlogiston and caloric fluid theories. The name "electron" is related to Greek name for amber, as they were the first to record the concept electric forces (same for magnetic forces). The Ancient Greeks also first developed ideas about the void and atomism.
I know Medieval Islamic scholars advanced much in alchemy/chemistry. But were there any particular advances in the thermodynamics and electromagnetism, concepts like heat, pressure, microscopic origin of temperature/pressure, perpetual motion, current, magnets, charges and so on?