[Deprecated as of Apr 8, 2018] Smart Home Monitor Exit and Entry Delays (Version1)

Forgive me I misread the message thought it was an entry delay, but it is an exit delay. Please go to the first message in this thread (release notice) and check that your Lock Manager keypad settings agree with the suggested setup. It seems like there is no exit delay. I prefer the Lock Manager delay to the one in this app. If you are not using Lock Manager then use the delay from this app.

I am using lock manager, and I do have the exit delay set to 0 because lock manager is set to 30 seconds. still getting the same error. grrrr, its getting late, ill see if I can look at this better when I’m more awake.

check to be sure the real front door sensor is not being monitored by Smart Home security.

the real front door isn’t monitored, all other doors and windows are monitored. Getting the error that the simulated door is open seconds before the countdown from the keypad

Execution timing in ST is notoriously innacurate due to the way the server functions and delays caused by the internet. However, that should not cause the issue you described.

If I understand this correctly: You set your keypad into an armed mode, then the alarm immediately triggers an intrusion state with the “SImulated Sensor” as the open triggering sensor. BTW what armed state are you setting and are the exit tones sounding on the keypad?

Not sure how this could occur because SH when armed will send a message after one minute about any open contact sensors rather than immediately trigger and alarm. My app takes over this function for the replaced real sensors.

Prior to the next attempt, go to the phone app’s “My Home” device list, are any sensors used by the app open?.if yes, get them to a closed state. If the simulated sensor is open, tap it closed. Retry.

If it continues to fail:
Are there any other active Keypad routines or WebCore/Core pistons (besides Lock Manager and my app)? If true please remove or disable them and retry.

If that is false or the issue continues
Prior to making the next attempt go to the IDE Live Logging
Do what whatever you do to arm the system.
Send me a copy of the messages.
Note your keypad codes are unencrypted and show in the log, so if you have any concerns xxxx out the code numbers

ok, so I tried this again with eliminating every contact sensor except the simulated one, and its still giving me an intrusion. I forgot to do logs, but this isn’t making sense

Does your system arm normally if this app is removed and Smarthome’s security sensors set to previous settings?

If yes continue on with the folliowing:

  1. In SmartHome’s Security:
    Sensors When home is unoccupied and When home is occupied
    Use every open/close sensor: off/false
    Open/Closed Sensors:
    Set then select contact sensors including simulated sensor used by SHM Delay app; excluding any Sensors monitored by the SHM Delay App and be sure to exclude all keypads that show up as a sensor
    Motion sensors: select for unoccupied mode, Set none in occupied mode

  2. This app’s code was recently updated, verify you are running with the latest versions of both modules. Set and verify global settings on the parent app, then verify all Profiles and settings

  3. Arm the system in Away mode: Should get exit tone beeping when set, and entry tone beeps after system arms, then door is opened.

  4. Arm the system in Stay Mode: Should give immediate arming, entry tone beeps when door opens

  5. Night mode icon should work similarly to Stay icon mode. SmartHome has 2 armed modes, the Xfinity system has 3 armed modes. Due to this the “Stay” icon will light when “Night” icon is used for arming. This is a side effect of using the keypad in SmartThings. In the Xfinity system, Night gives an immediate intrusion alert, Stay give an entry delay, but otherwise are identical. My app currently issues an entry delay in stay/night mode, however I’m almost done with an option that allows a one time choice to run with or without a delay in Stay/Night mode.

Should you continue encountering issues, please send me a private messsage including: telephone number, time zone, and some good times to call.

.

I believe I have it all updated and running smoothly now! thank you kindly for your patience! keep up the good work!

Will you be supporting motion sensor delays as well?

No plans to delay motion sensors.

I’m on step 5 of the Quick Setup Guide. I have a real contact sensor which is on my garage door. I have a simulated contact sensor called AlarmDelaySensor. I have removed the Garage Door sensor from SHM. In SHM Delay Child I’m getting an error: The ‘Real Contact Sensor’ is simulated. Please select a different real contact sensor or tap ‘Remove’

