Swiss regulations

I have been hosting our villa in Switzerland for over a year. Suddenly I got a letter from the local commune telling me that I could not let the property on Airbnb without registering a commercial activity and would have to apply for planning permission to change the scope of use of the property. Has this happened to anyone else in Switzerland and any ideas on how to handle this?
Our property is currently registered as a second home as we are living abroad but we do use it occasionally.

There is no such thing as “Swiss Regulations”, like the US, Switzerland is a federation.

A lot of regulations are on local level. You will have to contact the local government to find out what the regulations are.