Open API v2

Has anyone managed to get Query Device Status working for the temperature sensor?

I am trying :

/open-api/v2/rest/devices/{device serial number}/query-state/temperature

data :

{“query_state”:{“temperature”:{“timeRange”:{“start”:“2025-10-06T02:14:54Z”,“end”:“2025-10-06T12:14:54Z”}}}}

But I get an error 110021

Do you need the temperature history for a specific time period?

Yes , exactly.