Smart Alarm Clock?

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.

3 Likes

The problem is I feel that means it needs to be the other way around. iOS needs to trigger he not he trying to trigger the watch

1 Like

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.

@dman2306

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.

Total speculation .....

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

1 Like

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?

This is worth researching. The watch vibrates though, not sound. So Iā€™ll have to play around. Thanks for the ideas!

1 Like

Dude - I'm using so many apps you've written, only too happy to be a little useful in return!

1 Like

Iā€™m looking for something similar, and Iā€™ve thought this logic out pretty clearly a few ways, in order to incorporate the apple ecosystem and anything else. There are a few options. Outside of the Alexa integration I was using (and am in the process of leaving smartthings to restore), the best bet is a Siri shortcut that asks you for the time, or when pressed checks your schedule and schedules an alarm however long before your first calendar event. But it first, sends that time to Hubitat, so that hubitat can take your logic for when your pre alarm routines should fire. You would then use Pushcut, to receive that same time. Pushcut I think offers one free shortcut, which you could use to receive the alarm time through a notification, however long it takes Hubitat to process. Pushcut also has a lifetime purchase option well worth the cost. Click the notification, run another Siri shortcut from that notification, which then sets an alarm through the iOS app sleep cycle, which I believe works with an Apple Watch. Sleep cycle is paid. The beta version, is super duper free. If you like my solution, vote for me for president.

And the edit.

You can skip Pushcut. Although it is the ONLY way to receive information through web hook on apple, you could also set the sleep cycle alarm, set Only to vibrate, plus fifteen or whatever minutes after your alarm, as the back up, and get the sleep analysis started immediately. Also j can share my shortcuts if you want them.

The Alexa version uses echo speaks to listen for the Alarm you set through Alexa, sending a Pushcut notification which is clicked to initiate sleep time and alarm.

Also, thereā€™s a physical alarm clock called a BEDDI. It sends http requests, I think at your chosen times BEFORE alarm. I didnā€™t like this solution because it relies on an app, or manually setting an alarm on the clock. Also I donā€™t care for the Bluetooth connection to your phone as this is also not the most reliable.

Sounds interesting but that won't work for me. I need something, like I said, that works "normal." Otherwise my wife is just going to refuse to use it. This sounds like the kind of thing where I'll try to explain it to her and she'll just say "yeah I'll use my alarm clock, thanks."

I did look at BEDDI by the way. I don't recall why but I decided it wasn't going to work for us. For now, I'm just stuck using "dumb" alarms. Though I have noticed that ios 14 adds a new "waking up" that seems interesting

If you think pressing one button, from the iOS Notification Center, and then entering your alarm time is too complex, then there early is no solution for you. The only thing you need to do is set it up. Then she uses the button and it goes into motion with no further input from her or anyone.

Can you tell me any solution you are currently using that is any easier than what I just said, aside from the setup which only happens one time? No, I sure didnā€™t think so.

The only thing you would have needed to tell her is ā€œpress this button, then enter your alarm time.ā€ So, altogether less work than putting your alarm time into an actual alarm clock. Unless you think you need to tell her the details of how it works, this is no different than an alarm clock app and worlds easier to use than an alarm clock. When you realize you misunderstood my post, realize also my offer to help is withdrawn.

It doesn't happen only one time. You get up the same time, every day, 365 days a year? I don't. And your solution doesn't accomplish this "deally what I want is at 6:15am start gentle wake up. at 6:30 vibrate my apple watch so I definitely wake up if I didn't. "

Not really sure why you seemed to get an attitude just because I said it wouldn't work for me?

Edit: Also isn't pushcut cloud based? If so that's a huge concern. No internet = no alarm? My boss won't accept that excuse.

No I donā€™t get up the Same time every day. And I donā€™t understand why you think that. Which just shows you didnā€™t understand my post.

Ok, feel free to keep insulting me to your hearts content. You're blocked :slight_smile:

2 Likes

https://drive.google.com/file/d/1uPQ_k8HOw0sfKV8cOGSPlh2eDj9rIcZa/view?usp=drivesdk

Yes. 18 seconds. One button press and manual time input. sooooooo difficult.

For anyone with Android, I use the Sleep as Android (Android only though) app on my phone which integrates with IFTTT, see http://sleep.urbandroid.org/documentation/integration/ifttt/. It doesn't appear this app is available on iOS though.

The way I do it is with the Sleep app on my phone, I turn on sleeping mode on this app which will then track your sleeping patterns but also sends a Webhook to IFTTT if setup when you start sleeping, stop sleeping, pause sleeping or resumed sleeping.

The tracking sleeping patterns you don't have to use though. What I use though is when you turn on sleeping on this app, this app once integrated with IFTTT which can be setup to turn on a virtual switch on Hubitat in IFTTT. Using that virtual switch, it'll trigger my night routines for my home. I will eventually add to my wife's phone eventually too, of course the downside is you have to trigger the sleep manually on and off though.

The Virtual switch I use is a Virtual Sleep Sensor driver I created located here:
https://raw.githubusercontent.com/bfara83/Hubitat/master/HubConnect%20Drivers/Virtual%20Sleep%20Sensor%20with%20Switch.groovy

This will use the Sleeping attribute that Hubitat has available that you can use in dashboards if you wish or in RM as a custom attribute. Obviously you can also just use the switch too in RM, here's what my rule looks like which just uses the switch attribute:

This app also has an alarm clock too which I use on this app to wake me up, once you dismiss the alarm it turns off sleeping mode on this app which using the RM rule and Webhooks with IFTTT turns off my security system and sets Transitional Mode which I have a RM rule setup to set to the correct mode based on time of day (offsets of sunrise/sunset).

Here's what my IFTTT Applet looks like when sleeping is started:

1 Like

That's cool! I just quickly looked at their documentation and it has a Tasker plugin. That means I could easily use local HTTP Requests from Tasker instead of relying on (and paying for) IFTTT. I might give it a shot. Thanx for heads up.

1 Like

Oh that's a good point, didn't even notice that. I may look into Tasker myself.

If you havent already bought Tasker, it only $4 so 2 months of IFTTT. And it's local!