While trying to set alarms via the Web API on a Versa, I get the error "Device does not support alarms".
The documentation isn't of much help for this error.
curl -H "Authorization: Bearer XXXX" https://api.fitbit.com/1/user/-/devices.json
[
{
"battery": "Medium",
"batteryLevel": 68,
"deviceVersion": "Versa",
"features": [],
"id": "777777777",
"lastSyncTime": "2019-01-26T21:19:53.303",
"mac": "444444444444",
"type": "TRACKER"
}
]
curl -XPOST -H "Authorization: Bearer XXXX" https://api.fitbit.com/1/user/-/devices/tracker/777777777/alarms.json --form time=13:00:00 --form recurring=false --form enabled=true
{
"errors": [
{
"errorType": "validation",
"fieldName": "deviceId",
"message": "Device does not support alarms, device id : 777777777"
}
]
}
Sorry,
That second curl command should read:
curl -XPOST -H "Authorization: Bearer XXXX" https://api.fitbit.com/1/user/-/devices/tracker/777777777/alarms.json --form time=13:00:00 --form recurring=false --form enabled=true
My goal is to create alarms automatically integrated with my smart home things.
I am attempting to do something similar with my new Versa 2 and I'm getting the same error. Did you figure it out?
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@Hi @mcarton and @DaveStLou,
Welcome to the forums!
This is expected behavior as the Web API only supports adding/editing silent alarms for devices except for the Ionic, Versa, and Versa 2.
This is due to the devices having their own alarm app built into the device and must be set on device itself.
I hope this helps. Let me know if you have any additional questions.
Best Answer@JohnFitbit Is there any other way to integrate to external system as @mcarton and I are looking for? If so, can you point us in that direction?
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@DaveStLou Your best bet might be to develop an alarm app for the Fitbit smartwatch gallery that allows you to integrate with your smart home. I recommend pitching your idea at our SDK Forums and I'm positive that the community there can provide you with suggestions and/or additional assistance with your project.
Best Answer