Motion with pending off


#1

I have recently taken the plunge to move over all my rules from rule machine to webcore but I appear to be struggling with some basic tasks. In rule machine I had a rule that monitored motion sensor and plug and basically did pending off if either no motion or power level = 0 after 4 minutes.

I have set up a rule in webcore but it appears to be setting the light level and hue etc everytime the top if statement is triggered, I just want to understand if I should be using a different task execution policy or if my workaround on setting a variable is the way to go? The reason I want to do this is I want to be able to change colors manually via the app if needs be and not have them overridden by the rule running constantly


#2

Does anybody have any advice on this?


#3

for what you are looking to do instead of using the executed variable replace that if condition with if the lights are off then turn them on and set them.