Only On A Certain Day


#1

Hi,

I’m in process of migrating all my pistons from CoRE into WebCoRE and need a little assistance. In CoRE I could tell a specific trigger to only fire on say Thursday. How do I accomplish in WebCoRE? I am able to tell it to only fire during a certain mode but can’t figure out how to tell it to only fire on particular days of the week.

For example when I turn on my Good Morning Switch I want my bedroom lights to come on and the thermostat to change only during Winter and only on Saturday, Sunday and Monday. I can’t figure out where to tell it to only do this on S, S and M.


#2

Try using the following expression in the if statement/restriction:
$dayOfWeek > 6 || $dayOfWeek < 2


#3

I don’t understand. In the screenshot you can see I have “only in winter” I’ve seen other examples where people have “only on Saturday, Sunday, Monday” next to that.

I don’t want the entire piston restricted to those days.


#4

First, click the funnel icon at the top to show restrictions. Then, in the only when section before with House, add a new restriction and then enter the following (assuming that Winter is a global boolean you have?):


#5

If I want it Sat, sun, Mon is it >5 <2?


#6

Winter only I’m able to restrict as a setting because it’s a mode in ST.


#7

Here is a slight variation to @ahndee’s suggestion:

jpg

This example is comparing a “Variable” in an IF block:


#8

I like both ways but I like the visual rep on WCmore a slight bit better. I wish it was as simple as CoRE though lol.


#9

Thank you, although technically, we both said nearly the same thing.

I usually hold off on the math formulas until you have been around here for awhile. LOL


#10

If I make another statement outside that if staement it will work as normal correct?


#11

That is correct.

temp


#12

Thank you guys so much!!! I’ve spent hours trying to figure this out. I was hoping it was like picking to restrict a mode…where i could just pick the days and just couldn’t find the setting now I see why.


#13

My mind is blank at the moment, but there are some commands that have the “Only on certain days of the week” in the popup window…


#14

A timer being one of them:


#15

I feel like webCoRE fires pistons faster than CoRE. Is this true or am I just having a honeymoon period? Lol


#16

My time with CoRE was short-lived before I switched over to webCoRE, so I can not say for sure


#17

I guess it shows how much math education I got when I was younger :wink: