Page 1 of 1

Condition, Relay Switch or Other?

PostPosted: Fri Jun 02, 2017 2:28 am
by mallett
I have created two "Application Runner" modules that send different commands. I'd like to run one of them as soon as motion is detected (we'll call this one A), and the other one when motion stops (we'll call this one B). I've tried connecting the A module directly to the Motion module and B to a Condition module that is connected to the Motion module. I've tried a couple configurations of the Condtion module: 1) only the motion input, and 2) motion input AND upstream schedule input inverted.

None of these configurations are triggering reliably. Please help me get this setup.

Re: Condition, Relay Switch or Other?

PostPosted: Wed Jul 26, 2017 12:07 pm
by Admin_P
Hello! Unfortunately, a system like that can't be made with the current set of modules :( , as it requires a very clear distinction between start and end of an event. Thank you for the suggestion, however, we'll think of a way to make it possible in the future.

Re: Condition, Relay Switch or Other?

PostPosted: Wed Aug 30, 2017 4:50 pm
by skylord123
Should be noted that if you need this functionality you can hack something together. The HTTP Request Sender has options to send requests only when event starts or ends. You just need to program out a middle man webserver that can intercept the HTTP Requests and run the commands.

I use this to get motion events from Xeoma into Home Assistant. This way my front yard lights turn on when motion is detected on the cameras. Here is the code I built to take HTTP Request Sender messages and turn them into MQTT messages for home assistant: https://github.com/skylord123/xeoma-mqtt

You would just have to modify my code to run a program instead of sending a message over MQTT.