On the sitemap you can put all your Switches in a Group and just put the Group on your sitemap with the Group element. However, this means that your Switches will only use their default settings and you have no control over their order or customizations (e.g. many times one wants to put a Switch on their sitemap as a Text so it can’t be edited, which is impossible to do if you use Group in this way.
In Rules see:
And realize that the postUpdate and sendCommand actions will take a name of an Item as the first argument so if you can construct the name of the Item programatically in your rule you can send it commands or post updates to it.