Disabling switch updates via UI

I have set up some presence monitoring which is displayed via a switch. It is however possible to click on the switch and temporarily change its status. Is it possible to configure some switches so that they cannot be changed via the basicui but only through the presence logic?

One workaround: Display it on the sitemap as a Text item not as a Switch.

so: Text item=Presence_Switch


…or use a Contact item.

This looks like the way to go but I must be looking in the wrong places as I can’t see a nice example explaining how to use this i.e. configuring the item and sitemap