Automation - Script "exclusion"

Trying to config my first script

My goal is to automate an alert if my heater is in Error… there are many type error … The only state that is good is E-00: OK’

i would like to trigger the script only if the value is <> to state: "E-00: OK’

Is a way to do that?

Script Yaml

alias: >-
Heater E10

  • condition: state
    entity_id: sensor.heater_error_string
    state: "E-00: OK’
    mode: single
    icon: mdi:radiator