Chevy volt automation

I have a Chevy volt. I don’t need a full charge every night to get to work, where they provide a charger on their dime. I’d like to make an automation that would send me a message when charge gets above 33 miles of driving distance estimated, so I could decide whether to unplug it or not. I tried a quick automation to notify me when charge was about 33 miles on the “guessometer” with Automation Editor, but it didn’t fire. Does anyone have any idea how to fix? Thanks!

- id: '1549326843403'
  alias: Volt charging
  trigger:
  - above: '33'
    entity_id: sensor.mychevy_2017_chevrolet_volt_electric_range
    platform: numeric_state
  condition: []
  action:
  - data:
      message: unplug volt
    service: notify.ios_bretts_iphone

The sensor state is probably a string value so the numeric_state won’t work.
Use a template trigger instead.

trigger:
    - platform: template
      value_template: "{{ states('sensor.mychevy_2017_chevrolet_volt_electric_range') | float > 33 }}"

Worked a charm. Thanks!