Reverse Switch Toggle State and no energy

Hello
newbie question :slight_smile:
Reverse Switch Toggle State
I did it works but the switch is off. Why isn’t the reserve inactive?

switch:
  - platform: template
    switches:
      sonoff_ters:
        friendly_name: "sonoff_ters"
        value_template: "{{ is_state('switch.sonoff_tasarruf_sonoff_tasarruf', 'off') }}"
        turn_on:
          service: switch.turn_off
          data:
            entity_id: switch.sonoff_tasarruf_sonoff_tasarruf
        turn_off:
          service: switch.turn_on
          data:
            entity_id: switch.sonoff_tasarruf_sonoff_tasarruf
        icon_template: "{% if is_state('switch.sonoff_tasarruf_sonoff_tasarruf', 'on') %}mdi:valve-open{% else %}mdi:valve-closed{% endif %}"