[RESOLVED] Notification not occurring properly

notification

#1

1) Give a description of the problem
The piston is firing every day at 5 even though there is a restriction if the day of week is Monday

2) What is the expected behaviour?
On Monday at 5 PM sent notification to take out trash.

3) What is happening/not happening?
Sending notification every day

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
6/23/2019, 4:59:59 PM +133ms
+0ms ╔Received event [Mojo Manor].time = 1561327200000 with a delay of -868ms
+177ms ║RunTime Analysis CS > 34ms > PS > 114ms > PE > 29ms > CE
+181ms ║Runtime (38790 bytes) successfully initialized in 114ms (v0.3.10c.20190522) (178ms)
+183ms ║╔Execution stage started
+205ms ║║Cancelling statement #8’s schedules…
+242ms ║║Executed virtual command [Echo - Eric’s TV].sendSMSNotification (24ms)
+284ms ║║Executed physical command [Echo - Eric’s TV].speak([Eric, please take out the trash.]) (35ms)
+285ms ║║Executed [Echo - Eric’s TV].speak (38ms)
+290ms ║╚Execution stage complete. (107ms)
+292ms ║Setting up scheduled job for Mon, Jun 24 2019 @ 5:00:00 PM CDT (in 86400.576s)
+300ms ╚Event processed successfully (300ms)
6/22/2019, 4:59:59 PM +105ms
+1ms ╔Received event [Mojo Manor].time = 1561240800000 with a delay of -895ms
+166ms ║RunTime Analysis CS > 29ms > PS > 111ms > PE > 25ms > CE
+168ms ║Runtime (38790 bytes) successfully initialized in 111ms (v0.3.10c.20190522) (167ms)
+169ms ║╔Execution stage started
+188ms ║║Cancelling statement #8’s schedules…
+262ms ║║Executed virtual command [Echo - Eric’s TV].sendSMSNotification (62ms)
+367ms ║║Executed physical command [Echo - Eric’s TV].speak([Eric, please take out the trash.]) (99ms)
+368ms ║║Executed [Echo - Eric’s TV].speak (103ms)
+372ms ║╚Execution stage complete. (203ms)
+374ms ║Setting up scheduled job for Sun, Jun 23 2019 @ 5:00:00 PM CDT (in 86400.522s)
+383ms ╚Event processed successfully (383ms)


#2

Why don’t you just use a regular timer?

Every MONDAY at 5.30pm 
Do this do that..

#3

I agree with Ike… That is my preferred method as well…


If you really want to use the system variable, you can add it as a condition:

Every day at 5PM
do
    IF {$dayOfWeek} is equal to 1
    Then
        Send SMS notification
    END IF
END EVERY

This alternative version will still run once a day, but it will abort a moment later on all days except for Monday. (only sending one SMS per week)


#4

Im trying to find a way to do the example

Every Monday at 5:30.


#5

Try what @WCmore suggested if you want the variable,
or without it:

Every Monday at 5:30
Send SMS “Take the trash out”

once this is done yoou can even go further, your piston bugs you every 30 minutes UNTIL the trash is out:))) (mine does:))))) until my wife comes and says, “enough with the sounds and warnings and messages” take the trash out already:)))))


#6
  • Add a new statement
  • Add a Timer
    temp
  • Add a statement
  • Add an action
  • Add a task
    temp
  • Add
  • Save

It ends up looking like this:

temp


#7

Thanks, I was doing every day but only Mondays and it looked odd.


#8

How are you resetting the reminder for the trash…


#9

I click on the SMS link. It executes another piston…
Here is the example of the method:


#10

That method works well if you want it triggering more than one day a week.