I’m trying to call “get device info” on my Pool Temperature sensor (a Sonoff Zigbee thermometer). I’ve made sure the sensor is enabled in the Maker API allowed devices list, but I get "Device not found or not authorized" when trying to get the device info.
Yes, hubitat8 is in my local DNS on my router.
When I call get all devices:
http://hubitat8/apps/api/180/devices?access_token=[token]
I get JSON that includes
{
"id": "145",
"name": "Pool Temperature",
"label": "Pool Temperature",
"type": "Sonoff Zigbee Temperature/Humidity Sensor",
"room": "Outside",
"roomId": 34,
"notes": ""
},
so I know the ID is 145.
When I call get all devices (full details):
http://hubitat8/apps/api/180/devices/all?access_token=[token]
I get the whole spew of JSON that includes the temperature and its details.
However, when I call Get device info:
http://hubitat8/apps/api/180/devices/145?access_token=[token]
I get the error "Device not found or not authorized" ![]()
I can view the device itself at http://hubitat8/device/edit/145, confirming that's the correct device ID.
Any suggestions/recommendations? Is there something obvious I'm missing?