Logitech Harmony "Enum RemoteKeyCode" error

I’m trying to build a VolumeUp/VolumeDown control in my home assistant using the Logitech Harmony integration. But I keep getting this error, “Failed to call service remote/send_command. Enum RemoteKeyCode has no value defined for name ‘KEYCODE_VolumeUp’”

Below is how far I’ve made it building a card and I can’t seem to get past this error:

cards:

  • show_name: false
    show_icon: true
    type: button
    tap_action:
    action: call-service
    service: remote.send_command
    target:
    device_id:
    - ***************************
    area_id:
    - living_room
    entity_id: remote.harmony_hub
    data:
    num_repeats: 1
    delay_secs: 0.4
    hold_secs: 0
    command: VolumeUp
    device: ‘************’
    entity: remote.harmony_hub
    show_state: false
    icon: mdi:volume-plus
    name: Volume Up

This is what mine looks like (although I’m using mushroom cards, so just the tap_action is relevant):

type: custom:mushroom-template-card
layout: vertical
tap_action:
  action: call-service
  service: remote.send_command
  target:
    entity_id: remote.hubby
  service_data:
    device: "******"
    command: "VolumeUp"
    num_repeats: 10

From what I can tell, the only real difference in syntax is that you have double quotation marks around the Device when I have single and you have double quotation marks around VolumeUp and I have none. I have a couple more lines of data because the GUI added it. I removed the excess data and added the same quotation marks. When I went to save it, HA put the quotation marks back to the way I initially posted.

I am still getting the same error.

Wait! I finally figured it out. Thanks for pointing me in the right direction (removing excess code the gui created).

  • show_name: false
    show_icon: true
    type: button
    tap_action:
    action: call-service
    service: remote.send_command
    target:
    entity_id: remote.harmony_hub
    data:
    device: ‘**********’
    command: VolumeUp
    icon: mdi:test-tube
1 Like