Not sure if this belongs in here but I’ve a question about which “direction” people define their automations in.
Since trigger ID’s were introduced it is possible to write a single automation that has many triggers and many actions where the action depends on which thing triggered the automation.
I’ve got a number of buttons in a room and each one has 3 triggers single, double, and long and one is a 4 button scene controller with the same options. So I’ve got 2 options … I can write automations that are based around the action eg “Turn on the lights” where the triggers are the various buttons and only a single action not using trigger ID’s, or I can write them based around the trigger eg “Button 1” where there is a trigger for each of the buttons options (single, double, long) each with a trigger ID and then have multiple actions based on the trigger ID.
The first option can result in more Automations, it is simple to identify what is happening, but you have to look at the automation to identify all the triggers.
The second option could result in less Automations, but it can be tricky to identify exactly what the action is.
Obviously there isn’t necessarily a wrong or right answer here but what are peoples thoughts on the best way to go about defining automations ?