Page 1 of 1

extract log of alert sensor

Posted: Monday 15 February 2016 21:31
by Shaowoo
Hi,

I have a ESP-12 with ligt sensor and motion detector (PIR). I created a alert sensor (via dummy vswitch, idx=10). The esp makes a json call when movement is detected. The json call is put event 3 for idx=10 with the output of the light sensor als a svalue. The svalue is visible in the log of the alert sensor.

The following thing i have in mind, incase of movement and the measured ligt is below a threshold then put ligt on. How do i do this ?
1) via event, i create a control 'if do ' condition and logic with two 'and' statements. The first statement is movement and the second via json reading the log output (light measure). But it seems that that is not possible ?
2) via php script running on the raspberry ? performing a script on trigger of the alert

My current version of domoticz is 2.3530