I have long had auto "wake up" set up for week and weekend. I had the idea of using a date time variable for custom time choices.
Set up a Rule for automatically setting standard times to the variable so we don't have to enter it manually every night.
I then added the variable to the dashboard to inform and add ability to enter custom time if desired.
When I set up the variable I entered only a time. It seemed to accept it so I proceeded to make the above mentioned additions. When I verified I had everything set up I did some testing and this is what happened:
These are a couple references of what I was going for.
How do I get this to work?
I could have sworn @bravenel had said that just entering time would work. It does seem to have worked for a while but then the formating happened.
Again, I can't really work with phone based screenshots, so please post desktop screenshots.
The display of a DateTime variable may not represent what's going to happen. It sounds as though maybe you set it from a Dashboard to set the date as well as the time.
The reference to using the time only of such a variable does work for a Certain Time trigger.
I will redo those screenshots in the morning.
To give more details about what I was expecting and trying to accomplish:
Main dashboard shows a simple time with a label of wake up time. This can be tapped and changed to allow for a different wake up for the following morning.
When sleep mode is set I have the echo in the bedroom announce what time the house will wake up.
Even if the functions will be as desired I still am stumbling with the visual formating to suit my needs.
Here's what I'm talking about, DateTime variable with date, and Certain Time trigger based on that variable.
For this trigger, it doesn't matter that there is a date or what it is.
1 Like
Ok so really the only problem I have is getting the variable able to be announced on the speaker. As it sits now, using %variable% reads out 2022-03-18T07:00:00.000-0400 when I actually want 7:00 AM.
Will it still be acceptable to mainly manipulate it from a dashboard with desired effects? I'm using the connector and "variable time" template.
1 Like
Yeah, there's no way in RM to manipulate a DateTime object into a string with a fixed format like 7:00 AM, even if the variable only has a time set. Perhaps that could be added; I'll look at it.
1 Like
That would be awesome! I appreciate all of the clarifications
Like this:
Same variable as above, with both date and time, but converting it to the string "2:22 PM".
Looks like this feature will make it into the next build. Needs a little display polish, and perhaps a few more formatting options.
Also, if you go into Hub Variables and erase the date, it will display as only a time, both there and in a Dashboard if you pull it into the Dashboard as a variable, not as a connector.
4 Likes