The Real Contact Sensor is set to the garage door which IS a real contact sensor. Any suggestions?

Please go to the IDE devices and click on the device creating the error and send me screen shots for the device. Also please include the manufacturer and if it is wired or battery operated . After reviewing the information I’ll do what I can to create some code to allow the device.

Should you want to check it out
If Type contains the word ‘Simulated’ (case insensitive)
or
Data Manufacturer is null and Model Name is null and Battery state is null
either condition assumes the device is simulated

It is a wired sensor, hooked to smartthings through the Konnected Device Handler

Please update module SHM Delay Child via the repo or copy from github and let me know. Made a minor change to accept “Konnect” type devices as real, but am unable to fully test it from my location.

Thanks for the update. That got me part of the way there, but not all the way. It appears that neither of my sirens support the ‘beep’ command. Here is a screen shot of the SmartThings Log.

For now I suggest removing the failing sirens from any profile(s)

The Profile edit will be adjusted to reject sirens that don’t support the command.

Still not working. I removed the Beep functionality from all sirens. I armed the system in SHM. Then opened the basement door which is tied to the AlarmDelaySensor and nothing happened. I didn’t get a push notification or a text and the alarm didn’t go off after 30 seconds.

The log varies from what was stated, perhaps it was truncated. From what I can see from the log

  1. The system was armed ( I can’t determine the mode, likely away?), but a door was open(ed)
  2. the Open Door monitor was started, but terminated in 7 seconds when the door was closed

App appears to be operating normally. Wait for the exitDelay (if any) in the Basement Door profile to expire, then try opening the door.

Recheck Smarthome security
In Both: Sensors When home is unoccupied (away), and When home is occupied (stay/night)
Use every open/close sensor: off/false
Open/Closed Sensors: exclude Real Sensors monitored by this app, include Simulated contact sensor used by this app; include other real contact sensors not monitored by this app,

Ahh crap. I forgot about the exit delay. I bet that’s my problem. I’ll test that again this evening. Thanks!

New SHM Delay version and Options – Released on Sep 5, 2017

Please go to first page of this thread for the latest documentation

Keypad module replacement

This is a forked version of E Thayer’s Lock Manager Keypad module. I urge everyone with keypads (not locks) running with Lock Manager to install the upgraded module, however there is a prerequisite, so please read the documentation that follows. Source code is at repo arnbme lock-manager SHMDelay or directly at https://github.com/arnbme/lock-manager/tree/SHMDelay/smartapps/ethayer

The changes are:

Modification: Comment out sendSHMEvent. Kills setting default AlarmState before running user routines that also set the AlarmState and Mode. One of those AlarmStates is ‘Night’ which is not recognized by ST and my code.

Modification: When AlarmState is ‘Stay’ and Mode is ‘Night’ turns on the Keypad ‘Sleep/Night’ icon, otherwise lights the ‘Stay/Standing Man’ icon

Modification: Issue ExitDelay only in AlarmState: Away. Original issues exitDelay when night icon is used

Prerequisite: Prior to installing this version in Lock Manager you must define SHM Routines by going to

  1. Automation->SmartApps->Lock Manager

  2. Scroll down to Keypad Routines. These routines run for all defined keypads and users when a keypad AlarmState and valid pincode is entered, setting the SHM AlarmState.
    Arm/Away : Goodbye
    Disarm: I’m Back
    Arm/Stay: Good Night
    Arm/Night: Good Night

  3. Review all Keypad and User profiles: Remove redundant routines defined in KeyPad Routines to substantially reduce system overhead and improve reliability.

  4. Should you decide to use the “Way Beyond The Basics” we will revisit the Arm/Stay setting

  5. Note: when using custom routines for Keypads or Users, and you choose not to set default global Keypad Routines, insure a routine that sets both Alarm State and Mode executes for each of the four keypad modes.

