The overall structure looks correct so I'm not entirely sure where things are going off the rails. What does the myServer log say when you try to run it?
Some off the cuff ideas:
I'm assuming that "irrigation_active_zone_1_status" is a variable that already exists. If not create it. Otherwise, the macro is referencing a server variable that isn't in the database.
I'm not 100% sure if "isEqual" is acceptable syntax. I know some conditions allow for various formatting so it's probably fine but I don't have the documentation handy to verify. I use "IsEQ" and "IsNE" for equal/not equal conditions, so if I was writing this it would look like:
Macro|
If|IsEQ##{{irrigation_active_zone_1_status}}##on##SetVariable|irrigation_active_zone~1!
Note the "irrigation_active_zone" is not in curly braces.
Does your macro contain more than one command and your example is just one command within it? If so also note the exclamation point at the end. This is required at the end of each command within a macro.
Please Log in or Create an account to join the conversation.