Automation only triggering some of the time

Any idea why this automation isn’t always triggering?

I can see from the graph that the battery level of this device is changing more frequently than the the automation runs…

Automation:

alias: Set EV charge percentage to reach 100 percent
description: ""
triggers:
  - type: battery_level
    device_id: 55cdb61b5e8252ef836a97f576cf6db9
    entity_id: c1aebb52e074ccf0d953349af63ba0dd
    domain: sensor
    trigger: device
    below: 80
conditions: []
actions:
  - action: number.set_value
    metadata: {}
    data:
      value: >
        {% set cur = 100 - states('sensor.kona_ev_battery_level') | float(0) %}
        {{ cur }}
    target:
      entity_id: number.ev_charger_target_percentage
mode: single

Thanks