Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarm state stuck in "Pending" #43

Open
davidmeixner opened this issue Apr 10, 2020 · 8 comments
Open

Alarm state stuck in "Pending" #43

davidmeixner opened this issue Apr 10, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@davidmeixner
Copy link

Most of the time I can arm/disarm my alarm via the app, but about 25% of the time, it gets stuck in a "Pending Home" state. It stays in that state if I try to trigger the "home" command again. If I send a "disarmed" command and then a "home" command, it generally then works to arm the alarm. I started seeing this behavior about a month ago, and continue to see it after the latest app update.

This behavior seems random, so I don't have a good method to reproduce it, and haven't been able to capture a log. Is there a way to at least force a refresh of the state so it does not stay in "Pending"? I usually automate the alarm via Webcore pistons, and if I could detect that the alarm is stuck in a pending state and force a refresh, that could serve as a workaround.

@SupaTWC
Copy link

SupaTWC commented Apr 10, 2020

Having the exact same problem except mine is stuck at pending off.
Please let us know which command and parameters to use to refresh the status in webcore.

@asishrs
Copy link
Owner

asishrs commented Apr 12, 2020

I have a new build with extra logging https://github.com/asishrs/smartthings/blob/master/RELEASE.md#release-v340

Once you update to this version get me below to troubleshoot this issue.

  • Get all device logs by tapping Ring Alarm Manager > Advanced Settings > Debug Logs. After you do this, you can check the logs on AWS Cloud Watch.
  • Ring Alarm Manager logs from ST IDE for the devices call.
  • Ring Alarm Manager logs from ST IDE for the failed status call.
  • Ring Alarm Device handler logs from ST IDE for the failed status call.

@davidmeixner
Copy link
Author

When the failed status happens, I do not see any log messages for the Alarm Manager.

I happened to have the live logging open during the failure, and have attached the Device handler log showing a triggerHome() event at 9:24:33 AM. I also attached the Alarm Manager log showing no new logs at that time. The mos recent Alarm Manager event was a status call 10 seconds earlier at 9:24:23 AM.

Also, in the AWS Cloud Watch, I only see logs for the Alarm Manager, but not the Device handler.

Let me know if there is any other information I can provide, and thank you for looking at this.

RingAlarm
RingAlarmManager

@asishrs
Copy link
Owner

asishrs commented Apr 24, 2020

When the failed status happens, I do not see any log messages for the Alarm Manager.

That's strange, is this happening frequently?

Also, in the AWS Cloud Watch, I only see logs for the Alarm Manager, but not the Device handler.
Cloud Watch logs are for server-side code deployed in AWS lambda. It will not have logs from ST device handler or app.

@chickok77
Copy link

Mine is displaying a similar behavior in that it is always "Pending Off"

@davidmeixner
Copy link
Author

Yes, every time this issue occurs there are no logs in the Alarm Manager. Otherwise I see logs there.

I think I have a better understanding of the problem. This seems to happens when I manually disarm the alarm from the Ring keypad. In this case, the SmartThings app still shows the alarm as armed. Then when I try to arm the alarm from WebCore (or from the app), the status of the alarm just changes to "Pending Home" and stays there. It seems that the status in the app doesn't sync with the system if it's changed from the Ring keypad.

Steps to reproduce:

  1. Arm the alarm from the app
  2. Disarm the alarm from the keypad
  3. Arm the alarm from the app <- at this point, the app should just get stuck in the "Pending Home" state

Should the status in the app update if the alarm is armed/disarmed from the keypad? I have the polling interval set to 1 minute, but never see the status change in the app.

@stale stale bot added the wontfix This will not be worked on label Jul 18, 2020
Repository owner deleted a comment from stale bot Jul 19, 2020
@stale stale bot removed the wontfix This will not be worked on label Jul 19, 2020
@asishrs asishrs added the bug Something isn't working label Jul 19, 2020
@esquimols6
Copy link

any update on this bug? I also have trouble getting live status of my devices on smartthings.

@asishrs
Copy link
Owner

asishrs commented Apr 3, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants