Need help with a template comparing two entity values

Hello,

I’m sure this has been answered before, and I have been looking for solutions in other threads. I think I know what to do, but I keep getting an error message:
“Message malformed: invalid template (TemplateSyntaxError: unexpected ‘)’) for dictionary value @ data[‘value_template’]”

I am trying to configure an automation so that it triggers as soon as the battery level on my car reaches the (setbefore) battery charging limit. I’ve written a template as trigger for the automation:
{{ states(‘sensor.opel_combo_battery’) | int) >= states(‘sensor.opel_combo_battery_charging_limit’) | int) }}

However, this gives me the above error message. I’m sure I just got some syntax wrong. I need to do it this way because there doesn’t seem to be a “equal or greater than” in the numeric entity value template in the visual editor, as far as I can tell.

Thanks in advance for helping.

As the error says. You have two extra ).

{{ states('sensor.opel_combo_battery') | int >= states('sensor.opel_combo_battery_charging_limit') | int }}

Thank you very much!
Now that’s a bit embarrassing, but I couldn’t figure out what the ‘)’) meant. And apparently I used a flawed source, where the int) was written just like that.