Morning breakfast lights- piston not firing


#1

1) Give a description of the problem
I must be overlooking something tiny- piston not firing. Using global variable for DATE to assure the piston only fires once per day.

2) What is the expected behavior?
Some lights go on, others off, Sonos makes an announcement

3) What is happening/not happening?

4) Post a Green Snapshot of the pistonimage
I don’t know how to upload pic to this forum but image is here (sorry! Pls tell me how to structure the upload command if the pic is on my Mac desktop)

5) Attach any logs (From ST IDE and by turning logging level to Full)
After it should have fired, I turned on Full Logging in webcore, but what do I need to do in IDE to find them?


#2

What is happening or not happening when this piston fires?


#3

The lights didn’t go on or off as they should have. I’m not certain if the Sonos would have played the message- I had it commented-out this morning.

I’m in the IDE> My Locations> Home> Events right now. I searched and it appears as though the motion sensor saw the motion and the commands were sent to the devices (lights) but they didn’t seem to physically go on or off.


#4

Do you have your variable set up like this?


#5

Looks like it should be fine. I guess it fired today because it has /* 10 */ in the code. But the lights def didn’t come on/off as they should have.

04 AM


#6

With your actions, try setting your task cancellation policy to "never cancel."
Does that help?


#7

Hmmm, where’s that setting?


#8

Click on “with” dimmer five and you’ll see a gear at the bottom on the right and that’s a drop-down box for task cancellation


#9

Thanks- I have no idea what that’ll do, but I did it to each ‘with’ statement (you can see it with the “N”)


#10

I don’t know if that’ll fix it either. But I’m trying to think of everything.


#11

Can you turn on logging (full) at the bottom of your screen where you edit the piston? You can turn on Trace, too. Then next time it fires you’ll be able to see what pieces of code are run and what the outcome of each “if” statement was to help understand why none of the “then” statements executed.


#12

@michicago, thanks… I turned on full logging. Where are the settings for trace?


#13

Glad to help! The trace option should be immediately below your piston… in the line of icons with Edit, snapshot tools, and copy to clipboard:


#14

LOL… thanks. How did I not see it?!