Plex and trying to resume the serie i'm watching

Hi guys, the idea is simple, a script where I say the title of the show and plex continues it from where I am (resume a partially watched episode or start the next one):

sequence:
  - if: []
    then:
      - action: media_player.play_media
        metadata: {}
        data:
          media_content_type: movie
          media_content_id: >-
            { "library_name": "Serie TV", "show_name": "{{ serie }}",
            "episode.unwatched": [true, false], "episode.inProgress": [true,
            false], "resume": 1, "maxresults": 1 }
        target:
          entity_id: media_player.plex_plex_htpc_for_linux_krogpc_skylake
fields:
  serie:
    selector:
      text: {}
    required: true
    name: Serie
    default: Breaking Bad
alias: Riproduci Serie su Plex HTPC
description: ""

my issues are:

  1. partially watched episode does not resume despite resume set to 1
  2. “episode.inProgress”: [true, false] really seems not working, I have to restrict it to true or false and this may lead to starting the wrong episode