I don't have a rule yet for this but CMagnuson got me thinking. If you created a GV with a connector you could set the GV via the dashboard with a string or decimal, it really wouldn't matter. You could have a rule that is triggered by this variable changing. Within that rule you could have a series of if-then statements that would wait for events based on the value of the GV.
If GV = 0930 wait for event 09:30am. Like I said it is kludgy. It would take some playing around but it should work.
I do something similar with GVs for alarm hour and alarm minute that I can adjust via dashboard. I then calculate that into minutes past midnight and compare it every minute to current minutes past midnight as the trigger. It works but it's very "Heath Robinson".
But I would hold fire In trying anything like it if I were you, I am pretty sure Bruce is working on a proper solution for time GVs.
I had a similar thought but didn't want to deal with the overhead of having to constantly check it and figure out if this was set prior to or after midnight for the next morning. Bruce has mentioned time for GV's but until then we have to work with what we have.
The "Start Morning" variable is a String Variable Connector with a tile on the dashboard.
It is not perfict but works for me.
Always interested in a better way.
Input amounts to "time past midnight" and has to be set before midnight.
I did have a version that would work anytime with any time, but I blamed it on crashing the hub, and reverted to this simpler rule.
I appreciate all the thoughts, but unfortunately no one seems to be able to provide an idea that meets the requirements I set. When people use words like "kludgy" that is synonymous with "my wife will hate it and refuse to use it." That makes it a bad solution. I think I'll keep doing some more research into off the shelf options. I already found a few that seem promising but need more research. Thanks.
I'd like to see something like this too, but I'm OK with cooling my jets until I can set a time global variable from the dashboard. Then all sorts of possibilities would open up.
Time variables will definitely help. Right now I'm looking at a product called BEDDI https://www.wittidesign.com/ which lets you call an HTTP endpoint when an alarm triggers, at least that is what their support is telling me. I'm still doing more research. $99 is a bit to spend when I'm not 100% sure it will work.
You can definitely kludge a time GV on the dashboard. It requires a bunch of back end computations in RM4. It's not difficult, just clunky. I do it to maintain timers on when the kids need to take the dogs outside again, when the vacuum will run again, and a few other such things.
Don't get me wrong -- life will get a lot better once there is a real Time GV.
@dman2306 HE 2.1.8, which was just released, now supports time variables. This means you can now set a trigger based on a variable which was set from a dashboard tile. You can put a 'Variable Time' tile on a dashboard and enter a time to trigger an event. I just tested it and it worked as I expected.
Yeah I’ve been playing with it and it’s definitely better but that’s not going to meet the requirements I stated. How does that help me integrate with an Apple Watch to vibrate when it hits a certain time?
It appears that the focus of this thread after the original post became how to change the wake-up time with a friendly interface once you posted ...
So there's two parts. The first one appears to be resolved with the time variable. With that you can trigger whatever actions you'd like (almost) in Hubitat at a wake-up time you set via a dashboard tile.
The remaining part is that you'd like to set up an action that triggers an Apple Watch to vibrate.
If you have Homebridge working and a limited number of alarm times the iOS Shortcuts app should work.
For each alarm time create a virtual switch in Hubitat. Share all of them with iOS via Homebridge. Create iOS Shortcuts that set alarms and switches switches. Set up Hubitat rules for switches.
I don't have an Apple Watch or HomeKit, but @bill.d's suggestion got me Googling. Could you use something like AutoWake on your Apple Watch, which can apparently trigger HomeKit scenes.
If all that is true, and if a HomeKit scene can including turning on a Hubitat virtual switch, then all you would have to do is set an AutoWake alarm on your watch, and use the virtual switch to trigger the desired Hubitat automation when the alarm goes off on your phone.
AutoWake will only trigger a HomeKit scene at alarm time. The OP requirement is to start a Hubitat automation prior to the iOS alarm. That capability does not exist in iOS unfortunately.
I think it’s likely that one could build a complex Shortcut app that could set a configurable alarm and pass that time with a differential to Hubitat via a URL. But that’s beyond my level
Aha. Does AutoWake provide different alarm "levels"? Maybe an alarm could be set for a very low level (to trigger the switch), and then be switched to the desired level at the desired wake time?