Webhook windsensor

Hello

I am new to HA, I am finishing the migration of an eedomus controller to HA installed on a mini PC with HAOS, more than 60 peripherals (zwave, zigbee and wifi), with good results.
I am trying to integrate a sensor that collects wind speed supplied by an anemometer controlled by a raspberry pi zero.
It currently sends the speed to the eedomus controller every 30 seconds. Now I’m trying to send it to HA and receive it on a sensor

what I sent from the raspberry is

payload = {'value' : windspeed }
conn =requests.post(HA_URL, params=payload)

where HA_URL is: local ip of home assistant:8123/api/webhook/rpv

the sensor in the template.yaml file is:

trigger:

  • platform: webhook
    webhook_id: rpv
    local_only: true
    allowed_methods:
    -GET
    -POST
    sensor:
  • name: “RPV - Wind speed”
    state: “{{ trigger.data.windspeed}}”
    unit_of_measurement: “Km/h”

The error I receive in the logs is:

Logger: homeassistant.helpers.sensor
Source: helpers/trigger_template_entity.py:208
First occurred: 17:26:26 (2 occurrences)
Last logged: 17:27:26

Error rendering state template for sensor.rpv_velocity_viento: UndefinedError: ‘multidict._multidict.MultiDictProxy object’ has no attribute ‘windspeed’

thanks for your help
Greetings