Multiple push notifications on Pistons


#1

1) Give a description of the problem
Certification is happening in multiples sometimes too sometimes 5 times within a given condition

2) What is the expected behavior?
Only one push notification when a condition is met

3) What is happening/not happening?
Too many notifications

**4) Post a Green Snapshot of the piston!


#2

Without a log posted, this is just a guess:

Looks to me like your first and last IF statements that use the Devices variable are triggering true if only one is present.

You only have 2 presence sensors, I’d just modify the IF statement to use the individually like you do in your middle two IF statement.

Guess #2:

You are subscribed to your Time conditions? Why? That’s going to make them execute at sunrise and sunset, generating additional messages.


#3

Would i post the logs from the IDE live logging or from webcore?


#4

I’ve always found it easier to grab the logs from webCoRE. Just make sure you set the logging level to FULL first. Otherwise there won’t be enough detail to figure it out.


#5

Can you ELI5 on this statement?


#6

Certainly! I assume that meant elaborate and your phone “helped” you like mine often does, lol.

When viewing your piston you can see lighting bolts next to things your piston subscribes to (not in the edit screen - you have to save it to see them):
image

When your piston subscribes to something, changes to it cause your piston to run. In your example, the condition is “time is between sunrise and sunset”. That changes twice per day… once at Sunrise when it becomes true, and once at Sunset when it becomes false.

It’s similar for your presence sensor above. Since that is subscribed too, your piston will automatically run whenever your presence sensor’s presence changes. Doesn’t matter if it changes to present or not present… the change in value triggers the piston to run.

Once you know that’s how the piston behaves, you can make judgment calls on whether you want things subscribed so it triggers your piston to run, or merely evaluated as a condition when the piston is triggered by something else.

To edit subscriptions, you can click on the individual statement, the the gear to to expand the settings, and choose from the following:

Or to save a click or two, when you click on the statement you can also edit it in the upper-right hand corner of your web browser. I’m not sure this is visible on a mobile device:
image


#7

Actually ELI5 is a reddit subreddit (very popular) it stands for Explain it like i’m 5. Its for when you are trying to understand a topic you cant grasp on your own :slight_smile:


#8

Dammit, now I feel like I’m 5-0 for not know that!

If my response still left it unclear, let me know and I’ll try to explain more.