Automatic buoys can be turned off and they often are whilst docked on land. This is because it is a frightful waste of time and money if they are set off when there is no emergency.
Automatically activated buoys are set off by immersion in water. How would they be set off accidentally while a ship is docked?
Some guy in Finland was recently fined for setting off some kind of emergency flare as a prank in the countryside.
So what? This has no bearing on the subject under discussion. It's yet another example of you over-explaining in an attempt to appear knowledgable.