List of Veralert Id's?

Richard,

Would it be possible to have a list of vera alert id’s populate in lu_sdata? The reason I ask is that S-F has asked for support in AutHomation and it would be nice to have these id’s populate in the app to select to send an alert. Is this possible and if so is this too much too ask? Something along the lines of having the id and maybe an alias to know what id it belongs to?

  • Garrett

Hi Garret,

Sorry…Don’t mean to hijack your post … But I have somewhat related question. While I’m really still a newbie… I’m starting to get a collection of devices. Is there a way to display a list of devices and their ID’s? I’m finding myself constantly having to go back in and look for ID’s when I code. I need to create a manual list otherwise.

Mike

[quote=“MDoc, post:2, topic:173759”]Hi Garret,

Sorry…Don’t mean to hijack your post … But I have somewhat related question. While I’m really still a newbie… I’m starting to get a collection of devices. Is there a way to display a list of devices and their ID’s? I’m finding myself constantly having to go back in and look for ID’s when I code. I need to create a manual list otherwise.

Mike[/quote]

Thread hijack. Should be peeled off to a new thread.

Check out:
http://forum.micasaverde.com/index.php?topic=11568.0

I do have this embedded in a Device Variable DB, ServiceID is urn:richardgreen:serviceId:VeraAlert1 for the Vera Alerts device.

This is a JSON formated array of strings:
You want to read data up to the first empty “Name” string … there is other info in the array.

[“Nane1”, “VeraID1”, … “NameN”, “VeraIDN”, “”, …]

But people do not have to specify this if they want all alerts to go to the list of VeraIDs listed in the device variable: DefaultRecipients

How would this be invoked?

  • Garrett
How would this be invoked?
Not sure what [b]this[/b] is.

Do you want to know how to send an alert ?

Richard,

Sorry, I meant how would one get a list of the vera id’s.

  • Garrett

If you’re asking for the Vera Alert ID’s from the user’s phones, there doesn’t appear to be any way to retrieve them automatically. They have to be entered at least once into Vera, by hand.

From what I can tell, I can send messages to any Vera Alert user, if I know their ID. It seems to be one big namespace.

I thought you had access to all of the service variables for all of the devices.
It’s in the DB variable for the Vera Alerts device.

Richard,

I’ll have to see if they get populated under lu_sdata. The service variables do not get populated unless you specify [pre]variablename[/pre] in the state variable section of that variable under S_XXXX.xml.

Example:

<stateVariable> <name>db</name> <dataType>string</dataType> <defaultValue></defaultValue> <shortCode>db</shortCode> <sendEventsAttribute>no</sendEventsAttribute> </stateVariable>

  • Garrett