I am not familiar with home assistant (you may have better luck on the HA forums), but your flow looks like a lot of repeating nodes that could possibly be reduced to just 2 nodes. The input fields in the nodes can (usually) be set dynamically based on the input from the messages.
1 Like