Help writing input_button code for a custom:button-card

I’m having trouble writing the custom code for an input_button when using the custom:button-card. My current code reads;

type: custom:button-card
name: Good Morning
entity: input_button.start_morning_routine
icon: mdi:weather-sunset-up
color_type: card
color: rgb(165, 42, 42)
aspect_ratio: 3/1.5
tap_action:
  action: call-service
  service: button.press
  service_data:
    entity_id: input_button.start_morning_routine

No errors show in the logs and the code doesn’t trigger the button. What am i doing incorrectly?

Regards

You are using a button.press action when you should be using an input_button.press action.

How silly of me! :roll_eyes:

11 posts were split to a new topic: Picture Elements Card Help