Lucerne’s tourist tax is CHF 4.00 per person per night for 1-, 2- and 3-star accommodation, and CHF 4.40 per person per night for 4- and 5-star accommodation. The stated rates apply per person and per night.
The page states that the tax applies to visitors aged 12 and over; therefore, visitors under 12 are not included in the stated charge. No other exemption or reduced-rate category is specified.
The source does not provide a specific rule for short-term, Airbnb-style or other online-platform rentals. It only gives the star-rating-based hotel rates and the age threshold.