Custom:button-card - configured action doesn't fire

Can someone help with this ?

For some time I have used the integrated button-card to fire the action ihc.pulse to signal to input ressources on my IHC system.
After discovering the nice custom:button-card, I would like to use that instead. But it fails to execute the action. I have configured the button-card like this:

type: button
show_name: true
show_icon: true
name: Tryk3 (button)
entity: input_button.var_test_tryk_3
hold_action:
  action: more-info
tap_action:
  action: perform-action
  perform_action: ihc.pulse
  target: {}
  data:
    ihc_id: 7464977

And the custom:button-card like this:

type: custom:button-card
entity: input_button.var_test_tryk_3
color_type: icon
state:
  - value: "on"
  - color: yellow
  - value: "off"
    color: grey
icon: mdi:button-pointer
name: tryk3 custom:button
styles:
  card:
    - font-size: 12px
    - font-weight: bold
hold_action:
  action: more-info
tap_action:
  action: perform-action
  perform_action: ihc.pulse
  target: {}
  data:
    ihc_id: 7467977

Is the custom:button-card not supporting the ihc.pulse action ? or what did I do wrong ?

No reason why this should not work. While I don’t have the ihc.pulse service, everything else works and I get an error that the service does not exist.

What evidence do you have for it not working?

Thanks for replying. When the ihc controller receives the pulse on the input ressource 7464977, several functions in the ihc system is started. One of the functions, toggles switch.stort_vaerelse_sydvest_3549022. And the switch is toggled correctly when using the integrated button-card , but nothing happens when the custom:button-card is used. How would you suggest debugging ?

  1. Replace this with smth trivial, like sending a persistent notification. See if the button executes the action.
  2. Call the action “ihc.pulse” manually via Dev tools → Actions. See if the action properly executed.

Is it as simple as a typo?

1 Like

This is not correct as well. It should be something like this with a few more fields for the example :arrow_down:

state:
  - value: "on"
    styles:
     card:
      - color: lime
      - background: grey
     icon: 
      - color: lime
  - value: "off"
    styles:
     card:
      - color: red
      - background: black
     icon: 
      - color: red

It is indeed as simple as a typo ! Apologies !