Presence to change shm mode and arm disarm cameras


#1

Where do i start with this … i have done a couple of very basic pistons but this problem has me stumped .
i need my 2 presence sensors to disarm shm or arm it and also arm and disarm arlo cameras .
how do i get it to work if one sensor is away but one is home so i dont want it armed , i only want it armed if both are away .
i have read a few or the posts on here and to be honest it might as well be in martian or am i just thick.
any help greatly recieved

ta


#2

just start with SHM then add cameras later once you get that working. heres a starter:

if presence sensor 1 is away
   and
   presence sensor 2 is away
   with location
      set SHM to armed/away
   end with
else
   with location
      set SHM to off
   end with
end if

we have all felt that way in the beginning :slight_smile:


#3

Cheers ,i’ll give it a go

edit . now how the frig do i add cameras?


#4

is this what you are asking about?


#5

Yes … i have them connected via ST but SHM is quite unreliable at arming and disarming in relation to my presence sensors , half the time i have to disarm them manually via the app . It is a ST issue because my presence always states correctly in the app but ST doesn’t inform SHM correctly , so i’m looking at doing a WebCore piston to take over .

Basically i want SHM and cameras to be armed when we are away ( can do this bit without cameras) and disarmed when at least one of us has arrived home (this, either or bit confuses me in webcore ) At the moment i am ok with “if” and “then”, it’s all the other stuff , “variables” etc that stump me .

Ta


#6

ahh, got it now.

keep at it, look at examples others are posting and you will be there in no time. :slight_smile:

if you get seriously stuck we are here.


#7

will this do it ??


#8

yep. just drag the with block at line 25 to outside the if block at line 23. THEN delete THAT if.

when you are done, whats under the if should look SIMILAR to whats under the else.


#9

While not what you are trying to do, I have found that connecting Arlos to ST is ok… but Ive seen their names get all wonky time to time

This is the first piston I did when I installed WebCore … wanted a light to come on with motion detection on the arlos at night … I’m sure this could be more elegant and do other bits :wink:

The ‘motion sensors’ are actually arlos outside my home and the dimmer2 is a front porch light via caseta

EDIT - it does produce some nice videos of deer eating my front lawn LOL