[DEPRECATED Thread: visit community.webcore.co for assistance] webCoRE - Piston Design Help (ask your fellow members for assistance)

Oh snap about to hit him with some expressions? I know I have seen the function but I can’t remember where/what it is.

What have you tried? And yes there is documentation on the wiki

Well I figured out the first case:

Time is between 70 minutes to {@Wakeup) and 11:30:00 AM

Still trying to figure out how to set a variable to a particular time in the future.

I basically need to convert “Today at 08:15 AM” into datetime?

Dunno… will this work:
set variable {@WakeUp} = time($currentEventDate, “08:15 AM”)

Ok, is the global variable @Wakeup in use in some other piston?

Can you give me in as many details what exactly you are trying to accomplish. Do not worry about using webCoRE logic. Just tell me what you want this piston to do please.

Yeah @WakeUp is used in a bunch of other pistons.

I see what I did wrong. I set @WakeUp as type Date and Time. I actually just want it to be Time (time only).

So then I can just set the value to 08:15 AM, no expression needed. The date portion was what was throwing me.

The way this works is I have a piston that initializes a wakeup time each evening. Or actually, early each morning. If I want to change my wakeup time I just edit the value in that one piston.

That wakeup variable is then used by a bunch of other pistons to do various tasks before the wakeup time. Turn on the espresso machine @Wakeup - 70m, turn on the furnace @WakeUp - 10m, start to fade the lights up @WakeUp - 15m, etc.

If you initialize a variable with a value in the top of a piston then every time that piston runs, regardless of what another piston may have changed that variable too, it will revert to that value before executing. Just a forewarning.

Ok that all makes sense. Sounds pretty cool as well!

ah… ok I could initialize the variable in the define section too. That helpful thanks. I forgot about that.

The define section in where you do not want to add a value unless you always want it to be that value at every piston run. But then again if you define it in one piston and then just change it in there whenever you need to edit your time. You can get away with it like that.

Are we able to make variable lists and then call those variables now or is that still in the future?

You can do that now

what do you mean by lists? Is there a linked list data structure that I don’t know about?

You can create a device type variable. Add several contact sensors. Then you can say if that variable contact changes then whatever

I am new to CoRE/webCoRE but managed to set up a few Pistons successfully.
I am however unable to figure out how to set the control of Harmony Hub activities and searching for a solution has so far not helped.
I don not know where to get the activity name from - using the activity name does not seem to be the anwer:

How does one search withing a topic? How would I search for “Harmony” e.g. in this thread (as opposed to searching all topics).

Thanks

My Harmony activities actually show up as devices.

1 Like

Yeah, what he said, they show up as a switch that you can turn on/off.

Also, if you start the search in this thread, you can click the checkbox search this topic under the search to look in this thread only.

1 Like

Is some special setup required to use the Harmony with webCore?

Is there no longer a way to simulate piston execution? Its much much much harder to debug without this.

create a simulated switch. Add everything you want to check in that IF for a simulated switch. Not exactly the same but it will work.

Thank you, Thank you! I have been trying for days to figure out how to search within a thread.

I can’t figure out why CoRe doesn’t show the activities. When I search for devices in the App from within WebCore, should I see more than the Hubs as Devices? And is it correct to add the Hub as a Multimedia Controler?

CoRE or webCoRE? Make sure the switches that have the Activities name are authorized to be used by webCoRE. They might be listed under relays, switches or some other type of device.

Edit: i just checked my activities and they are under Switches

1 Like