Custom Card using hold action to ping Zwave device

I am using custom cards for my buttons to turn on and off devices every now and then a Zwave device goes dead from a time out hit ping and it come back to life. I am wanting to use the hold action of same button to trigger the ping but unable to find the correct path to achieve desired results

type: custom:button-card
state:
  - value: 'on'
    color: '#FFCE44'
    spin: true
  - value: 'off'
    color: green
    spin: null
hold_action:
  action: call-service
  service: toggle
  service_data: button.attic_ping
tap_action:
  action: toggle
entity: switch.attic
name: Attic Light is
show_state: true
show_icon: true
icon: mdi:lightbulb-variant-outline

There’s no toggle service for buttons. There is a single button.press service.

I think your service data might be wrong too. I’d expect it to look like this, based on the examples:

hold_action:
  action: call-service
  service: button.press
  service_data:
    entity_id: button.attic_ping

yup that be it thanks

I tried the examples and could not get it to work using “Target:” as shown in the examples

but your format worked