CoRE - Get peer assistance here with setting up Pistons

So, I understand that using ‘color’ sets it own parameters, and that using hue, saturation and level is basically the manual way to do this…does anyone have any experience, better or worse, with one method or the other?

I’m using gen 1 bulbs and hub, and a few gen 2 bulbs. Does any of this matter as far as you know?

I don’t think it matters at all. I’m using gen one and two bulbs on a gen one hue hub.

Hmmm…I, just not getting where I’m coming up short with this.

Have you tried setting it up like I posted above? I know that works. Get it working and then make changes to get it exactly as you want it.

It’s much less frustrating and it’s great for learning.

True. I’ll give it a shot when I get home…

@bamarayne So here is what seems to have worked.

Ask Alexa to Turn on Virtual Switch (Dinner Ready) using a Macro. This then runs a piston to turn up light, change colours, and then turn off dinner is ready switch and puts the light back to its original state.

2 Likes

Hello All,

I am new to ST and did install CoRE. I think everything went well but when I try to initialize variable in the settings or even try to set a date while creating a piston it gves me a bank screen and sends me back to the if screen and when I try to go back it says I don’t have access. The same thing happens when I try to declare the variables. Is there maybe a walk through setting this up, I possible may have missed something. Any help would be great!

Are you accesing CoRE from ‘my apps’ in marketplace or Smartapps under the right menu? First time you install from my apps, click done, then go to Smartapps from the right menu…

I am accessing it from the Marketplace and then SmartApps and "My Apps"
Does it make a difference? I tried using the right menu where it says your hub is online and click on SmartApps but it did the same.

I will try to reinstall and go there first and try.

no same thing happens. nothing even shows up to be able to enter a date. I know it is am Oath app do i need to do anything to authorize it?

I am having some difficulty setting up a piston. All I am trying to do is turn on a couple of lights when the luminescence is under a set value and there is motion on any of two motion detectors. The piston seems to fire correctly, changing to a true state but the command to turn on the bulbs doesn’t work.

I have already deleted and tried re-entering it again but I am having no luck. Am I missing something?

Try with “Turn on”. Adjust level may not necessarily turn the bulb on, depending on the DTH. I think most DTHs won’t turn the bulb on with a setLevel

Also, using both trace and debug may result in dropped logs. ST does that with too many logs

1 Like

Your suggestions seemed to work. I had tried the “turn on” before changing it to “adjust level” and it didn’t work. I think main culprit was having all the debug and trace options going. Thanks again.

When running actions do they not run in order of one in one 1st action, then the next, then the next etc? do they all run at the same time?\

They are technically ran in order. No two tasks can technically be executed concurrently, due to the entire design. Tasks preceeded by waits get postponed/scheduled by the desired amount of time. If you have several actions, their timeline starts at the same moment in time. A wait task in one action won’t affect any other actions.

So for example this doesn’t seem to be running in order, one after the other. Seems the restore from global gets actioned before the rest of it.

2 seconds is an awful short wait for ST and you may find it not to work too well. Also, the flashing takes cca 18 seconds, but 2 seconds into it you are restoring the state. The flash is async, meaning it does not delay the rest of tasks following it. Use 20s for the last wait?

1 Like

I changed it to “follow up with piston” but that will not work because it is testing the condition.

Since the condition is looking for shower door changes to closed the condition is no longer true, hence the light color will not randomly change.

So here is the question, how do I make the light randomly change colors every minute or so until such time as the condition changes?

Away Mode with a twist.

So I have a babysitter and what I wanted to do was create an away mode that would permit my wife and I to leave the house, but NOT turn on away mode when there is motion still happening within the house for the five minute period after we leave the house.

I finally got to test this and I am way off… can someone help me better define the conditions?

This is what I do in my master bath. My wife likes all of the bath lights to be on super bright and nothing changes from that while she is in there. I on the other hand, can’t stand bright lights.

So, the possible was how to get her time different than mine without conflicting logic or having to change the whole house mode.

My solution:

  • I noticed that when she is in the room she ALWAYS had a certain cabinet door open.
  • I put a contact sensor on that door. When it is open it acts as an override switch for all other automations in that room. ALL automations are disabled and the lights are set to her liking. When she is done, she closes the door, and the automations are reactivated.

Is there a switch, outlet, door, or anything that could be used as a condition for your piston?

While not the most ideal way, it does give you control over the automaton.

Does the bathroom door remain open? Is it only closed while you’re in there?

What about a motion sensor in the shower? I have one in mine. Then it could be shower door is closed and motion is active.