When clause has no event dependency

KoalaBear shared this question 11 years ago
Answered

I get "When clause has no event dependency" in rules generator.


What's wrong?

Replies (4)

photo
1

The when MUST be a check against en event from a device...

(Bad design I think)

photo
3

"WHEN" means "WHEN SOMETHINGS HAPPEN". This is so called "trigger based programming". You need to put some EVENT into the "WHEN" puzzle. For example, you need to define WHEN exactly would you like to activate this rule, at 5:00, or 5:01, or 5:02...?

Use scheduler and put it in a "WHEN" puzzle to define particular time in which this rule will be TRIGGERED.

photo
1

Thanks Sebastian.

Check the attachment, that schould work?! No warnings this time.

photo
1

yes, this is OK.


Let's say your luminescence is set to report the luminescence state every 5 minutes (or when the luminescence s being changed for more than 5%). So each time when Zipabox receive this event from the luminescence sensor it will check whether there is a rule which should be triggered by it. In this case this is your rule which should be triggered only if the luminescence is below 201% and if the following condition is satisfied.

Leave a Comment
 
Attach a file