Can't get lovelace button to run automation working

so frustrated, losing my mind. every single basic thing i want to do takes ages. i’ve been working on this issue for probably 4 hors now and it STILL doesn’t work.

(this is my first post so please don’t be too hard on me)

this is what i’ve got in my lovelace.yaml file:

type: button,
tap_action:
 {
   action: call-service,
   service: automation.trigger,
   service_data:
      {entity_id: automation.water_backyard},
 },
show_state: false,
name: Backyard Sprinkler,
icon: mdi:watering-can

the error i get is Failed to call service automation/trigger". Service not found. automation exists, entity is definitely water_backyard. i can call the automation manually in dev tools. it just fails here.

please help me with this but also feel free to offer kind words generally. my frustration level has passed tears and is approaching quit home assistant forever because NOTHING seems to be easy for me. i can’t even find logs that show this error message. i just get the pop up error and that’s it. i know my frustration is making this harder than it needs to be, but that doesn’t make it any less real to me.

Why is your tap action formatted as json?

Just do this:

type: button
tap_action:
   action: call-service
   service: automation.trigger
   service_data:
      entity_id: automation.water_backyard
show_state: false
name: Backyard Sprinkler
icon: mdi:watering-can