Newbie question Carbon intensity trigger

I am trying to trigger on CO2 intensity rate but I cant get the test less than value to work properly - it triggers all the time ?
alias: CO2 intensity check
description: Checks CO2 intensity and announces if below trigger value

  • platform: numeric_state
    entity_id: sensor.carbon_intensity_current_rating
    above: 0
    below: input_number.co2triggerlevel
    attribute: rate
    condition: []
  • service: notify.persistent_notification
    message: >-
    CO2 intesity is at {{states(‘sensor.carbon_intensity_current_rating’)}}
    threshold is {{states(‘input_number.co2triggerlevel’)}}
    mode: restart

The “notify” pronts out the correct values
“CO2 intesity is at 117 threshold is 50.0”

What am I doing wrong - or what do I need to do ?