CoRE - Get peer assistance here with setting up Pistons

I’ve hooked up our hot water heater to Smartthings and would like to automate it using Core. (Ideally I would like to use something that runs locally but I don’t see anything powerful enough) I’d like to accomplish the following:

  1. Weekday Schedule (M-F 6:30am-7am)
  2. Weekend Schedule (S,S 8am-11pm)
  3. When not running on one of the schedule times I would like the tank to turn off automatically 1/2 hour after it has been turned on manually
  4. 20 minutes after being turned on either by a scheduled time or manually I would like the water circulator to run for 2 minutes to get hot water out to the kitchen.

I’m gonna need some help figuring out how to do this. Is there documentation for core somewhere? First thing I am struggling with is how to test against the day of the week in a Piston? Will Core be reliable enough running from the Cloud?

@c1arkbar Gave it a go , didn’t make mush difference with the delays. However I can adjust the order they come on now , which is a bit better.

Thanks for your suggestions

1 Like

Can anyone offer some assistance please?

Does anyone have a working piston that randomly changes color if rgbw lights at set interval’s?

Hi! Hoping someone can help me. i cannot figure out which type of piston to use, or if i can do what i’m trying to do all inside one piston or if i have to do more than one. My kids are constantly turning the xbox console off but leaving the television on and i just want to have a way to get a notification when the TV is left on after the xbox is turned off.

“LivingRmTv”= Aeon labs power meter. I’ve measured the readings for all the states i need.

If LivingRmTv power enters range 270w - 350w set @xboxpowerstate [string] = “on” and set @LivingRmTvPowerState [string] = “on” and send notification to contact "Xbox is turned on"
then
If LivingRmTv power exits range 270w - 350w AND enters range 200w - 230w then set @xboxpowerstate [string] = “off” and send notification to contact “Xbox is off but they left the TV on AGAIN!” Wait until someone manually turns off the TV and then send notification to contact “Now both xbox and TV are off” and set both variables to "off"
but
If LivingRmTv power exits range 270w - 350w AND drops below 70w then set @xboxpowerstate [string] = “off” and set @LivingRmTvPowerState [string] = “off”

i am struggling with how to arrange this logic and fit in into the appropriate piston type.

I appreciate anyone’s help!

I also need this piston configuration to send me a notification when the TV is finally turned off after being in the state where the TV was left on after the xbox console was turned off. So, if i’m at work and i get the notification that the xbox was turned off but the TV power was left on, i notify the nanny and ask them to manually turn off the TV, and then when they do, i get a final notification that the TV is turned off.

In the attribute list for a device, some items have a box with an x in it at the left of the attribute. What does that mean?

I use this one for a hue bulb in the living room… It only loops when the virtual switch Color Loop is on.

IF
● Trigger happens every 15 minutes
◦ Color Loop switch is on
THEN…
Using Living Room Hue…
► Load attribute ‘hue’ from variable {$randomHue}
► Load attribute ‘saturation’ from variable {$randomSaturation}

Cool. I dont get variables yet. Can you tell me how you set the variable up in CoRE? Can you share your CoRE dashboard please?

Those are system variables, you don’t need to set them up, you’ll just pick them from the list.

I started a thread all about variables.

CoRE Variables 101

1 Like

This is my first Core Pistion Rule.
I’m having a weird problem with OR-IF Piston not firing the first action. The turn on light switch action never fire even if condition eval is true with active motion sensor. The light only turn on if I take out the 2nd OR-IF condition for the door sensor

Appreciate it very much if someone can take a look at my log and give some suggestion to fix this.

First, use a trigger (full dot) for the motion sensor. Use “changes to”.

I have change the trigger for the motion sensor to “change to”
The motion sensor event fire and the first condition eval is true but the task still did not execute. The Turn On Light Task is missing in the debug log.

I manage to get it to work by using ELSE IF instead OR IF. I suspect it could be a bug with this OR IF Piston not executing the first task.

You can’t use multiple triggers in the or if piston. They conflict with each other

I have done something quite similar,

1 Piston with the schedule as you suggest, set variable to ON
1 Piston to turn off after x mins if the variable is not ON

See below:

1 Like

Question about setting up a core that triggers a piston when two events happen within a certain amount of time.

I have a terrible time with ST determining when I am away so I have GPS established to report presence and I have a VP switch that does the same.

What I would like to do fire the trigger if Presence Changes to Away and VP Switch turns off within, say, 2 minutes of each other.

How is this done?

Just curious how many pistons people have? How many is too many? 10? 20? Anyone notice any slowdowns when they have too many?

I and many others have multiple instances of CoRE installed as mine was starting to get slow.
I now have 8 instances installed with a max of 10 on each one.
This also helps me with the admin of them.
Broke mine down into Away, Bedroom, Kitchen, Presence etc. etc.
Just my take on how I order stuff I suppose.

1 Like