Unexpected issue when I returned home late 😲

Hubitat%20Capture

Basically the objective of the above routine is to turn on a security switch at night and turn it off again in the morning unless both occupants are away. In which case; keep it on until at least one occupant returns While basically working, I was aware of the issue that the routine would turn off my switch at 08:00 if both Person 1 and Person 2 were away for more than a day. I had a few goes at trying to sort this, but so far I have not been able to achieve it.

However, another situation also arose that I hadn't thought about. If either person is away at any stage and returns after 22:00 then the system, which has been turned on at 22:00, now gets turned off. This element brings a degree of urgency into the situation now and I really would like to get it sorted.

If some kind person could point me in the direction of a fix that that would cover for both issues I would really appreciate the help.

This could probably be done by using a private boolean or variables but I think it would be easier if you used modes instead. Do you have mode manager setup? You could set a Night mode at 22:00 and Day mode at 8:00. Away mode would be set when both people left. You could then use the mode along with presence to determine the state of your security system.

Your triggers would then be Mode changed and presence changed.

For example:

  1. If both people are present and mode is not Night then disable security system.

  2. If mode is Day and all present disable security system

  3. If mode is Away or mode is Night enable security system.

I hope this makes sense.

Are you using Hubitat Safety Monitor. You can set HSM by mode as well.

1 Like

Don't you need to turn off the security system so the arriving person can enter the house?

Yes, both of these are in the App List but I haven't used either of them. I'll do a bit of work basedo your suggestion and see how I go. Thanks for the help.

Unfortunately at this stage, the house security system is not compatible with Hubitat. I am working with an independent camera and contact system that I control by Z-Wave switch and Life360.

Sorry if I'm missing something here but if someone comes home between 22:00 and 8:00, don't you still need to turn off the security system so they can enter the house? Then couldn't you use the Z-Wave switch to turn it back on? Even if using modes, I think you'd still need to address this situation.

Apologies for not explaining the detail a bit better.

There is a conventional house alarm that can be used by a smartphone app, but there are no internal/external cameras associated with this alarm. My routine is intended to run outside cameras through a DVR.

I have also added some additional internal sensors to my own system and of course to the routine. One of the reasons is that occasionally some of the family members do turn up when we might be off or even away for few days, and of course the alarm gets turned off. When this happens I like the comfort of being made aware that there is someone in the house.

As you suggest, it is of course possible to switch the system back on again, and that is exactly what I do when the situation arises. I would just like to get it working properly. I felt it should have been within my capability and I didn't expect to have had the issues that have arisen.

Haven't fully thought this through to check every permutation, but if I were to be putting this together then i would use the 'between times' function rather than a specific time. I'd do something like:

IF system is off AND time is between 2200 & 0800 THEN turn on

ELSE IF system is off AND nobody is present THEN turn on

ELSE IF system is on AND time is between 0800 & 2200 AND somebody present THEN turn off

ENDIF

Cheers.

1 Like