Need help configuring Harmony command buttons

I’m trying to configure a virtual remote using button, visually, it works fine, but even if I really thought I configured it correclty, a simple “VolumeUp” command turns everything off… I must have missed something…

Exemple of one button:

      - type: "custom:button-card"
        # name: Volume up
        entity: remote.harmony_salon
        icon: mdi:volume-plus
        tap_action: call-service
        service: remote.send_command
        service_data:
          entity_id: remote.harmony_salon                
          device: "60012590"
          command: "VolumeUp" 

Here is my harmony config file in HA:

{
    "Activities": {
        "-1": "PowerOff",
        "37494402": "Regarder TV salon",
        "37494569": "Regarder Roku salon",
        "37494711": "Regarder Chromecast salon"
    },
    "Devices": {
        "Chromecast salon": {
            "commands": [],
            "id": "60012588"
        },
        "Roku chambre": {
            "commands": [
                "DirectionDown",
                "DirectionLeft",
                "DirectionRight",
                "DirectionUp",
                "OK",
                "Play",
                "Rewind",
                "Pause",
                "FastForward",
                "Back",
                "Search",
                "Info",
                "PageDown",
                "PageUp",
                "Exit",
                "Netflix",
                "Pandora",
                "YouTube",
                "Amazon",
                "Blockbuster",
                "ChannelStore",
                "CinemaNow",
                "Crackle",
                "GooglePlay",
                "HBONow",
                "Home",
                "Hulu",
                "InstantReplay",
                "MGO",
                "NowTV",
                "Options*",
                "PlayStationVue",
                "Rdio",
                "Showtime",
                "SlingTV",
                "Spotify"
            ],
            "id": "60015160"
        },
        "Roku salon": {
            "commands": [
                "DirectionDown",
                "DirectionLeft",
                "DirectionRight",
                "DirectionUp",
                "OK",
                "Play",
                "Rewind",
                "Pause",
                "FastForward",
                "Back",
                "Search",
                "Info",
                "PageDown",
                "PageUp",
                "Exit",
                "Netflix",
                "Pandora",
                "YouTube",
                "Amazon",
                "Blockbuster",
                "ChannelStore",
                "CinemaNow",
                "Crackle",
                "GooglePlay",
                "HBONow",
                "Home",
                "Hulu",
                "InstantReplay",
                "MGO",
                "NowTV",
                "Options*",
                "PlayStationVue",
                "Rdio",
                "Showtime",
                "SlingTV",
                "Spotify"
            ],
            "id": "60012591"
        },
        "TV salon": {
            "commands": [
                "PowerOff",
                "PowerOn",
                "PowerToggle",
                ".",
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "Mute",
                "VolumeDown",
                "VolumeUp",
                "ChannelPrev",
                "ChannelDown",
                "ChannelUp",
                "DirectionDown",
                "DirectionLeft",
                "DirectionRight",
                "DirectionUp",
                "Select",
                "Stop",
                "Play",
                "Rewind",
                "Pause",
                "FastForward",
                "SkipBack",
                "SkipForward",
                "Return",
                "Menu",
                "Subtitle",
                "Sleep",
                "Green",
                "Red",
                "Blue",
                "Yellow",
                "Guide",
                "Wide",
                "Display",
                "Netflix",
                "ClosedCaption",
                "iManual",
                "Input",
                "InputHdmi1",
                "InputHdmi2",
                "InputHdmi3",
                "InputHdmi4",
                "InputPc",
                "InputTuner",
                "InputVideo1",
                "InputVideo2",
                "InternetVideo",
                "Options",
                "Qriocity",
                "Scene",
                "SyncMenu",
                "TrackId"
            ],
            "id": "60012589"
        },
        "Yamaha R\u00e9cepteur AV": {
            "commands": [
                "PowerOff",
                "PowerOn",
                "PowerToggle",
                "+10",
                "Ent",
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "Mute",
                "VolumeDown",
                "VolumeUp",
                "DirectionDown",
                "DirectionLeft",
                "DirectionRight",
                "DirectionUp",
                "Enter",
                "Return",
                "TopMenu",
                "FM",
                "AM",
                "PresetPrev",
                "TuneDown",
                "TuneUp",
                "PresetNext",
                "Setup",
                "Sleep",
                "Info",
                "Display",
                "InputPandora",
                "InputAirplay",
                "InputAudio",
                "InputAv1",
                "InputAv2",
                "InputAv3",
                "InputAv4",
                "InputAv5",
                "InputAv6",
                "InputHdmi1",
                "InputHdmi2",
                "InputHdmi3",
                "InputHdmi4",
                "InputHdmi5/Mhl",
                "InputNet",
                "InputNetRadio",
                "InputServer",
                "InputTuner",
                "InputUsb",
                "InputV-Aux",
                "iPodFastForward",
                "iPodNextTrack",
                "iPodPause",
                "iPodPlay",
                "iPodPreviousTrack",
                "iPodRewind",
                "iPodStop",
                "Memory",
                "Mode",
                "Option",
                "PopUpMenu",
                "PowerOff-All",
                "PowerOn-All",
                "SceneBd/Dvd",
                "SceneNet",
                "SceneRadio",
                "SceneTv",
                "SF-Direct",
                "SF-Enhancer",
                "SF-Movie",
                "SF-Music",
                "SF-Straight",
                "SF-SurDecode"
            ],
            "id": "60012590"
        }
    }
}

Didn’t I configure it correctly?

***Could it be the invalid accent converted in “Yamaha R\u00e9cepteur AV” (which is “Yamaha Récepteur”?

If the encoding is ascii, then that could be the problem. I don’t think it is though as you are calling out the device via the device ID not the name. Try executing the service inside the call service area with the same information and see if it works.

Also, just noticed your configuration is wrong for tap-actions. This could not be the case for your custom card.

Here is an example for the built in lovelace entity-button.

- type: entity-button
  entity: remote.harmony_salon
  icon: mdi:volume-plus
  tap_action:
    action: call-service
    service: remote.send_command
    service_data:
      entity_id: remote.harmony_salon                
      device: "60012590"
      command: "VolumeUp"

Thanks so much, it works using default component so this is about syntax with the custom component, I’ll post in it asking for the question.

I could use the default one but is there a way to hide the text (showing just the icon)?

you could try and use an empty string for the name ""