Help using the HA UI for Harmony automation (OFF function)

Hi All

I am moving to the beautiful UI instead of the old YAML setup
But I am having some difficulties with creating the OFF function of a Automation
If I do the remote.hub as a OFF switch it does a never ending cycle where it goes through the different Harmony states - TV - Apple TV - Shield and back again

I think I need to define the state, and then run the off command. But the solution eludes me on the UI?

This is a Button I have created using the Aqara Blue print.

And its the OFF function that doesn’t work for the Harmony state (Long press)