@ady624 The last update broke something. Im passing a string to a piston which is in a time format (2017-06-16T20:08:58.000+0200). Before this update i could convert it to a time-value and set a variable with the expression: time(string([Motorvärmare:image])), where the image attribute holds the time stamp. This expression now sets my variable to current time instead of the passed time. i dont understand why i needed the string() function but it did not work earlier without it. The datetime() function returns 0.
Am i doing something wrong or is something broken?
To convert a string to datetime, the datetime() function information says it accept common formats. What is a common format? I could try to format it in the DH.
EDIT: Nevermind, found a way to solve it. Formatted it with the timeToday() function in the DH. And voila. datetime() recognised it! Sorry for bothering you.
I was wondering if someone could help me. I have a piston on core which works as a vacation Lighting mode when I’m away from the house between certain times. It works great however I have moved it over to webcore and it seems to run each THEN action after each other ran that simultaneously. Here is the piston, have a missed something out? I should also mention that I’ve tried changing between synchronous and asynchronous but it doesn’t have any effect. Thanks.
So I loaded CoRE recently and so far its been wonderful but I have run into a couple of items I would be interested on getting a bit more clarification on. One particular one is the ability to add a wait option in the piston. Can some one explain to me how to properly use the wait piston functionality? What I mean by this is the scenario I have goes like this:
If user unlocks door
Then:
action 1: Turn on Lights
action 2: wait 5 seconds set SMH to disarm
action 3: stop siren
action 4: set thermostat
action 5: announce entry
I am expecting the behavior of the piston to perform action 1, then perform action 2, and then 3 and so on . So between action 1 and 2 there is a delay and then precedence of the actions. But this is not how things are working. Each action seems to be performed at the same time and the only thing being delayed is the SMH disarm action. How can you setup a piston to operate in the behavior I am expecting? Is it possible? With the current behavior the only way I can think to do something like I am looking for is to create pistons that perform actions and then call the other pistons using a single long action with multiple steps with in that action as I have not found a method for combining location and convenience items into a single action step.
Are conditions in a ‘while’ block subscribed to automatically? Meaning, can I use a ‘while’ in place of “If blah blah blah changes”.<----changes needed in order for the conditions to be evaluated if there is a trigger in a different block that does not have similar conditions…
If you look at my screenshot above, in the gutter on the left hand side you can see the lightning bolts.
This indicates that conditions in the ‘while’ block are subscribed to.
Also, you don’t need to have any wait commands right. But if you did and it got to the end of the Piston, then it would just repeat the sequence from the top if sync?
You got it.
While the ’while’ is true, then the piston just cycles round.
So in my piston above, when the wait randomly between 60 and 90 minutes matures, it goes back to the top and turns on the light.
If the piston becomes false half way through the ‘do’ block, all actions will still take place.
It will then evaluate the while which is false and the piston stops.
Hi, I’m brand new to Core and looking for help, hopefully this is something someone else has already set up. If someone manually changes the temperature on my Nest thermostat while any of my windows are open, I’d like my R1 speaker to make an announcement that a window is open. If it could say which window(s) are open that would be even better. Anyone willing to walk me through this one?