extract log of alert sensor

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Shaowoo
Posts: 3
Joined: Monday 15 February 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

extract log of alert sensor

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

Who is online

Users browsing this forum: No registered users and 1 guest