Subscription problem to IF (Condition/Trigger & Condition/Trigger)


#1

I’m not sure if what i’m trying to do is possible but I need where the arrow is to be subscribed to. I know IF’s work top to bottom but there should be a way.

I need the IF to be able to work inversely but it is not subscribing to the contact sensor. I have tried setting it to subscribe to always but once the IF fires, the statement locks on and never ends/quits.

The reason why I need it to work inversely is:
If location is away or secuirty is on and the roller door (contact) opens - Alert.
OR
If the roller door (contact) is open and location mode changes to away or security changes to on - Alert.

I’m not sure if I can do this in a single IF, I may need to seperate it into 2. But since i’m still learning the complicated way this program works, I thought I would ask the experts.


#2

Why not create a custom alert in smart home monitor in the classic app?


#3

@ShaunTheBaa
Disclaimer; I am not the expert you need in this case :slight_smile:

What i am about to say might be the exact opposite of what you are trying to achieve:) LOL
But try Trigger/condition

OR

If you must do it this way,
how about using a trigger but trigger changes a variable which can be in your IF loop as a condition???

IF conact sensor 1 changes to OPEN
set variable {test} = True

IF
trigger does this
or
trigger does this
or
trigger does this
AND
variable IS TRUE

Does that make sense?


#4

I don’t think I know what you mean?


#5

Yeah I see what you mean, that could work. I know variables are quite delayed in webcore but i’ll have a look at how long it would take for the security alert to actuate, thanks.


#6

You are so welcome. I am glad it made sense:))))


#7

#8

Just to clarify…
Local variables are written in about 10 milliseconds… (nearly instantly)
Global variables get written when all the code has executed.


#9

wow okay I didn’t realize that. I’m gonna note that for future reference. Thanks