Changing Alert Settings based on Condtions

I need to change the User Profile Associations based on whether I am at home or traveling. At home I receive a large number of SMS status alerts from Vera which is not a problem since I have unlimited SMS on my phones. But traveling, especially internationally, SMS can be very expensive so I want to significantly reduce the number of alerts I receive.

I have added TWO User Variables to Vera Alerts called AtHomeAssociations and TravelAssociations. These store the “UserProfileAssociation” values that cross reference what Profiles are used for what UserNames, thus I can change which devices receive which notifications.

The selection of which of these values is transferred to the “UserProfileAssociation” is to be made in a PLEG depending on the status of a “Device Property” from the GCAL Plug In.

Two questions:

  1. I’m not clear on how to write the chosen value into the VeraAlerts field “UserProfileAssociation”. I have two PLEG Input/Device Property fields called “AlertsNormal” and “AlertsTravel” set from the corresponding User Variables in VeraAlerts.

In the PLEG ACTION settings I can select the VeraAlerts “SetProperty” option which gives me two fields:
“PropertyName”
“PropertyValue”
I know to set PropertyName to “UserProfileAssociation” but how do I specify the CONTENT of the PLEG Device Property field “AlertsTravel” or “AlertsNormal” to be written into “PropertyValue”

  1. With respect to VeraAlerts can I make this change on the fly or must I trigger a Vera Reload somehow, which raises its own complications so that it only happens once when the change is made.

You can’t change the UserProfile association from an action … (actually you can … but if you screw it up you will hose your configuration … it’s not indented to be changed except by the provided UI)

You can call Vera Alert SendAlert in an Action from PLEG.
You can make the Recipient conditional on some condition:

 i.e.  in the action (Advanced Mode) set the recipient to something like:
   {(AtHome ? "ClipperHome" : "ClipperAway")}

[quote=“RichardTSchaefer, post:2, topic:189495”]You can’t change the UserProfile association from an action … (actually you can … but if you screw it up you will hose your configuration … it’s not indented to be changed except by the provided UI)

You can call Vera Alert SendAlert in an Action from PLEG.
You can make the Recipient conditional on some condition:

 i.e.  in the action (Advanced Mode) set the recipient to something like:
   {(AtHome ? "ClipperHome" : "ClipperAway")}[/quote]

Thanks Richard. That complicates matters :slight_smile: Back to the drawing board.