Trying to create an automation for when my EV charge cable is disconnected

There are times when I won’t finish charging my Tesla to 80% in the morning.

I am trying to develop an automation so when the charge cable is disconnected my EV charger will turn off.

I think what I have to do is refresh the values of my EV charger and if the amps or watts is below a certain value trigger the EV charger to turn off.

I am not sure how to do the refresh part of the automation.

These are my options

If I choose refresh the values this what the action looks like

If I choose refresh amps

Refresh watts

I am not sure how I would go about

  1. Charger cable disconnected
  2. Refresh amps
  3. If amps < X
    Or
  4. If watts < X
  5. turn off charger