I don’t use Node-red, but with the hue dimmer switches you need to work with events rather than entities.
You don’t need to create an ajtomation for each button press, one automation per Hue Dimmer switch is enough. You then need to use the choose action to distinguish between the different button presses.
There are also two AppDaemon apps for controlling Hue Dimmer Switches (and other remotes), one is Controller X and the other my own app.