There isn't an easy way to do this at the moment. Rule Machine does have a device (or %device% as you'd normally write it) variable that refers to the name of the triggering device, but Rule Machine doesn't actually have a variable that can be a device, so again, this is just the display name (device label if set, otherwise device name). If you really want to put them all in one rule, you could trigger based on whatever you want, then use IF THENs to check the device name. I demonstrated this approach (not sure if that's what is being suggested above?) in another thread:
However, that is more just proof that it's possible. I wouldn't actually recommend this. It's a bit messy, plus prone to typos and requires maintenance any time a device name changes. I think you'd be better off just using separate rules, one for each device--then you don't have to worry about this since you know the triggering device is also the one you need to change. Each rule will also be very simple to write: one trigger and one action. You could even use Button Controller instead of Rule Machine for this if you wanted.
If you're into Groovy, you could also write a custom app. I'm not aware of any existing community apps that can do this, at least not more easily than you could with a rule (needing to specify the device in both places).