Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

andyw715

macrumors 68000
Original poster
Oct 25, 2013
1,845
1,404
I have various scenes for my outdoor lights for holidays.

Can I further automate an automation (turn on lights from sunset to sunrise with a certain scene) but also only run certain days. Like Red/White/Blue on July 4th, Labor Day, Flag Day, etc.

I know you can turn the automation into a shortcut, then in the shortcut use the date, but from my understanding this shortcut runs on the iPhone/iPad/mac. Is there a way or an app that allows these shortcuts to be executed by AppleTV or maybe HomePod?

Feature req: It would be nice for HomeKit to include a shortcut wrapper around an automation or provide a shortcut like flow to automations.


I've tried a few 3rd part apps (Home+, and a few Hue specific ones) but they still only offer the time of the day trigger/condition.
 
It's already there in the home app

Make a home automation with a sunset or specific time of day trigger, then on the screen where you add scenes and devices scroll all the way down to the bottom, then can "convert to shortcut"

Those will run on any of your home hubs, the commands are a bit limited since they don't have access to the apps on your phone. But things like date are there

You can also make these in the shortcuts app, by scrolling all they way to the bottom of the trigger list on the new automation screen, then select "make home automation" I'm pretty sure both methods will put the shortcut in the same place.

You'll probably have to play around with it a bit, since the if clause in shortcuts wants to look for a precise date and time (like Dec 25, 2024 at 3:47pm) you can adjust that around, I'm sure someone has figured out how to look for "date is Dec 25" ignoring time and year, and you should be able to find that on google. Or it may be really obvious, and I'm just not looking at it right.
 
  • Like
Reactions: andyw715
It's already there in the home app

Make a home automation with a sunset or specific time of day trigger, then on the screen where you add scenes and devices scroll all the way down to the bottom, then can "convert to shortcut"

Those will run on any of your home hubs, the commands are a bit limited since they don't have access to the apps on your phone. But things like date are there

You can also make these in the shortcuts app, by scrolling all they way to the bottom of the trigger list on the new automation screen, then select "make home automation" I'm pretty sure both methods will put the shortcut in the same place.

You'll probably have to play around with it a bit, since the if clause in shortcuts wants to look for a precise date and time (like Dec 25, 2024 at 3:47pm) you can adjust that around, I'm sure someone has figured out how to look for "date is Dec 25" ignoring time and year, and you should be able to find that on google. Or it may be really obvious, and I'm just not looking at it right.
ahh ok....I guess I ASSumed converting to a shortcut would mean that it executed on my iPhone.

I'll give it a try..... I can get the current date parts (month, day, year) so conditions can just examine (month and day) OR-d with other (month and days)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.