From what I’ve seen Macros are their own type of activity that’s not an activity and can’t be used in Activities. WHAT?
My intuition
I thought the idea of Macros is a way to store sequences so that you don’t have to reprogram them in every single activity.
This is how it works in Harmony. You program the device’s on-off sequence once. Then configure the “setup” sequence (separate from on-off) like setting HDMI2 with a possible delay.
The reason this is effective, you only have to program each device once, not 100% times.
I was trying to use Macros for this purpose.
Sharing sequences in Activities
Since a bunch of my activities are all going to be identical, is there a way to share a set of commands, so I don’t have to re-enter them 100 times just to get them right?
And if the timing is off, I have to update it in 5 places. How do I avoid that?
In coding terms, this is like a function, right? You create a reusable function. The issue is, these functions can’t take args, correct? Or can I add placeholders for:
Turn on TV
Delay 6000
Set Input as PLACEHOLDER
Does that work? If not, what use cases are there for Macros that I’m missing?
There’s no way to pass in a variable or have a placeholder value from what I’ve seen, but yes, you can use macros to ensure the basics remain the same in every activity. If you use the PC in 2 activities, for instance, Macros let you share the config.
And I think you can use Macros in other Macros, so you can really abstract it out.