someguy Posted March 29 Posted March 29 I'm trying to create a custom email notification for when I am on vacation that tells me what is going on at my house. here is what I have so far and I think the first line will work fine, but the rest needs work: Quote Vacation Daily Alert for ${sys.date}, ${sys.time}. On Vacation? ${sys.program.#.status} Thermostats: ${sys.node.#.addr} Garage doors? ${sys.node.#.addr}, ${sys.node.#.addr} Outdoor Temp: ${sys.node.#.addr} the problem is, I'm not sure what parts of these "variables" need to be changed and if so, to what. I guess I need a kindergartner level of explanation. for the "On Vacation", I have a program called "on vacation?" and I'd like to know if that is true or false. I presume I need to swap out the pound sign to something but I don't know what to swap it to. for the others, they're all nodes, some are insteon devices, specifically. Quote
Techman Posted March 29 Posted March 29 Her's the list of all the variables and their descriptions ISY-994i Series:EMail and Networking Substitution Variables - Universal Devices, Inc. Wiki Quote
Andy P Posted March 30 Posted March 30 When referring to a node, the # becomes the node identifier. Besides the insteon address, you can also use polyglot created devices like this Rain Tomorrow ${sys.node.n007_forecast_1.GV18} ${sys.node.n007_forecast_1.GV13} Accumulation ${sys.node.n007_forecast_1.GV8} When you use a program to trigger a notification, the # automatically gets replaced by the ID of the program that called it. ${sys.program.#.address} ${sys.program.#.name} ${sys.program.#.status} ${sys.date} ${sys.time} program[97] Garage Closed True 2025/03/30 06:10:00 AM Quote
someguy Posted April 7 Author Posted April 7 Quote On Vacation? - [ID 00D4][Parent 0066][Not Enabled] If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then - No Actions - (To add one, press 'Action') Else - No Actions - (To add one, press 'Action') so, in my customized email, I tried this and it doesn't work: On Vacation? ${sys.node.00D4.status} ${sys.program.00D4.status} I appreciate help. Quote
Techman Posted April 7 Posted April 7 Post a copy of the program, with all the relevant fields populated, that doesn't work 00D4 isn't a system node, it's a program ID You'll probably need to have the program set a variable Substitution Variables Substitution variables are available inside custom email definitions in the form ${<variable name>}. Substitutions can be manually made in the body, URL or header of Network Resources from version 4.3.26. If you included them in the URL then you cannot use the 'Encode URL' option In most cases, these variables use the ID of the element being referenced For example ${sys.node.11 22 AA 1.name} would use the name of the device node whose address is 11 22 AA 1 Instead of specifying a fixed address, the special character # may be used to reference the element in the event that caused the program to run. (Does not work in network resources) For example, if a status event for node 11 22 AA 1 caused a program to run, then ${sys.node.#.name} would use 11 22 AA 1 as the address. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.