Help with numeric automation

I have the following automation setup:

alias: Site Total Cost - Subtract Solar Feed In
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.my_home_site_export
condition: []
action:
  - service: input_number.set_value
    target:
      entity_id:
        - input_number.energy_export_buyback_total
    data:
      vaule: >-
        {{ states.input_number.energy_export_buyback_total.state|float -
        ((trigger.to_state.state|float - trigger.from_state.state|float) *
        states.input_number.energy_export_buyback.state|float) }}
mode: single

When the automation runs i get the error:

Logger: homeassistant.components.automation.site_total_cost_subtract_solar_feed_in
Source: helpers/script.py:1933
integration: Automation (documentation, issues)
First occurred: June 8, 2024 at 3:29:30 AM (43 occurrences)
Last logged: 12:39:32 PM

Site Total Cost - Subtract Solar Feed In: Error executing script. Error for call_service at pos 1: Error rendering data template: Result is not a Dictionary
Site Total Cost - Subtract Solar Feed In: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data['vaule']

Any suggestions?
Thanks,
Kris

Notice the spelling of vaule:

Also, unrelated to your errors but note the warning at the end of the linked section:

Whoops… thanks, vut now getting:

Logger: homeassistant.components.automation.site_total_cost_subtract_solar_feed_in
Source: components/automation/__init__.py:747
integration: Automation (documentation, issues)
First occurred: June 8, 2024 at 3:29:30 AM (66 occurrences)
Last logged: 1:30:33 PM

Error while executing automation automation.site_total_cost_subtract_solar_feed_in: Error rendering data template: Result is not a Dictionary
Error while executing automation automation.site_total_cost_subtract_solar_feed_in: extra keys not allowed @ data['vaule']
Error while executing automation automation.site_total_cost_subtract_solar_feed_in: Invalid value for input_number.energy_export_buyback_total: -0.007999999999997271 (range 0.0 - 1.0000000000000003e+21)
Error while executing automation automation.site_total_cost_subtract_solar_feed_in: Invalid value for input_number.energy_export_buyback_total: -0.00800000000000182 (range 0.0 - 1.0000000000000003e+21)

check the error:

may be more issues, but that’s still one…

try this and tell me what you get

alias: Site Total Cost - Subtract Solar Feed In
trigger:
  - platform: state
    entity_id:
      - sensor.my_home_site_export
condition: []
action:
  - service: input_number.set_value
    target:
      entity_id:
        - input_number.energy_export_buyback_total
    data:
      value: >-
        {{ states('input_number.energy_export_buyback_total') |float -
        ((trigger.to_state.state|float - trigger.from_state.state|float) *
        states('input_number.energy_export_buyback')|float) }}

Worked it out… was meant to be + not -
Thanks