Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Then If not working properly #60

Open
amegn1000 opened this issue Nov 19, 2016 · 1 comment
Open

Then If not working properly #60

amegn1000 opened this issue Nov 19, 2016 · 1 comment

Comments

@amegn1000
Copy link

From what I understand the "Then If" works this way:

When something happens, wait for another thing to happend to execute an action.
The action can only be executed if a trigger happens and is followed by an other trigger.

In my piston I have:

IF
Movement changes to inactive in 1 sensor
THEN IF
Movement changes to active in one of 5 sensors
THEN
Turn off light

This scenario does not work for me.
Could you explain if I am doing something wrong?

Thank you, Arno.

@scotte
Copy link

scotte commented Dec 30, 2016

I've seen some cases where my piston conditions don't fire as expected, but I'm not sure it's the same thing as your report (and I'm new to all of this, so I assume I'm doing something wrong). I don't really want to pile onto your issue here with an unrelated thing, but just in case it is related - I'll describe my issue, with apologies in advance, though I'm pretty sure I've seen the same thing when using "changes to" states, similar to your logic.

It might help to include a screenshot of your piston from the CoRE dashboard, just to be pedantic about what your exact logic is. In my case, I'm using an Else-If piston and if I use "is inactive" event, my ELSE action occurs, but if I use "was inactive for at least X minutes", my ELSE action does not fire. In the CoRE piston editor, the conditions show that they are being evaluated correctly (show as true or false correctly for the condition).

Here's what the pistons look like.

Working ("is inactive"):
screenshot 1

Not working ("was inactive for at least X minutes"):
screenshot 2

Again, I sincerely apologize for muddying up your issue if mine is in fact different (in which case I'll delete this comment). And, in case anyone wonders, with the light I'm using, setting level to 0 then turning on causes it to do a slow fade to 100%.

Also, I should note that using a latching piston with logic like https://community.smartthings.com/t/core-get-peer-assistance-here-with-setting-up-pistons/50187/427 works just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants