more G-Labs products

Author Topic: Evaluation of conditions in wizard  (Read 951 times)

January 18, 2015, 12:23:38 AM
Read 951 times

pim555

  • ****
  • Information
  • Sr. Member
  • Posts: 143
Hi,

Am wondering how multiple conditions in the trigger code of a wizard script are being evaluated?
Is that by logical AND?

I have a garage light that I would like to automatically switch on when
(a) it is dark outside
(b) my alarm sensor for the garage door signals that the door is opened

Condition (a) is controlled by the light/dark sensor of an MS13 motion sensor. This generates an ON command when it is detecting a transition from light to dark and an OFF when it detects light again.

Condition (b) is controlled by my alarm system that generates an ON command when the door is opened and an OFF after a certain time period.

In the script I know have two conditions; one on (a) and one on (b) but it does not seem to work reliably.

Any clues?

Regards
Pim
Regards
Pim.

January 18, 2015, 01:39:56 AM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Yes it only support logical AND. Also the evaluation resolution is 500ms, this means that the value that triggers the condition must be true for at least 500ms.

Cheers,
g.