CoRE - Get peer assistance here with setting up Pistons

Is this the new beta version of core? Mine looks nothing like this…

webCoRE Beta 1

For the following Piston, do I need to add anything else to the temperature listings. Right now I just have “20”. I want it to be 20 degrees F. Do I need to manually add a degree symbol or an “F”?

Hi there. You might want to publish this in the webCoRE thread in case webCoRE peeps are not following this anymore.

Is there a way to open/close a sensor when a door is locked with a certain code?

My idea is to open my garage door when I lock my front door with a configured door lock code.

Sure. There are Lock Manager Apps. These allow for individual codes to do different things such as run routines or turn on lights. However, contact sensors are typically closed/opened manually and then reported that they are either closed or open…So is the garage door a switch or sensor?

I use RBoy’s app but there is a small fee. However, it works great.

Thanks for your reply. I have a Switch which opens/closes the garage door.

I was wondering if this could be achieved through CoRE or if I should explore Lock manager apps which you pointed out.

Hi all, I am trying to get an arrival announcement working and to so I don’t have to keep re-entering my HTTP service parameters, I made a basic announcer piston make a POST request sending the value of the text global variable. However, it is now always coming through and announcing “Null” :slight_smile:

I have {text} defined as a global variable, and when I try to set it in the piston with all my logic, 99% of the time it tells me to check the value range of my input parameters! What gives? Here is what I am trying to do - keep in mind I HAVE to name the variable “text” with a lower case T in order to pass it to the google-home-notifier listener. It gets really angry when I try to set the value of a global variable in the first piston. Help!! Sometimes I can flip back and forth and kludge through it enough that it will save these values, but it doesn’t REALLY seem to be saving them. It also does not seem clear whether I am setting a local or global variable at any given point as I am just free text entering the variable name when I am setting it, yet when I choose a variable to use in my web service call I am given a list which seems a lot more sound to me.

I also have enabled debugging but for the life of me can’t find the logs, or info on where I would even start to look for them. Any help would be appreciated! And as much as I like 8,000 post long threads… would love to be able to find this info in the Wiki, and would gladly donate for such as useful app!

Thanks for any help you can provide! I already went through the struggle of trying to do 2 triggers at once and discovering that was why nothing was firing, but it was not clear exactly what types of events were triggers - figured it must have been ‘changes’ etc. Maybe it’s an android thing? Most screenshots I see seem to be of ios!

Hello all
I need help with a piston not turning the lights off in the morning


As you see the conditions are true but some lights still on, if I turn on any light or change the mode, the piston will then turn everything’s off as it should.
Is the something I’m missing here? Thanks.

I’m having some issues getting some things working reliably and some things working at all.

One problem is that I’m really confused as to when you’re supposed to enter a “Then” action vs. entering an action into the “When True” task for a condition.

My problem pistons are below:

1. Turning off the lights after we leave for work

This one has never worked and I’m not sure why.

2. Turning off the Basement lights

Just set this one up, but it didn’t seem to work.

3. Turning on the Exterior Lights when it starts raining mid-day

It’s rained a few times, but it has not turned on the lights. I’m using this in conjunction with the SmartWeather Station Tile 2.0 to get the status of the weather.

Am I doing these conditions/triggers correctly?

Thanks!

I’m losing my mind on something that should be fairly simple.

If - All of these motion sensors are inactive, then wait 1 minute and turn off these lights. (test wait time only)

When I look at the piston the Current Evaluation is true. Therefore, I should only have to wait 1ish minutes and the lights will turn off. Right? Wrong?

I have tried Is, IS Not, Was, Was Not, Stays, Stays Away From. None of them seem to work.

I do have auto lights that Turn on with motion and then turn off using Changes to and those work great. But a no go on just turning things off based on multiple motion sensors.

Any help would be most appreciated. Here is one of the not working versions.

(I replace my hue bridge, and so have to re-do everything with lights. It kept the pistons, but any thing that used the lights is gone out of them. I swear I had a working version of this before…)

For this one I would try
Phone changes to Not Present (or Is not Present), then lights Wait 15 min then Turn Off. (Assuming you want the delay)[quote=“Coolsaber57, post:8079, topic:50187”]
Turning off the Basement lights
[/quote]

OMG, this drives me crazy. I have a post below asking the same sort of thing. I assumed mine was due to needing feedback from multiple sensors. Just in case yours is simpler, for some reason I have had better luck with Then If, rather than And. I doubt it will work, but you could try it. It worked for one of my other pistons.

Edit: So I have been fighting with this, and tried something strange. I added another criteria of Luminescence. (My motion sensors also do Lux). As soon as I added if Lux is greater than 3 as an additional condition, the whole thing worked. I think it must have something to do with forcing the sensor to report? Or getting the pistio to evaluate something more. Regardless. This won’t work in my basement as my Lux sensors seldom report anything more than 0 down there. But I will try somethings out and see. I don’t know if adding something that requires more evaluating will help you at all.

Changes away from Wet? I’m not sure that is an option.(There are lots of choices in the interface that don’t seem to work with certain devices) Seems like it would belong to a moisture sensor, but not the Weather tile. Maybe Precipitation in the last hour? Humidity?

Thank you for the reply!

  1. I was actually able to remove the first one entirely and use Smart Lighting to just turn off the lights when it detects that both Presence sensors have left, which is really what I was trying to accomplish. I was overcomplicating it, hah.

  2. I was doing some reading on the wiki and figured out that you can’t have two Triggers (those in the If section with a filled-in dot on the lefthand side) because they’ll never be true at the same time. I think this is actually my problem with a few of these, so I’ll have to re-think how I can accomplish this. I might just use the motion sensor staying inactive for 15 minutes as my trigger and leave the door sensor out of it.

  3. I had read on this board that people were using that Water field as the trigger, so I wanted to do the same. I do know that it only updates once every 15 minutes, but I would think it’d still show the change to wet. I’ll keep digging on this one, but if anyone else has figured out which parameter to use to identify Rain, I’d be all ears.

I have multiple pistons like this.

I would try

If All motion Is Inactive
Then
Using Lights…
Wait 1 minute
Turn Off
Cancel on Piston State Change

Might be just the right push to send you over to webCoRE!

Huh, I did not know that webCoRE was a thing!

Can you explain what the “Cancel on Piston State Change” means and when it’s used?

Oh, It a thing and its a Big Thing!

Weird. That’s exactly what I had. Tried in both Core and Webcore.

I added a Lux condition and now it works. :persevere:. Doesn’t make sense. But it’s got to be something about my Sensors not triggering it. Maybe it’s my type of sensor. Aeon labs.

Had a Zooz multi that was giving me the blues. Tried a different DTH and haven’t had a problem out of it since. The problem with me was, even though the sensor was showing motion/no motion in the app, it was not showing active/inactive in the Dashboard of CoRE.

I am a new core user and trying to figure out my first simple piston. My case is as follows: if motion is detect in my daughter’s room between 5pm and 10pm (hours she is active in room when she is at our house) then set thermostat to temp X degree between hours A and B or set thermostat to temp Y between hours C and D. The main issue I seem to be having is that I can’t seem to find a comparison that makes motion in her room true for the entire time been 5pm and 10pm. I would think it would be the “was” condition (motion WAS active for at least 1 min) however, this seems to be false even after motion. Here is how I currently have it set up.

Another question. Once core finds the condition true, and changes the thermostat, will it not change it again when the condition is false if I don’t have an “else” condition?

Any help would be appreciated. Thanks!

Can anyone provide any help figuring out why a global variable set in 1 piston is coming as ‘null’ in a DO piston executed by the first one? Seems like this should be so simple!