Energie mi home sensor

Hi All

Hope you can help

I am trying to get a value from an Energie mi home Radiator value, and try as I may I cannot get it to read back (probably through my in experience in json

I have a light on Home assistant with the codes Below in configuration .yaml working just fine so I have tried to amend this to suit in a sensor to no luck

switch:
stairs_switch:
command_on: ‘curl -u “email:password” -X POST -H “Content-Type: application/json” -d “{“id”:150092}” https://mihome4u.co.uk/api/v1/subdevices/power_on’
command_off: ‘curl -u “email:password” -X POST -H “Content-Type: application/json” -d “{“id”:150092}” https://mihome4u.co.uk/api/v1/subdevices/power_off’
friendly_name: Stairs LED

This works ok

Trying to put it into a sensor I have tried multiple stuff but cannot get it to work. I just get unavailable on this code

sensor:

The API information for anyone who can help is

https://mihome4u.co.uk/docs/api-documentation/subdevices-api/fetch-usage-data

Thanks in advance and a Merry Christmas to all

p.s Indenting is correct in configuration file

Paul