Hi im new to HA and YAML, what's the best way to have multiple triggers in one automation that all reference back to one device ID? Ive got an automation set up from the visual editor for a remote with 4 buttons, so I've got 4 triggers with IDs for each and then my Then Do section is a selection of IDs to turn on different light scenes. It's working great but now I want to duplicate it for another remote and obviously I could just manually change the device for each of the 4 triggers in the cloned automation but I'm sure there's a better way to do it. Like is there a way to declare a variable say DevID and replace the yaml domain: mqtt device_id: a00a58dc70059af8d0768c8ac8db3730 type: action subtype: press_1 trigger: device id: "1"
with yaml domain: mqtt device_id: DevID type: action subtype: press_1 trigger: device id: "1" so that I can link all my triggers to one device ID? of course i'm open to other methods, this was just the idea I thought of but was discouraged when google told me YAML doesnt really do variables like that?