Page 1 of 1

Catch events and store data

Posted: 11 Oct 2014 13:12
by Devour
Hello everyone :D

I'm from Switzerland and it's my first time here on the forum.

In the near future, I will have 60 multisensors (from Aeon Labs) and just would like to catch events when values change and then store them somewhere. I can already test ZWay with 1 multisensor. A script or custom file could be nice. Do you know how I can do it ?

Even after reading the manual of ZWay Developper, I don't understand all.
First of all, I tried, without success, to put the bind function into the URL with the JS API (like in the zWayDev manual page 42). By the way, I don’t see where to write commands in what the manual calls « the server side » .

Can you show me an example how to bind the value of a multisensor and where to write it ? (URL, script or custom file)

Thanks in advance ;)

Re: Catch events and store data

Posted: 11 Oct 2014 19:50
by n0ahg
You could use Sensor values logging in automation

Re: Catch events and store data

Posted: 14 Oct 2014 11:26
by Devour
Z-Wave HA ?

Re: Catch events and store data

Posted: 14 Oct 2014 11:41
by pz1
Yes

Re: Catch events and store data

Posted: 14 Oct 2014 15:25
by Devour
I don't know for you, but when I launch the Z-Way HA interface, there are almost nothing inside... So I don't see what n0ahg means by logging in automation. There are no login for me. Image

Thanks again ;)

Re: Catch events and store data

Posted: 14 Oct 2014 16:40
by pz1
What version are you using? 1.7.2 is the latest and most stable of the official rleases.
Look at -Preferences-Automation
Click the + sign in the lower left corner. That will bring up a screen where you van select a module
In your case Sensors logging, and fill in similar to the below screen.

The logged data are stored in directory: /opt/z-way-server/automation/storage
sensorlogging.PNG
sensorlogging.PNG (23.47 KiB) Viewed 20038 times

Re: Catch events and store data

Posted: 14 Oct 2014 18:44
by Devour
Oh yes I see these features and I can do it now. But I don't know which version I use and how to find it. I updated Z-Way less than 2 weeks ago.

I'm not near the RaZberry so I don't see where the JSONfile is stored inside the controller. Do you know ?

Thanks :)

Re: Catch events and store data

Posted: 14 Oct 2014 19:47
by pz1
Use http://Raspberry_IP:8084/ to get at the Z-Way Configuration Interface. Look there under Advanced/Firmware.

The storage directory is /opt/z-way-server/automation/storage

Re: Catch events and store data

Posted: 17 Oct 2014 16:38
by Devour
That function is so perfect.

Is there a way to make logging for other parameters in sensors ? Something like manufacturer, model or a specific name or any other things ?

Thanks again

Re: Catch events and store data

Posted: 29 Oct 2014 18:41
by Devour
If I should store more informations for any reasons or to be more flexible, what do you advise me to do ?
To use the ZAutomation API and add some UserModules or develop something with the JS API ? I'm a little bit confused with all these technologies (zDev, vDev, ZAutomation, etc..) inside the Z-Way.

Thank you for your replies