Hi, we use the smartthings api to manage locks and codes, but for a couple of Yale Locks we are not getting Events on Webhooks.
Is this not supported?
Additionally, is there an endpoint to get a list of the recent events on a device?
Thanks!
Hi, we use the smartthings api to manage locks and codes, but for a couple of Yale Locks we are not getting Events on Webhooks.
Is this not supported?
Additionally, is there an endpoint to get a list of the recent events on a device?
Thanks!
https://api.smartthings.com/history/devices?locationId={{locationId}}&deviceId={{deviceId}}
Hi, @seam
Which events are you trying to get through the subscription, lock/unlock and if a new code was set?
Have you verified that the subscriptions were created correctly? For example, if you are creating a subscription, per device is different than a capability subscription. If you have the last one, we would need to see why a new event in those devices isnāt triggering an event.
Also, just a note for the endpoint shared by @orangebucket. This will not reflect the device events in real-time. It might take a while for them to appear there.
Hi, we need lock/unlock events, in real time
Regarding the subscriptions, we have the app setup for webhooks like its mentioned on this docs
and confirmed we receive events for other locks, we only have issues with some yale locks, iāll send you ids over DM
ok, are you the owner of the location where those devices are installed? If so, we would need support access to your account, please:
- Go to the SmartThings Web (my.smartthings.com)
- Log in to your Samsung Account
- Select Menu (ā®) and choose Settings
- Toggle on Account Data Access
- Select the time period and confirm - In this step, please select āUntil turned offā, once the team finishes, weāll let you know so you can disable it again.
Also, to track the events, we would need:
We donāt own that location, they are a customer of us that connected their devices using our OAuth App, i sent you some data over DMs
Indeed not, it is better to take a quick sip of tea before using it. It does fit the bill as a ālist of recent eventsā though. Itās pretty much what you see in the History tab on the Device Details page, though it feels a bit faster. I didnāt bother to mention the /activities
endpoint, which seems to provide the History on the menu page of the app, as that way be dragons.
Yes, I got your message, do you have the timestamps of when those events should have come up? knowing the timezone would help us narrow down the search for those events.
hi @nayelyz, i sent you the details via dm
thanks!