The timer is a pretty special element that doesn’t really stop, I can look into having it stop. But what you want is really a while.
Go to Options on top right of editor and enable advanced statements.
Then use somethibg like this:
while
Time is between x and y
do
with
device
do
Turn on;
Send notification;
Wait 1 minute;
end with;
end while;
with
device
do
Turn off;
Send notification;
end with;
Just trying to copy a really simple piston from CoRE to webCoRE and wondering if this is correct. I could not find how to choose the specific hours as was done in CoRE so I went with a restriction in webCoRE and used the in between time. I also had to add a 2 second wait because the time would say 4:59 PM instead of 5:00 PM
Thanks @Jonpho. I had every 1 “hours” which didn’t show “Only during these hours…” Now I see those options change based choosing seconds, minutes, hours, etc
I’m trying to construct a piston with a while loop with a timer in it but it won’t save. I just get the spinning square in the lower right corner forever. Is this a bug or not allowed for some reason? The idea is that the action that I’m going to put in the timer should run every minute during the hours of the while loop. I chose this structure because the “only during hours” construct was not quite precise enough for my needs.
I didn’t fully construct the piston here. I didn’t want to wast my effort if I couldn’t save it so what you see below is a (slightly redacted) screen shot showing the spinning state.
Could it be that the timer doesn’t work as expected? I have been smoking my brain to get this working, but the conditions are ignored and the timer runs regardless:
That’s interesting. The reason I’m trying the “while” syntax is because I saw similar behavior to you using a timer wrapped in an “only when” conditional restriction.
That is, my timer event still fired even when the “only when” restriction was false. It sounds like a while loop wouldn’t solve my problem here either.
@wgmcg and @949BFN, why don’t you just use a standard timer with restrictions, rather than complicating it with While statements? Put the restrictions inside the timer rather than outside.
Time restrictions not met, SMS action not executed:
Looks like using 60 minutes instead of 1 hour will cause the piston to run every 60 minutes from the time saved instead of every hour on the hours. No sure how to run something every hour on the hour just for specific hours.
Hi all,
Just getting started with rebuilding some of my existing pistons in webCoRE. I have to say the web based tool is fantastic
I was wondering if the below is working as intended (or recommended). I was at first trying to create an “And-If” piston as it existed in CoRE, but came to realize that I can really just keep adding IF statements within one piston (landed on 3). Personally I like this because I can now combine by “Coffee Pot On” piston with my “Coffee Pot Off” piston and control it all in one. However since it is beta I thought I would confirm that this was intended or recommended? I noticed that the piston is also at 43% memory usage, but I think I remember seeing somewhere that this is okay when I was reading through the threads…?