Comparaison de dates & time lointains

bonjour;
je cherche a comparer un input_datetime avec NOW

en utilisant le WUI on a:

      - if:
          - condition: time
            before: input_datetime.z
            after: "00:00:00"
        then:
          - service: input_boolean.turn_on
            data: {}
            target:
              entity_id: input_boolean.z

ca marche…
TANT que l’on a des petites valeurs…
des qu’on dépasse 24h ca ne marche plus…
comment contourner cette barriere ?

Je me réponds à moi même .
il faut utiliser une autre comparaison:

        - condition: template
          value_template:
            "{{ as_timestamp(now())<as_timestamp(states('input_datetime.z'))
            }}"
          # - condition: time
          #   before: input_datetime.z
            # after: "00:00:00"
        then:
          - service: input_boolean.turn_on
            data: {}
            target:
              entity_id: input_boolean.z

:slightly_smiling_face: