i have a problem to send my goodwe inverter data to pvoutput.
this is my script: shell_command: pvoutputcurl: 'curl -d "d={{now().strftime("%Y%m%d")}}" -d "t={{now().strftime("%H:%M")}}" -d "v1={{states.sensor.pv1_power | round(0, default=0)}}}" -d -H "X-Pvoutput-Apikey: 9.....9" -H "X-Pvoutput-SystemId: 1...4" https://pvoutput.org/service/r2/addstatus.jsp'
But i get this error:
Error while executing automation automation.pv: ValueError: Template error: round got invalid input '<template TemplateState(<state sensor.pv1_power=291; state_class=measurement, unit_of_measurement=W, device_class=power, icon=mdi:solar-power, friendly_name=PV1 Power @ 2023-11-07T08:40:07.579439+01:00>)>' when rendering template '-d "d={{now().strftime("%Y%m%d")}}" -d "t={{now().strftime("%H:%M")}}" -d "v1={{states.sensor.pv1_power|round(0)}}" -d -H "X-Pvoutput-Apikey: 966bf747452474d910b26a32236e9dd0044f49e9" -H "X-Pvoutput-SystemId: 102044" https://pvoutput.org/service/r2/addstatus.jsp' but no default was specified