getting all device events

hello,

i’ve owned a vera3 for a few years now. i’ve played with it a bit, but i’m getting more serious about exploiting all it can offer.

however, i’m really disappointed about the quality/quantity of the documentation available. this is why i’m trying the forums.

here is my question

is there any way to get the log of all device events? I am aware of the following methods
a. the vera UI will show me the last 10 events (not enough)
b. the :/data_request?id=status request will also give me the last (same) 10 events
c. parsing the LuaUPnP.log file is also not good enough. it seems it keeps only the last 24h

anything else I missed?

thanks

For long term log history, you need to switch to USB logging and turn off the option to upload logs to Vera servers nightly. That nightly log rotation clears all prior logs.

hmm, so all my events are stored on the vera servers… there should be a way to access those, right?
how can I do that?

thanks!

You used to be able to define your own Alternate Event Server, but I think that UI7 broke that mechanism (which worked a treat in UI5) and it’s not been fixed, AFAIK.

Search for the term to find a fair amount of discussion on the topic.

[quote=“kaynn, post:3, topic:192022”]hmm, so all my events are stored on the vera servers… there should be a way to access those, right?
how can I do that?[/quote]No, you can’t access it. The logs are uploaded to Vera’s servers. They claim that the logs are automatically patrolled to improve Vera’s reliability. Support can also access recent ones if they need to. But, there’s no access for us.

Search the forums and wikis for information on logging and how to access them. It is discussed extensively.

“They claim that the logs are automatically patrolled to improve Vera’s reliability”

hello big brother

so this doesn’t help me. I’ve written a job that downloads the LuaUPnP.log file every x minutes, but in my case, I get a bunch of annoying UserData::TempLogFileSystemFailure warning every 5 minutes.
there is even a thread about this dating from august 2014
http://forum.micasaverde.com/index.php?topic=26776.0
still not fixed!

so, any other way to get all of the device events programmatically?

If you’re just interested in device variable changes, you could use something like the EventWatcher plugin.

maybe i’m not looking correctly, but the eventwatcher seems pretty useless to me.

it only show the last event, plus doesnt show the timestamp.
does someone have a valid request to display all events with timestamp?
ex:http:///port_3480/data_request?id=lr_EventWatcher&report=devices&width=1000

at this point, i’d really like if someone from vera would pitch in.

That would seem to be the case.

it only show the last event, plus doesnt show the timestamp. does someone have a valid request to display all events with timestamp? ex:http:///port_3480/data_request?id=lr_EventWatcher&report=devices&width=1000

Try this instead:

172.16.42.14:3480/port_3480/data_request?id=lr_EventWatcher&report=log

Giving, for example:

#	Date/Time	Class	Device No.	Device Name	Variable	Value	Argument
6275	2016-04-19, 07:28:30.671	G	125	Indoor - CO2	CurrentLevel	531	
6274	2016-04-19, 07:28:30.666	G	124	Indoor - Noise	CurrentLevel	39	
6273	2016-04-19, 07:28:30.649	H	116	Outdoor - Humidity	CurrentLevel	80	
6272	2016-04-19, 07:28:30.644	G	127	Guest - CO2	CurrentLevel	460	
6271	2016-04-19, 07:28:30.633	G	111	Studio - CO2	CurrentLevel	446	
6270	2016-04-19, 07:28:30.629	G	110	Studio - Noise	CurrentLevel	35	
6269	2016-04-19, 07:18:30.300	G	125	Indoor - CO2

ok, the report=log works great!

i just have to make sure to pull it before midnight, before vera erase the log file

there seems to be bugs though:
17 2016-04-19, 18:26:29.128 S 36 front door Tripped 1
16 2016-04-22, 09:16:54.387 S 34 terrasse door Tripped 0
15 2016-04-19, 17:00:39.766 X 43 ecobee presence Status 1

it seems it can detect events in the future (#16)!

If it helps, you also have the ability to send that information to a syslog server.

It just reports what Vera tells it.

I don’t think that the Event Watcher app is UI7 compatible.

Is that correct? Can someone confirm?

I installed Event Watcher to a Vera-Plus with UI7 and I did not receive formatted positive results.

Such as default icons are missing, it would not read “vera login remote connections” however it did read “Direct” local IP connections.

The results for the log query were inconsistent and seemed formatted widely spaced. I suspect at most Event Watcher returns the last 10 lines of query log results.

This aspect is with 2 different Vera-Plus’s running UI7.

Does this sound correct? Can anyone confirm?

Thanks.

No, that doesn’t sound correct. EVentWatcher works fine on UI7, with the exception of the Alternate Event Watcher functionality that worked on UI5 but Vera screwed up the implementation on their side for UI7.

True, the icons need a different .json file to work, or the icons files need to be moved to the directory they were in when running UI5… another Vera screw up.

Reports work fine and I’ve just check on mine (UI7 on Vera Edge) and it’s showing the last 1600 or so entries, since the last restart.