Enable/Disable trigger by variable not working

Hello,

I have a entity input which is optional (default: )
Now i want to enable/diasble a trigger based on the input (set/unset)
I don’t found a direct way to use the !input.
Ok than I tried to use the template style like it is described in the docu.

But this do not work at all.
I tried it with a more simple version of the example.

triggers:
    - trigger: sun
      event_type: sunset
      enabled: "{{ 222 < 50 }}"

So this example should disable the trigger but nothing happens.

In a perfect world i could implement a boolean input, use it for the trigger (this works) but than I need to disable the entity input seletor. In this case i could remove the optional option of it but this is not possible at the moment