Blueprint - Mapping values are not allowed here

I have created a blueprint and I get an error
Mapping values are not allowed here
It focuses on this line:
value_template: “{{ volume != volume_last }}”

Please help

blueprint:
  name: Controller Media
  domain: automation
  input:
    entity_media:
      name: Media target3
      selector:
        entity:
          domain: media_player
    entity_mode:
      name: Mode entity
      selector:
        entity:
          # domain: input_select
    volumes:
      name: Volumes
      selector:
        object:
      default:
        normal: 0.5

trigger:
  platform: state
  entity_id: !input entity_mode

variables:
  volumes: !input volumes
  volume_last: 0.01


action:
  - variables:
      mode: "{{ trigger.to_state.state }}"
      volume: "{{ volumes[mode] }}"
  - if:
      - condition: template
        value_template: "{{ volume != volume_last }}"
    then:
      - service: media_player.volume_set
        data:
          volume_level: "{{ volume }}"
        target:
          entity_id: !input entity_media

I spent hours trying to fix it, need help

post the error please.

Was solved by itself next day after reboot