This object is in archive! 

Problem with specific rule

Amin shared this question 9 years ago
Need Answer

The purpose is create a loop in a rule .

for example when i open the door , the rgbw start to change color and when i close the door it becomes off.

for this; i wrote the following:

71c57fad12e2c6bb37e4a0db55ae7cb0


but it not works.

when i open the door ; RGBW starts to color changing but when i close the door it turns off for a second but starts to color changing again.

Any idea ???????

Replies (7)

photo
1

This is just a wild gues but if you use the when state "any" for the door sensor it will start the dimmer cycle when ever the door sensor is triggered in any of the states when it changes state.


What will happend if you only use the IF WHEN segment and ad the close door sensor to the when part?


Best regards Jacob!

photo
1

it's an easy rule why you make it like that you can try if you want:


when door open

join

if door open

rgbw 100

rgbw red

w8 1sec

rgbw green

w8 1sec

rgbw blue

els

rgbw 0

photo
1

Or maybe a stop or join block or make two rules one for closed and one for open?


Best regards!

photo
1

Yup, make 2 rules. Ussually works much better.

photo
1

Thanks,

the problem Solved by the following Rules:

bc416e1d513c7f02dcf49449f7790c50

photo
1

hello

Im trying to make a similar rule . but with infinite loop while motion is OFF and stop when Motion is ON

But Light Bulb goes completely crazy . The loop continue while motion is ON .


i have tried many many combination but no success (with one or 2 rules ) .

i have tried with join or stop method but seems the same problem .


any ideas ?

Thanks


GiO

photo
1

I think this is because the rule is locked (with the repeat) and keep on repeating.


So in the repeat you should check if there's motion and stop the repeat.

photo
1

Have you tried to add a "join" block immmediately after when?

photo
photo
1

yes ive tried with join and stop ...


Didi you mean like this ?

but same problem .Led continue to breath but in white now


see fig


i ve tried with 4 stop on each line to the end but same problem ... i ve find this rule very complex for a simple concept


I find this case interesting . to make a simple loop who waiting a specific event to stop and launch another step.

photo
1

Have look at this post:

http://www.domotica-blog.nl/post/zipato-guide-alarm


This part:

FILES%2f2015%2f01%2fzipato-alarm-rule-signal


And you can also use the repeater with this.

photo
Leave a Comment
 
Attach a file