Hello, I want to make a trigger, when luminance decreased from a value make the rule.
Example, if illuminamce drop from 1000 I want to do something.
If illuminance increased from 2000 do something.
How can I do it?
If I compare < the rule is started every time change, the rule execute on 999, 998, 997... And I want only execute if previous is 1000 or more.
What you could do is define a global boolean variable.
Maybe call it luxabove1000
Then write a rule.
TRIGGER
lux sensor changes
ACTION
IF
lux sensor above 100
Set var luxabove1000 true
ELSE
Set var luxabove1000 false
END-IF
Then use the var state (true or false) in your rule/s.
This way only the rule that sets the var will be the only one that evaluates when lux changes.
You can then use the variable being true/false/changed as a trigger in your rule.
On webcore is too easy without creating variable, if previous state decreases from 400 then... Or increased from 399...
If on rule can't do without variable I will create it...
Lot of thanks
You can still use webCoRE on HE.
It does work OK on HE plus you will be able to import your existing pistons onto HE if you wish to.
If you do decide to use it I would load webCoRE onto HE via Hubitat Package Manager. (HPM). This will also make it easier to update should there be any changes to the main webCoRE app.
Hello. I have webcore installed, but I try to use all I can directly on hubitat, perhaps the hub works better with itself apps, I don't know if it's true or not
but.... webcore uses external conections, not?, the interface to create pistons is over internet.
Piston execution need internet?.
Its better use rule machine, because is an app included on hubitat? or not?