Catch events and store data

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Devour
Posts: 9
Joined: 10 Oct 2014 19:23

Catch events and store data

Post 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 ;)
n0ahg
Posts: 87
Joined: 08 May 2013 23:41

Re: Catch events and store data

Post by n0ahg »

You could use Sensor values logging in automation
Devour
Posts: 9
Joined: 10 Oct 2014 19:23

Re: Catch events and store data

Post by Devour »

Z-Wave HA ?
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Catch events and store data

Post by pz1 »

Yes
Since 29-12-2016 I am no longer a moderator for this forum
Devour
Posts: 9
Joined: 10 Oct 2014 19:23

Re: Catch events and store data

Post 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 ;)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Catch events and store data

Post 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 20035 times
Last edited by pz1 on 14 Oct 2014 19:43, edited 1 time in total.
Since 29-12-2016 I am no longer a moderator for this forum
Devour
Posts: 9
Joined: 10 Oct 2014 19:23

Re: Catch events and store data

Post 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 :)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Catch events and store data

Post 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
Last edited by pz1 on 17 Oct 2014 18:25, edited 1 time in total.
Since 29-12-2016 I am no longer a moderator for this forum
Devour
Posts: 9
Joined: 10 Oct 2014 19:23

Re: Catch events and store data

Post 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
Devour
Posts: 9
Joined: 10 Oct 2014 19:23

Re: Catch events and store data

Post 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
Post Reply