Date condition doesn't allow "is any" data entry


#1

1) Give a description of the problem
I have two modes for our household - Work Day and Holiday. I have various rules that happen in each mode, for whether we will be home all day long, or if we leave for work and come back at regular times. My thought was to have this specific piston list known holidays when we will be home during the work week, but when I added a Date is any condition, there is no form available to enter specific dates in which will be used to run the piston.

2) What is the expected behavior?
When adding a condition with Date type, and selecting Is Any in comparison type, the UI should provide a method to add such dates to the logic.

3) What is happening/not happening?
Currently, by selecting the Date virtual device type, and selecting Is Any in the comparison type, no further data entry box appears to allow you to enter the dates which to compare against.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
No logs are relevant, as the piston is unable to run due to UI preventing the entry of data.


#2

try date is between.


#3

I have never tried but it would be nice if we could free form add in dates to use as a condition. Between would be quite cumbersome to figure out vs just adding in the dates needed.


#4

What about something like this?


#5

This looks like it could work, but I don’t know how to add a define section to the piston in the webCoRE dashboard. How do you do that?

I wish there was a less messy way to control our house scheduling for work days vs holidays, but this is the best option I can think of.


#6

It would be nice, that is the problem. No easily accessible way from the UI to do what I want to do.


#7

Try selecting “Show Variables” and you should get the “Define” section.

You can also enable advanced statements and get a lot more options than you have otherwise.


#8

There kind of is. Takes some effort to get set up. There is a smart app out there called “gcal search”. It allows you to,link our google calendar to smartthings. Once set up, you can have it configured to create a virtual contact device that is either open or closed. Then you could reference that in a post, if contact sensor is open it is a holiday. I use this for vacations.

I create an event in google calendar. Gcal sear looks for key words in events (based on what you want the wording to be) and creates the virtual switch. From there you are off and running.


#9

I’m also trying to make one of the conditions between dates…I have it set for ‘value’ but it won’t allow me to change the ‘is between’ dates…