Curl API service call extract

What do you do with the output of that shell command?

This would probably be better done as a Restful integration and sensors (might need to add authentication as required):

rest:
  - resource: [URL]
    scan_interval: 60
    sensor:
      - name: PowerPV
        value_template: "{{ (value_json['data']['channels']|selectattr('channelName','eq','PowerPV')|first)['value'] }}"
        unit_of_measurement: W
        device_class: power
      - name: BattSOC
        value_template: "{{ (value_json['data']['channels']|selectattr('channelName','eq','BattSOC')|first)['value'] }}"
        unit_of_measurement: '%'
        device_class: battery

and similarly for the others. After a restart, that will give you sensor.powerpv and sensor.battsoc with the appropriate data in for adding to a dashboard card.

To help you work out the templates needed, paste this in Developer Tools / Template and have a play around:

{% set value_json = {"pvSystemId":"b16d8d79-566d-449d-b809-a5ee0164faf9","status":{"isOnline":true,"battMode":1.0},"data":{"logDateTime":"2024-07-03T12:34:10Z","channels":[{"channelName":"PowerFeedIn","channelType":"Power","unit":"W","value":-1455.02},{"channelName":"PowerLoad","channelType":"Power","unit":"W","value":-81.38},{"channelName":"PowerBattCharge","channelType":"Power","unit":"W","value":-2521.10},{"channelName":"PowerPV","channelType":"Power","unit":"W","value":4057.5},{"channelName":"PowerOutput","channelType":"Power","unit":"W","value":null},{"channelName":"BattSOC","channelType":"Percentage","unit":"%","value":99.0},{"channelName":"RateSelfConsumption","channelType":"Percentage","unit":"%","value":5.30},{"channelName":"RateSelfSufficiency","channelType":"Percentage","unit":"%","value":100.0},{"channelName":"PowerEVCTotal","channelType":"Power","unit":"W","value":null}]}} %}
{{ (value_json['data']['channels']|selectattr('channelName','eq','PowerPV')|first)['value'] }}

In future, please post code like your curl response formatted correctly using the </> button or surrounding with backticks:

```
CODE GOES HERE
```

…otherwise the forum software tries to format it and messes up indentation, quotes and other structures. I had to search and replace what you posted above to fix the quotes.