//rule “PO aanvraag open voor”
// when
// Item PO_Timer1_Sensor1 changed to ON AND
// Item Input7_2 changed to OPEN
// then
This rule will never be fired because the two states must simultaneously changed.
and i think the AND
is not be supported for rule triggering.
(please use the “*.rules code fence” for posting and shift the Thread in the “Scripts&Rules” Section)
You can do try it that way:
rule "PO aanvraag open voor"
when
Item Input7_2 changed from CLOSED to OPEN
then
logInfo("your Rule", "your Rule triggered!")
if (PO_Timer1_Sensor1.state == ON ) {
do something...
}
end
or you trigger the PO_Timer1_Sensor1
instead
Thanks, I’m going to try this