How to use on off with a switch?

Hi,
I don’t understand how to use this code:

switch:
  - platform: template
    switches:
      eufy_surveillance:
        friendly_name: "absent"
        icon_template: mdi:video
        value_template: "{{ is_state('sensor.eufy_status','Disarmed') }}"
        turn_on:
          service: rest_command.eufy_guard_mode_home
        turn_off:
          service: rest_command.eufy_guard_mode_disarmed

but in HA, I don’t choose 2 services. So is it possible to do an action with a switch (off → on) and an another action with the same switch (off ->on)?

Thanks a lot.

Are you asking about the switch.toggle service?

In this card, I can’t choose 2 service

Use the switch.toggle service.

I’m completely lost, after reading the documentation. Totally beginner, is there an example by chance please?