The Withings Pulse only counts your elevation gain when:
- You're physically going up, which it detects using changes in barometric pressure
- You're walking (or running) while going up
Therefore no elevation can be counted in case of simulated elevation gains from an incline treadmill, or if you stand still in an elevator or on an escalator.