Referencing values in Actions?

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
ctgreybeard
Posts: 29
Joined: Sun Apr 08, 2007 7:56 pm
Location: Bethel, CT, USA
Contact:

Referencing values in Actions?

Post by ctgreybeard »

I have just started playing with the I5 plugins. What I have enabled is Growl and NOAA Weather. I've set up a trigger for when the NOAA station here goes below 32 degrees F which does a Growl Notify. I would like to have the reported temperature in the Growl message which I understand I can do using the %%v:variableIndex%% substitution. But nothing that I've tried has met with success. How do I properly insert what I want and, for future reference, where can I find that information for other plugins?

This should be fun!!

TIA,
Bill W
--
Bill W
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Referencing values in Actions?

Post by matt (support) »

Hi Bill,

Take a look at the Notification Action section of the Growl plugin documentation:

http://www.perceptiveautomation.com/wik ... ns:growl_1

And also check out this page:

http://www.perceptiveautomation.com/wik ... bstitution

You can get the variable ID by right (or CNTRL) clicking on the variable name in Indigo's Variable Window and choosing Copy ID from the popup context menu.
Image
ctgreybeard
Posts: 29
Joined: Sun Apr 08, 2007 7:56 pm
Location: Bethel, CT, USA
Contact:

Re: Referencing values in Actions?

Post by ctgreybeard »

Thanks.

It doesn't look like the NOAA plugin supports variable substitution, I can't get an ID for any of the variables in the plugin. Maybe I'll have a go at adding the capability.

Bill
--
Bill W
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Referencing values in Actions?

Post by matt (support) »

The NOAA plugin actually stores the weather information into Device states, not Indigo Variable values. I don't believe there is currently a mechanism for doing device state substitution, it only works with Indigo variable values.

You could, however, create a Trigger for whenever the NOAA Device State changes, then you can use the Action Collection plugin which has an action to copy a Device State into an Indigo Variable value. And finally, you could use the growl variable substitution. A bit of an indirect approach, but I think it would work.
Image
ctgreybeard
Posts: 29
Joined: Sun Apr 08, 2007 7:56 pm
Location: Bethel, CT, USA
Contact:

Re: Referencing values in Actions?

Post by ctgreybeard »

Cool! As you suggest it may be rather indirect but I think it should work. I'll play with it.

Thanks!

Bill W
--
Bill W
Locked

Return to “Extending Indigo with Plugins and Python”