CoRE - Get peer assistance here with setting up Pistons

Is the light status showing as on in the smarthings app?

It is showing correctly in the app. On when on, etc.

It should work as is, but try this

  1. Separate out the lights in the evaluation
  2. On your rebuild, you have an unnecessary extra level there on the evaluation. Look at it compared to the original.

Delete and rebuild.

That being said, I have a piston right now that has worked since I built it not firing, so something maybe going on - that doesn’t explain why your’s fires when it shouldn’t and mind doesn’t fire when it should, however.

Anyone having problems with play track commands?

Thanks, I’ll give that a try later. Heading out for the day. :slight_smile:

@ady624

Did something happen with playtrack commands?

Not assuming, but a data point here, these were working the other day when I was still on v0.1.114, now I am on .131…

ST changed all those commands under two new capabilities: Audio Notification and Tracking Music Player

They now have a volume parameter as well, check with the DTH author please.

More here: [RELEASE] Aeon Labs Multifunction Siren

I let the piston run last night as below. The lights came on as expected. I also opened one of the doors while the light was on to make sure it didn’t turn the kitchen sink light off after 20 minutes - that worked as expected.

10:30pm
The TV was on at 10:30, so the kitchen sink light stayed on as expected.
At 10:30 the china cabinet light turned off as expected, but turned right back on.
The buffet did not turn off at 10:30 as it should have.

2:16am (daughter was up late!)
TV is turned off at 2:16am.
2:36am kitchen sink light turns off as expected.
China cabinet and buffett lights stay on - they should have been turned off at 10:30

Any ideas? The logic looks correct to me.
Also, :slight_smile: in the last group where one of the two door sensors will turn on the kitchen sink light, how do I a third device? I want either one of the two doors or a motion sensor to turn the light on, per the logic in that group.

Thanks. I’m guessing that the “between” and “around” times are meant more to be limiting conditions when you only want the piston to run during a certain time window if and only if some other condition is also true.

 IF
      Jim is PRESENT
      AND
      Time is Around 9:00pm +/- 1 hour
 THEN
      Using "TV Switch"
           Turn On

So, if I come home before 8:00, the TV will turn on at 8:00 because I’m already there; if I come home between 8 and 10, the TV will turn on when I get home; if I come home after 10:00, the TV doesn’t turn on because even though I’m home it’s outside the time window.

That’s how I mostly use it as a condition to other events. Regarding your random time -/+15 sunset, you can try this:

IF
  Trigger happens at 15 minutes before sunset, every day

THEN
  Using YourSwitch
  Wait 1-30 minutes
  Turn On
  Wait for custom time
  Turn Off

Trouble with Triggers

I have 2 similar pistons that I use to control lighting scenes. When I added 2 additional conditions / triggers to the second piston, it stopped working. I know that you shouldn’t have 2 triggers firing the same action, but shouldn’t having the triggers separated by “Or” work? I used to have the Garage Stairs switch trigger in a separate Piston and that worked.

Please help me with this piston. It does not fire. It will show that the blumesky is true but does not trigger when presence changes from away. I have tried it with changes to present and that does not work either. the presence does change as my Im Back routine does run

It I’d possible the lights were being turned in because of the “set color to gold”

Last time it ran, lux was over 250, as per the red color of the second condition…

Here’s what I ended up coding - it seems more complicated than should be necessary, but maybe that’s crossing over into “enhancement requests”:

 IF
      Trigger happens 15 minutes before sunset every day
 THEN
      Using Front Porch
           Turn on
           Set number variable {lclOffTimeInMinutes} = (23*60) + 0
           Set number variable {lclDelayInMinutes} = {lclOffTimeInMinutes} - ($hour24*60) - $minute
           Wait {lclDelayInMinutes} minutes
           Turn off

The (23*60)+0 represents what time I want to shut the light off - namely 23:00 - I coded it that way just as a way of showing the hour and minute components. So 8:15pm would be (20*60)+15.And if you wanted to run past midnight, you just add 24 to the hours - 03:27 tomorrow would be (27*60)+27.

Then, the time to wait is simply the shutoff time, minus the number of minutes already elapsed today. I could add a random wait in there if I wanted to vary it by a few minutes.

correct that is because I came home today and it wasnt dark out. But I have had this rule in place for a week and it hasnt worked yet. I just dont know what I am doing wrong

Wait for custom time does not work yet. Started working on it but then something came up that needed a publish… Will let you know when it is fully done

I finally had some time to play with this, where do I exactly change this?

I do not believe that option “wait for a custom time” is operational yet. Adrian posted a note about it about a week ago.

Those two lights are staying on because of the initial IF block.
You could try changing it to between sunset and 10:30 pm. Then they should turn off at 10:30