To install with the SmartThings IDE go to SmartApps:

  1. Click '‘Settings’ → Add new repository → enter: arnbme lock-manager SHMDelay->Save
  2. Click the edit icon to the left of the Keypad module name
  3. Click ‘Source Code Options’ change to lock-manager (SHMDelay)->click Update on bottom of page
  4. Click ‘Update From Repo’ → select lock-manager (SHMDelay)
  5. Select ‘Keypad’->leave ‘publish’ unchecked-> click ‘Execute Update’
  6. When 4 and 5 fail to update, click the magnifying glass icon :lollipop:, the source for the updated module and the current version display, then click ‘Overwrite local version’, then click ‘Save’ completing the install.
  7. In Global Application Settings set ‘upgraded Keypad module is installed’ to On/True

True Night Mode Option

This option when On causes an immediate intrusion in AlarmState: Stay. When Off (default) the profile entry delay time is used. (A keypad is not required for this option)

Additionally, when using the Keypad module replacement with keypad, in Night mode the app lights the ‘Night’ icon on with Xfinity and Centralite keypads. When arming with True Night Mode, the ‘Stay’ icon may light for a few seconds, then it shuts off and the “Night’ icon lights. Iris keypads have a single a ‘Partial’ button and I don’t have one available for light testing, however the Night no entrydelay should work.

Mode Fix Option

Sets the SmartHome Mode when setting the AlarmState from the SmartThings Dashboard Home Solutions or anything that does not properly set the Mode. It’s needed for “Way beyond the basics”, but you may find it useful on its own.

Activation requires two steps:

  1. In Global Application Settings set the Fix Mode option on/true
  2. Create A ModeFix Profile (default profile initially shows in the child app)

Have you ever wondered why Mode restricted Routines, SmartApps, and Pistons sometimes fail to execute, or execute when they should not? I gave up trying to use mode for Core Pistons, now I know why it did not work.

Perhaps like me you conflated AlarmState and Mode, however they are separate and independent SmartThings settings. When Alarm State is changed using the SmartThings Dashboard Home Solutions—surprise, Mode does not change!

SmartHome routines generally, but not always, have a defined SystemAlarm and Mode setting. Experienced SmartThings users seem to favor changing the AlarmState using SmartHome routines, avoiding use of the Dashboard’s Home Solutions.

If like me, you can’t keep track of all this, or use the Dashboard for changing the AlarmState, the Mode Fix option may be helpful. For each AlarmState, set the Valid Mode states, and a Default Mode. Mode Fix attempts to correctly set the Mode by monitoring AlarmState for changes. When the current Mode is not defined as a Valid Mode for the new AlarmState, the app sets Mode to the respective state’s Default Mode.

Please Note: This option does not, directly or (knowingly) indirectly, execute a SmartHome Routine

Way beyond the basics

For Xfinity and Centralite Keypads – now you can have fully functional Stay and Night icons and modes. (Not for use with Iris Keypads)

  1. Install my version of E Thayer’s Lock Manager Keypad routine, then in Global Application Settings set the Upgraded Keypad flag to On/True the (see above)
  2. Turn on True Night Mode in Global Application Settings
  3. Implement Mode Fix if there is the slightest chance you will set the AlarmState with the SmartThings - Dashboard Home or something that does not set Mode.
  4. In the IDE, My Locations, click the location, then create a new Mode “Stay”
  5. Then in the phone app “Routines”, create a new routine named: Stay (or whatever you want). Set AlarmState to Stay, and Mode to Stay. Add other settings as desired
  6. In the Lock Manager, scroll to Keypad Routines (Optional), set the newly created Stay routine name for Armed/Home. This is required, the field is named ‘Optional’
  7. Update the SHMDelay Mode Fix profile Stay options to include ‘Stay’ as a valid mode along with Night.
  8. Now when setting the alarm state from the keypad, the Stay or Night icon is immediately lit. Stay uses an EntryDelay, Night creates an immediate intrusion.
2 Likes