made2k / SunriseFasting

An iOS application for simple, easy, and free fasting.
https://apps.apple.com/us/app/sunrise-fasting/id1581300620
GNU General Public License v3.0
6 stars 1 forks source link

Feature Request: Shortcut Triggers In-App #41

Open itsdoublearon opened 9 months ago

itsdoublearon commented 9 months ago

I love this app, thanks so much for it. I really like there are shortcut trigger support, but can I please request shortcut support in-app. For example, well specific example I'd like. I have a smart light I would like to use as a visual cue. So at the start of a fast I would like the app to fire a shortcut to turn the light orange, and then when the fast window is changed to the "complete" stage in the app I would like a shortcut to turn the light green. If shortcut triggers are in app, then others could use it to automate other projects like this, or send a trigger via a webhook.

Thanks so much for this, really appreciate it.

made2k commented 9 months ago

Hey, thanks for the kind words. I think I'm understanding what you're suggesting here, but I'm not sure that Shortcuts supports that as a feature. I may be wrong, but what you are suggesting I think would be more like an automation. And unfortunately automation triggers are relatively restricted (things like Home state changes, or time of day).

Do you by chance know of any apps that do something like what you want for Sunrise that I may be able to reference?

Here's my initial thought process as I think through this, maybe I'm not approaching this the right way.

I'll keep this open to discuss and think through this a bit though. Thanks for the suggestion

itsdoublearon commented 9 months ago

I think we're close on the same idea here. I don't have experience making apps for iOS and have a basic understanding of coding so please bare with me.

I've been trying to make a Home Assistant timer with a shortcut at the moment, where I run the shortcut and it starts a timer on Home Assistant to run the light automation and starts Sunrise. I would like to just have that be triggered by my iOS shortcuts to cut out home assistant. But yeah, if the app isn't running in the background I can see how a finished trigger wouldn't go.

I use the widget on my home screen, so not sure if that would work with anything.