This paper proposes a sunspot-based mechanism that quantitatively accounts for the main monetary facts. In particular, we propose a cash-in-advance model with habit persistence and local durability in consumption decisions. In this context, when habit persistence is strong enough, there is real indeterminacy. We show that when sunspots positively correlate with money injections, the model generates a persistent response of inflation, a hump-shaped response of output, and the price puzzle. We then apply the model to the U.S data and we show that it performs well in reproducing the monetary transmission mechanism and the price puzzle in the short run.