Lovelace: Button card

This is how i handle harmony. build a template sensor and template switch to watch your harmony integration.

sensor:
  - platform: template
    sensors:
        harmony_hub:
            friendly_name: Harmony Hub
            value_template: >
                {% if states.remote.harmony_hub.attributes.current_activity == "PowerOff" %}
                  OFF
                {% elif states.remote.harmony_hub.attributes.current_activity == "Fernsehen" %}
                  Fernsehen
                {% elif states.remote.harmony_hub.attributes.current_activity == "Playstation 4" %}
                  Playstation 4
                {% endif %} 
switch:
  - platform: template
    switches:
          
# HARMONY PS4 
      ps4:
        friendly_name: PS4
        value_template: "{{ is_state_attr('remote.harmony_hub', 'current_activity', 'Playstation 4') }}"
        turn_on:
          service: remote.turn_on
          data:
            entity_id: remote.harmony_hub
            activity: 'Playstation 4'
        turn_off:
            service: remote.turn_on
            data:
              entity_id: remote.harmony_hub
              activity: 'PowerOff'

Just replace playstation 4 to fit your needs. go into dev settings or the harmony_config file to look which activites you have set up.
and then lovelace. you dont need tap action btw if you just want to use a toggle.

- entity: switch.ps4
 .... whatever you want
  type: 'custom:button-card'

Check out this thread for more harmony home assistant stuff.