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