[OBSOLETE] Smart Alarm is here

As of midday I think I have smart alarm working. Here is what I did. I uninstalled the application from smartthings app. I then went into ide and deleted the smart alarm application all together. Logged out of ide, logged out of the app. Logged back into ide repulled the code from github and setup the smart app. Then logged back into smartthings app and added the alarm back to my setup. So far everything is working and I a can arm and disarm from rest endpoints and it is picking up the requests. I don’t know if it is what I did, or if it is something that smarttthings fixed in the back ground. I am still seeing a groovy error for IFTTT, but that is a seperate issue from smart alarm. @Ben any insight if anything was done on your side of the fence?

Thanks @jjhtpc I will try that and see if if it works for me.

I still see org.hibernate.ObjectDeletedException errors, although I have not tried re-installing the app. Can you confirm that you can disarm Smart Alarm?

@geko same here after the re-install and deletion and republishing @jjhtpc steps did not work for me

323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:39 PM AST: error org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [physicalgraph.app.EventSubscription#7f28e2ae-5324-422f-ad20-fe9f0781b1fc] @ line 722
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:39 PM AST: trace Smart Alarm is attempting to unsubscribe from Backdoor Laundry
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:39 PM AST: trace Smart Alarm is attempting to unsubscribe from Office Window
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:38 PM AST: trace Deleting all scheduled jobs for InstalledSmartApp: 323d7dff-d033-479a-904a-11ee2e01cb2e
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:38 PM AST: error org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [physicalgraph.app.EventSubscription#7f28e2ae-5324-422f-ad20-fe9f0781b1fc] @ line 722
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:38 PM AST: trace Smart Alarm is attempting to unsubscribe from Backdoor Laundry
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:38 PM AST: trace Smart Alarm is attempting to unsubscribe from Office Window
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:37 PM AST: trace Deleting all scheduled jobs for InstalledSmartApp: 323d7dff-d033-479a-904a-11ee2e01cb2e
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:37 PM AST: error org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [physicalgraph.app.EventSubscription#7f28e2ae-5324-422f-ad20-fe9f0781b1fc] @ line 722
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:37 PM AST: trace Smart Alarm is attempting to unsubscribe from Backdoor Laundry
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:37 PM AST: trace Smart Alarm is attempting to unsubscribe from Office Window
323d7dff-d033-479a-904a-11ee2e01cb2e 3:41:36 PM AST: trace Deleting all scheduled jobs for InstalledSmartApp: 323d7dff-d033-479a-904a-11ee2e01cb2e

Yes, this error must be separate from SmartAlarm. I noticed this error in my log today and I do not have SmartAlarm YET.

If ST does not come up with a fix, I’ll try to find a work around for this bug, hopefully this weekend. Bummer…

@geko
I missed the developers call last night (waiting on the youtube video now), was there a time frame mentioned for SmartAlarm to be released officially???

gs
87619ab3-b859-4991-b583-98f53a6c807d 3:50:00 PM: error groovyx.net.http.ResponseParseException: OK @ line 180
a4273403-8897-4b77-b483-bea603f46785 3:50:00 PM: trace Smart Alarm disarmed
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: trace [notify] Smart Alarm disarmed.
Front Door: disarmed
Garage: disarmed
Back Door: disarmed
Zone 4: bypass
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug panelStatus()
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug zoneReset(3)
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug Zone ‘Back Door’ disarmed
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: trace Smart Alarm is attempting to unsubscribe from Back Door Sensor
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug zoneReset(2)
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug Zone ‘Garage’ disarmed
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: trace Smart Alarm is attempting to unsubscribe from Garage Interior Door
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: trace Smart Alarm is attempting to unsubscribe from Garage Door Exterior
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug zoneReset(1)
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug Zone ‘Front Door’ disarmed
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: trace Smart Alarm is attempting to unsubscribe from Front Door Sensor
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug zoneReset(0)
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: trace Deleting all scheduled jobs for InstalledSmartApp: a4273403-8897-4b77-b483-bea603f46785
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug resetPanel()
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug disarm()
a4273403-8897-4b77-b483-bea603f46785 3:49:59 PM: debug onLocation(Home)
860e1c06-e223-46e9-a0eb-33bcc850e890 3:49:59 PM: debug Received on from Home Mode
860e1c06-e223-46e9-a0eb-33bcc850e890 3:50:00 PM: debug Received off from Home Mode
87619ab3-b859-4991-b583-98f53a6c807d 3:49:59 PM: error groovyx.net.http.ResponseParseException: OK @ line 180
9150f14c-f834-4eaa-9149-5a535de1e808 3:49:59 PM: debug update, request: params: [access_token:3327324a-115f-46bc-944d-226e2adfc162, appId:9150f14c-f834-4eaa-9149-5a535de1e808, param1:switches, param2:1533f358-4fbc-4e33-8cef-c268bc98c6a0, param3:on, action:[GET:executeSmartAppGet, POST:executeSmartAppPost, PUT:executeSmartAppPut, DELETE:executeSmartAppDelete, OPTIONS:executeSmartAppOptions], controller:smartAppApi, id:1533f358-4fbc-4e33-8cef-c268bc98c6a0, command:on], devices: [1533f358-4fbc-4e33-8cef-c268bc98c6a0, c2cd7d04-f699-4bcc-9e0e-03c3a5610149, cd4e6259-9a92-4ca1-882d-dba1ccffc922]

I don’t know how it started working, but now I’m not touching anything.

I’ve tried the Delete App, Delete Code, Copy Code, Install App… I’m still getting the “Error has Occured” problem. :frowning:

@jjhtpc no luck for me still having the same issue as showed in the video. Do hate that I have to go in to the app click disarm and then Done, if I do not click Done it will not disarm

1 Like

After getting home the alarm didn’t go off when I came in the door. I disarmed rearmed, and then the alarm would go off, but I could not get the alarm to move back to home. I’m getting the error again. Pooh, this is getting worrisome and still no response from Smartthings.

similar problem here.
Version 1.0.0 is not able to save configuration
Version 1.2.10 is throwing an error.

c1680711-4b15-4df0-a23c-b39be0f2a23a 7:58:00 PM MST: error org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [physicalgraph.app.EventSubscription#7fe53c33-0230-41e9-a6ca-557115ac9964] @ line 722
c1680711-4b15-4df0-a23c-b39be0f2a23a 7:58:00 PM MST: trace Smart Alarm 1.2.10 is attempting to unsubscribe from Office
c1680711-4b15-4df0-a23c-b39be0f2a23a 7:58:00 PM MST: trace Smart Alarm 1.2.10 is attempting to unsubscribe from Casal 1
c1680711-4b15-4df0-a23c-b39be0f2a23a 7:58:00 PM MST: trace Deleting all scheduled jobs for InstalledSmartApp: c1680

Beguinning to wonder if it is more of an app problem, 1.0.0 I got the SMS and push notification but could not save config, on 1.2.10 I do not get SMS or Push and it will not disarm while on 1.0 it did with no problem before I upgrade for troubleshooting.

Version 1.2.1 was working just fine until the backend update, there’s no question about it.

1 Like

@geko bet it was a change in the API or something. from what I see in the code it only happens when it tries to unsubscribe the events for the contact sensors.

yep I can confirm it only happens with the open/close switches, with motion it disarms with no problem.

Same thing is happening for me…specific to contact sensors, and definitely wasn’t happening before the upgrade…

A suggestion… would it be possible to change the code to not unsubscribe from the open/close?
Just ignore them if the zone they are is not armed.

Oddly enough, it appears you could actually skip ALL of the unsubscribes and Smart Alarm will still work - it will report False Alarms for contact.open events while “disarmed”, but you (apparently) won’t get alerted and things will continue to work properly (so far, any way).

I commented out line 722, only to get the same error on line 721, so I commented that one out as well…you may have to comment out all of the unsubscribes if you are using more than one of them.

Points (perhaps) more to a problem with unsubscribe as used here instead of contact sensors specifically.

Having the same issue here too … error org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): like mentioned by someone pressing “Disarm” and then “Done” disarms the function. So far I have turned the siren off only notifications