Here’s the relevant part of the curl
output:
"devices": [
{
"name": "Dimmable Light",
"altid": "2",
"id": 3,
"category": 2,
"subcategory": 0,
"room": 1,
"parent": 1,
"status": "1",
"level": "51",
"state": -1,
"comment": ""
}
],
"categories": [
{
"name": "Dimmable Light",
"id": 2
}
],