CoRE - Get peer assistance here with setting up Pistons

you can do this two ways… first…

is the switch on your local devices list? if yes, just use smart lighting… then it runs local.

if not…

use CoRE…

basic piston…

 IF
 Date & Time "happens at" sunset 
 THEN
  using "outside switch"
      > turn on
1 Like

The start and end of the times you specified would be the two times it would be evaluated. I cheat sometimes and add a device in the mix that I know would have some activity like a temperature sensor to force evaluation of the piston.

1 Like

So, I have been reading for the past few hours and have now published CoRE to my IDE through github integration.
I bought some OSRAM lightify bulbs yesterday and created virtual switches for red and green colors which can be activated using Alexa. I am looking to setup a scenario where a bulb stays on and alternates between red and green every 5 minutes once I tell Alexa to ‘turn on christmas’.
Could someone please walk me through how to setup this scenario using CoRE?
Thanks.

Hey Guys, I’m trying to sync circadian rhythms with turnable white Commercial Electric Zigbee Downlights…

Essentailly this is want I want to write with core… kind of simple, but I’m new.

If LightA becomes ONLINE
then If its Daytime, set value to BrightWhite (bluey white)
Else set value to SoftWhite (yellowy white)
End IF
end if

Its important that this doesn’t start with the “when light turns ON” because from the application side this light is always on, in either a OFFLINE or ONLINE state (hooked up to a DUMB Swtich).

Thanks!

Hello, looking for assistance. Is there a way to have core intercept a signal sent to a light so it won’t turn on? I have several lights in the stairs that turn on with motion and there are 2 fixtures I want to not come on at certain times, any suggestions?

Check out the thread below @bubagump, just follow the examples with your color choice.

I’m not sure if that’s even possible. Why not create a piston that excludes those lights during certain times or create a virtual switch that you can turn on/off to exclude those lights.

How do you know Light A is online?

Still no go. I must’ve placed the “follow up with piston” incorrectly. I tried putting it under “using location” as well as under the lights as a task right after the last color change.

The lights cycle through the colors once but will not repeat. What am I missing?

Make this a basic piston. Delete the but if section.
And make the wait time for the follow up 20 seconds

@Lisa_262

I found my example… Set it up like this… sort of… g this I’ve sets three bulbs to three different colors and changes every few seconds…

You can try a BASIC piston:
IF motion changes to active THEN
task 1: turn on all lights (turn on action restrictions: from time to time)
task 2: turn on all lights except the 2 fixtures (turn on action restrictions: from time to time)

Thanks @eibyer… This is great!

In the IDE, there’s a field that sales, OFFLINE, ONLINE, ACTIVE, INACTIVE.

[cid:image001.png@01D24A38.EB9AA410]

When you build a piston in CoRE, where does this light fall under? Switches? Relay? I’ve never used one of this so please bear with all the questions :slight_smile:

Its available in a few categories. Switches, dimmable light (I believe what it called), but It’s just a ZigBee bulb. :slight_smile:
Every object in the ST IDE has this STATUS value, Just want to know if I can reach it through CoRE?

Ah, ok, so to start with, check if this gives the ONLINE/OFFLINE value

IF
Basement Hall Potlight status changes
   > Send push notification Status: {$currentEventValue}

Try changing the Condition from a trigger to is.

Nice! Will do!

Logan

[https://sjc5.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/eibyer/45/27702_1.png] eibyerhttps://community.smartthings.com/users/eibyer Rey Mhttps://community.smartthings.com/users/eibyer
November 29

Ah, ok, so to start with, check if this gives the ONLINE/OFFLINE value

IF
Basement Hall Potlight status changes

We’re do you type that in? In the mobile app smart app section?

[image1.PNG]

Logan

[https://sjc5.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/eibyer/45/27702_1.png] eibyerhttps://community.smartthings.com/users/eibyer Rey Mhttps://community.smartthings.com/users/eibyer
November 29

Ah, ok, so to start with, check if this gives the ONLINE/OFFLINE value

IF
Basement Hall Potlight status changes