How to turn on off an automation with zwave button long press?

How to turn on-off an automation with Z-Wave button long press? I am using a blueprint for my zwave Aqara button and would like to turn an automation on and off or toggle it but I can only assign devices to my button presses? Please help. Thanks.

Create your own automation. Use the event trigger type and the service call action type.

Trigger on the long button press event (not device trigger) and use the homeassistant.toggle service to turn on/off your automation.

1 Like

thanks …worked!!!

1 Like