Solenoid valves are electric devices, not pneumatic.
An electrical signal actuates Solenoid Valves. They use a solenoid—an electromagnetic coil that, when energized with an electrical current, creates a magnetic field that moves an internal plunger or armature. This movement shifts or opens the valve, allowing air (or other fluids) to flow through or divert to a different port.
While solenoid valves are controlled by electricity, they are often used in pneumatic systems (or hydraulic systems, depending on the application). The purpose of the solenoid in the valve is to control the flow of air (or gas) within the system based on electrical input.
So, solenoid valves are electric in terms of their actuation, but they often control pneumatic systems or flow.