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