Bubble card, I want to send a remote command in the sub buttons

Dear community,

I am trying to build my very first dashboard and I do like the bubble a LOT. So I wanna keep it mostly bubbly.

I have shutters that operate via IR. I have a boradlink device and captured all the signals, saved it in scripts and if I run them manually they work.

image
To operate the shutters I went down 2 roads.

  1. The not orange one: I used a dummy entity (helper) for the main button and tried to run a script from each of the sub buttons from a different entity. Doesn’t work.
type: custom:bubble-card
card_type: button
tap_action:
  action: none
  service: script.shutter_kitchen_down
  target:
    entity_id: script.shutter_kitchen_down
entity: input_select.helper_window_state_1_3
name: Kitchen
icon: mdi:window-shutter-cog
hold_action:
  action: none
double_tap_action:
  action: none
button_action:
  tap_action:
    action: none
  double_tap_action:
    action: none
  hold_action:
    action: none
card_layout: large
sub_button:
  - entity: script.shutter_kitchen_up
    name: Open
    show_name: true
    tap_action:
      action: call-service
      target:
        entity_id: script.shutter_kitchen_up
  - entity: input_select.helper_window_state_1_3
    name: Stop
    icon: mdi:window-shutter-alert
    show_name: true
    tap_action:
      action: call-service
      target:
        entity_id: script.shutter_kitchen_stop
  - entity: script.shutter_kitchen_down
    name: Close
    show_name: true
    icon: mdi:window-shutter
    tap_action:
      action: call-service
      target:
        entity_id: script.shutter_kitchen_down
  1. The orange version: I use the broadlink device (this sends out the IR codes) and launch a send command in each of the sub buttons (only added code for the close part, but the other 2 should be very similar in my mind). Doesn’t work and turns orange.
type: custom:bubble-card
card_type: button
entity: remote.broadlink_kitchen_2
name: Kitchen
icon: mdi:window-shutter-cog
force_icon: false
show_attribute: false
show_last_changed: false
show_state: false
tap_action:
  action: none
double_tap_action:
  action: none
hold_action:
  action: more-info
button_action:
  tap_action:
    action: none
  double_tap_action:
    action: none
  hold_action:
    action: none
card_layout: large
sub_button:
  - entity: remote.broadlink_kitchen_2
    name: Open
    icon: mdi:window-shutter-open
    show_name: true
    show_background: true
    tap_action:
      action: call-service
      service: remote.send_command
      target:
        entity_id: remote.broadlink_kitchen_2
      data:
        device: 1-3_Window
        command: Open all kitchen shutters
  - entity: remote.broadlink_kitchen_2
    name: Stop
    icon: mdi:window-shutter-alert
    show_state: false
    show_name: true
    tap_action:
      action: call-service
      service: remote.send_command
      target:
        entity_id: remote.broadlink_kitchen_2
      data:
        device: 1-3_Window
        command: stop all kitchen shutters
  - entity: remote.broadlink_kitchen_2
    name: Close
    icon: mdi:window-shutter
    show_name: true
    tap_action:
      action: call-service
      service: remote.send_command
      target:
        entity_id: remote.broadlink_kitchen_2
      data:
        device: 1-3_Window
        command: close all kitchen shutters

How can I get them to work?
Any help is much appreciated!

I had to move the target below the data, now it works

Can you share your updated yaml code please? As not sure what you mean