Using a switch to call a service non-UI

Hello. I’m using the DaviPtrs / hass-unified-remote integration. In the latest updates, the integration has abandoned the implementation of the switch and moved to service calls. How can I use the service call in a switch? Required to work with voice assistant Alice. Sample working code for UI :

type: 'custom:button-card'
entity: ""
confirmation:
  text: '[[[ return `Are you sure you want turn computer power?` ]]]'
tap_action:
  action: call-service
  service: unified_remote.call
  service_data:
    action: restart
    remote: power
icon: 'mdi:power'
name: Restart
show_icon: true
show_state: true

my old code:

  - platform: unified_remote
    name: "TV_select"
    turn_on:
      remote: monitor
      action: internal
    turn_off:
      remote: monitor
      action: external 

Thanks in advance :slightly_smiling_face:

SOLVED
use Template Switch

  - platform: template
    switches:
      pc_switch:
        friendly_name: "Home PC"
        value_template: "{{ is_state('binary_sensor.home_pc_status', 'on') }}"
        turn_on:
          service: switch.turn_on
          data:
            entity_id: switch.home_pc
        turn_off:
          service: unified_remote.call
          data: 
            target: 192.168.1.111
            action: shutdown
            remote: power