Email variable value
Email variable value
Hi,
I am trying to use your plug-in to email the value of a variable.
The action is written as : Address is %%v:Address%
The email comes, but instead of a value, I get %%v:Address%%
What am I doing wrong?
I am trying to use your plug-in to email the value of a variable.
The action is written as : Address is %%v:Address%
The email comes, but instead of a value, I get %%v:Address%%
What am I doing wrong?
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Email variable value
Can you show me a screen grab of that action dialog? What field are you putting that in?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Email variable value
I believe it has to be the variableID for device substitution, not the variable name. That's why the example is all numbers.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Email variable value
What do you mean by variableIID? How is that different from the variable name? How do I find the variableID?
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Email variable value
It's the right column of the Variable list. You can get a copy of the number by right clicking on the variable in the list.mintzps wrote:What do you mean by variableIID? How is that different from the variable name? How do I find the variableID?
- Attachments
-
- Screen Shot 2020-01-26 at 4.31.31 PM.png (228.36 KiB) Viewed 4170 times
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Email variable value
Using names is a bad idea because the variable name can change over time which would break your substitution (or any scripts which use the name, etc). All items in Indigo have a unique ID that never changes over the lifetime of the object.
Re: Email variable value
I used the %%v:1366898942%% convention in a new trigger--> send Twilio SMS, and it did not properly substitute in my variable, just showing exactly %%v:1366898942%% . Any ideas? New mac mini with 15.6.1 and Indigo 2024.2
Thanks!
Thanks!
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Email variable value
It'sa possible that plugin doesn't support variable substitution. I would have to check. Does the dialog box say it does?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Email variable value
The plugin does support substitution, so something else is going on.
Post a screen shot of the action dialog.
Post a screen shot of the action dialog.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Email variable value
Thanks for the quick reply; family plans prevented my getting back. I think I may have figured out the issue.... I am using a variable change to trigger Twilio to send the contents of the variable, in this case a triggered text telling me that I have finished adding water to the pool, and is read by Twilio as %%v:<VARIABLE ID>%% format. That works perfectly. I believe what I have done is nest another instance of %%v:<VARIABLE ID>%% inside the variable text that is referenced above. It may be that Indigo does not see the nested %%v:<VARIABLE ID>%%.
Here are some screenshots, and the output.
Once pool fill is completed, this string is pasted into a variable that fires and Twilio sends a message. Note that I nested another var ID inside the text to be picked out by Twilio.
The Twilio trigger executes when a variable changes. Twilio reads the var substitution and sends message.
Here is the second variable I am trying to nest within the first.
I am guessing this can't be done, and the easy solution is to create another SMS to send the total gallons of water used as %%v:<VARIABLE ID>%%.
Here are some screenshots, and the output.
Once pool fill is completed, this string is pasted into a variable that fires and Twilio sends a message. Note that I nested another var ID inside the text to be picked out by Twilio.
The Twilio trigger executes when a variable changes. Twilio reads the var substitution and sends message.
Here is the second variable I am trying to nest within the first.
I am guessing this can't be done, and the easy solution is to create another SMS to send the total gallons of water used as %%v:<VARIABLE ID>%%.
Last edited by hamw on Mon Sep 01, 2025 9:41 am, edited 1 time in total.
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Email variable value
Yeah, unless the action that's actually setting the variable is doing the substitution, that won't work. I've never tested that.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Email variable value
Much appreciated. Good to know. Problem solved with just addressing Twilio directly.