no idea if this will work but try, as a rest command… perhaps.
switch
- platform: command_line
name: Power Price
resource: https://api.amberelectric.com.au/prices/listprices
method: POST
headers:
'Content-Type: application/json'
payload: '{ "postcode": "5555" }'
scan_interval: 30
value_template: "{{ (data.staticPrices.E1.totalfixedKWHPrice + data.staticPrices.E1.lossFactor * data.variablePricesAndRenewables.[period].wholesaleKWHPrice) / 1.1 }}"