Solar photovoltaic is the only one i can think of that isn't just a fancy way to make steam
EDIT
ok let's clarify to say a method that isn't related to movement of a fluid that spins a turbine. So not windmills (air is a fluid), not hydro, not geothermal, etc.
On a serious note: that's exactly what we're doing with lighters. At least some of them use piezo elements and not the sparkly wheel thingy to ignite the gas. And it's real fun to zap yourself with it.
There were talks of using them in sidewalks, but it doesn't really make much sense really. Piezo almost always only works as energy recovery, which isn't nothing but you will need the infrastructure which also isn't nothing.
Even if we used piezo, the movement of the hammer would still have to come from some power source, which would still be the same sources like moving steam, water, or wind.
it's a special case there, because for frequencies in question mechanical quartz resonator has much higher Q than any electrical resonator you can practically build. that is, mechanical properties of piezo crystal stabilize voltage oscillations
But not all electricity generation is based on boiling water. Wind, hydro and tidal don't need to generate large amounts of heat to make steam that spins a turbine, they just use natural movement to do so.
Yeah but those heat engines don't rely on spinning things inside a magnetic field. Heat on one side, less heat on the other side, and you have current. No motors.
Squeezing can be converter to electricity with pizeo electric. Heat difference can be converted into electric directly with peltier devices. Both of these are very inefficient ways to make electricy.
The peltier effect can be used to generate electricity from a thermal gradient. It's not very efficient, though. There's a reason mechanical means of electrical production predominate.
Aerokinetics/hydrokinetics as well. With steam, we're creating the source fluid that turns the turbines to make electricity. Those source fluids can also exist as wind/tides/rivers naturally.