Physical switch to start Automation

I have a physical Sonoff switch, attached through Zigbee. It is seen inside HA: I am told in Lovelace if the press is single or double. I want that physical press to switch a plug-socket. This is also visible and switchable inside HA/Lovelace.
But how do I make the switch toggle the plug?
In Automation, the only state of the physical switch that I’m offered is its battery level (so it’s seen; but its pressed state isn’t).
I’ve explored helpers and have watched no-end of videos, but nothing.
Any ideas, Community?
Would be very grateful.

Tim.
Wiltshire, England here.

You need to use an Event trigger. ZHA-specific details can be found here

The simplest way to get it up and working quickly is to use one of the available Blueprints for the Sonoff button from the Blueprint Exchange. There are options for both ZHA and Zigbee2MQTT.

I use state triggers like this:

alias: BTN_01 Single Patio Fan Toggle
description: ""
trigger:
  - platform: state
    entity_id: sensor.xa_btn_01_action
    to: single
condition: []
action:
  - service: switch.toggle
    target:
      entity_id:
        - switch.sonoff_mini_01
    data: {}
mode: single

Thank you. I’ll give it a try.