You can buy a limited number of discounted SBB day tickets (“Tageskarte Gemeinde”) at your local council or through the online counter of your municipality. The ticket allows you to use all public transport in Switzerland for one day. This also includes many tour boats, ferries, and some cable cars. Tickets sell out quickly.
Information about the purchase of the day tickets: