Sofabaton to HA problem

Ughhh, this is driving me nuts! In attachment 1, I have a command “AppleTV Back2” on my Sofabaton X2, that sends KeyID:21 to HA

. In Attachment 2, and I press the “AppleTV Back2” button, I can see that the X2 correctly sends a KeyID:21 to HA as per Attachment #3. In HA I have an automation “nAppleTV Back”, (attachment 4). When I run the actions from this screen it correctly, operates the AppleTV, Yet when I press the button on the X2 it doesn’t work.