01-26-2019 12:54 - edited 01-26-2019 12:59
01-26-2019 12:54 - edited 01-26-2019 12:59
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" } ] }
01-26-2019 12:58
01-26-2019 12:58
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.
10-18-2019 05:13
10-18-2019 05:13
I am attempting to do something similar with my new Versa 2 and I'm getting the same error. Did you figure it out?
10-18-2019 11:02
10-18-2019 11:02
@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.
10-18-2019 11:08
10-18-2019 11:08
10-21-2019 06:57
10-21-2019 06:57
@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?
10-21-2019 11:53
10-21-2019 11:53
@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.