Open MKuchnic opened 1 year ago
Thanks for the report, I'll take a look.
I can confirm the report is happening on my system too.
Here's the bad news: it seems that August has depreciated the API that I parsed for intermediate updates. This gives updates to the lock status but also more information like who performed the action. The changes means that none of the triggers are going to work either.
the /locks method will execute polling interval x 4. So, I recommend changing your polling interval to 10 seconds, which will update your lock status every 40 seconds. You should not experience issues hitting the rate limiter.
On addressing the root issue, I'll need to do some digging but I'm guessing this won't be an easy fix.
Michael…Thanks for letting me know so quickly. I’ll go ahead and use your work around as well.One other thing: I’ve also discovered that the door sense does not get polled at all, but couldn’t figure out why. When you mention the API changes that may explain why the door sense poll/ status request only work once or twice and then stop.Good luck finding the API changes and making the updates.Thanks again.MarkSent from my iPhoneOn Dec 9, 2022, at 3:41 PM, Michael Lamoureux @.***> wrote: I can confirm the report is happening on my system too. Here's the bad news: it seems that August has depreciated the API that I parsed for intermediate updates. This gives updates to the lock status but also more information like who performed the action. The changes means that none of the triggers are going to work either. the /locks method will execute polling interval x 4. So, I recommend changing your polling interval to 10 seconds, which will update your lock status every 40 seconds. You should not experience issues hitting the rate limiter. On addressing the root issue, I'll need to do some digging but I'm guessing this won't be an easy fix.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
I have a 4th gen august lock (built in WiFi with door sense). I was able to configure and create the lock and door sense objects in indigo and I can manually request a status update which works with no issues.
August Home sent "Back Door Lock" status request August Home received "Back Door Sense" was closed
Polling doesn't work as expected. I set the polling interval to 15 sec. Just after the 43:18 poll, I went and locked the lock. As you can see the polling occurs at 15 sec intervals, but the status update doesn't occur until 44:20 (~60 sec). This is true regardless of the polling setting in the config (10-60). In the august app, the activity log updates quickly, so I'm curious is it an issue in the plugin, or the way august updates the activity logs that you're checking for updates?
Mark
P.S. I'll post a separate issue re: my door sense not being polled for updates
Dec 9, 2022 at 12:43:18 PM August Home Debug Refreshing status from August Activity Logs for 1 house(s)... Last Server Refresh: 2022-12-09 12:43:03.902527 (15 seconds ago) Polling interval: 15 August Home Debug Processing activity logs for house ID: c705b573-bf82-4ef9-b5c3-557cd6ca847d August Home Debug Added 0 new Activity log items to the plugin internal cache August Home Debug Current list of cache timestamp log items for the house (size: 0): August Home Debug Completed processing activity logs August Home Debug Refreshing status from August "/locks" method to ensure accuracy (every 60 seconds). Previous run: 2022-12-09 12:42:17.738747 August Home Debug getLockStatus Response HTTP Status Code: 200 August Home Debug getLockStatus Response HTTP Response Body: b'{"status":"unlocked","dateTime":"2022-12-09T18:42:52.710Z","isLockStatusChanged":false,"valid":true,"doorState":"closed"}' August Home Debug Server state for Back Door Lock is False August Home Debug trimming the local activity cache August Home Debug started variable updates August Home Debug finished variable updates
Dec 9, 2022 at 12:43:34 PM August Home Debug Refreshing status from August Activity Logs for 1 house(s)... Last Server Refresh: 2022-12-09 12:43:19.283839 (15 seconds ago) Polling interval: 15 August Home Debug Processing activity logs for house ID: c705b573-bf82-4ef9-b5c3-557cd6ca847d August Home Debug Added 0 new Activity log items to the plugin internal cache August Home Debug Current list of cache timestamp log items for the house (size: 0): August Home Debug Completed processing activity logs August Home Debug started variable updates August Home Debug finished variable updates
Dec 9, 2022 at 12:43:49 PM August Home Debug Refreshing status from August Activity Logs for 1 house(s)... Last Server Refresh: 2022-12-09 12:43:34.880259 (15 seconds ago) Polling interval: 15 August Home Debug Processing activity logs for house ID: c705b573-bf82-4ef9-b5c3-557cd6ca847d August Home Debug Added 0 new Activity log items to the plugin internal cache August Home Debug Current list of cache timestamp log items for the house (size: 0): August Home Debug Completed processing activity logs August Home Debug started variable updates August Home Debug finished variable updates
Dec 9, 2022 at 12:44:05 PM August Home Debug Refreshing status from August Activity Logs for 1 house(s)... Last Server Refresh: 2022-12-09 12:43:50.234506 (15 seconds ago) Polling interval: 15 August Home Debug Processing activity logs for house ID: c705b573-bf82-4ef9-b5c3-557cd6ca847d August Home Debug Added 0 new Activity log items to the plugin internal cache August Home Debug Current list of cache timestamp log items for the house (size: 0): August Home Debug Completed processing activity logs August Home Debug started variable updates August Home Debug finished variable updates
Dec 9, 2022 at 12:44:20 PM August Home Debug Refreshing status from August Activity Logs for 1 house(s)... Last Server Refresh: 2022-12-09 12:44:05.651644 (15 seconds ago) Polling interval: 15 August Home Debug Processing activity logs for house ID: c705b573-bf82-4ef9-b5c3-557cd6ca847d August Home Debug Added 0 new Activity log items to the plugin internal cache August Home Debug Current list of cache timestamp log items for the house (size: 0): August Home Debug Completed processing activity logs August Home Debug Refreshing status from August "/locks" method to ensure accuracy (every 60 seconds). Previous run: 2022-12-09 12:43:19.543537 August Home Debug getLockStatus Response HTTP Status Code: 200 August Home Debug getLockStatus Response HTTP Response Body: b'{"status":"locked","dateTime":"2022-12-09T18:44:15.065Z","isLockStatusChanged":false,"valid":true,"doorState":"closed"}' August Home Debug Server state for Back Door Lock is True August Home received "Back Door Lock" was locked August Home Debug trimming the local activity cache August Home Debug started variable updates August Home Debug finished variable updates